<div dir="ltr"><div>I wonder if the dot in the string is causing an issue?</div><div><br></div><div><font size="2">     /dev/xvda2        25G   7.0G    17G   31%  /</font></div><div><font size="2"><br></font></div><div><font size="2">If I found the right bit in the code, it uses "atol()" to convert ascii string to long int.  I think maybe the conversion stops when it hits the non-numeric dot and it never sees the multiplier?</font></div><div><font size="2"><br></font></div><div><font size="2">Ralph Mitchell</font></div><div><font size="2"><br></font></div></div><br><div class="gmail_quote"><div dir="ltr">On Fri, Oct 12, 2018 at 1:29 PM Norbert Kriegenburg <<a href="mailto:norbert.kriegenburg@de.ibm.com">norbert.kriegenburg@de.ibm.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><p><font size="2">sure, </font><br><br><font size="2">but for a fast check how many GB are available if the disk becomes yellow it is much more useful to have human readeable output.</font><br><font size="2">I cannot see why this </font><br><br><font size="2">df -hlP /home</font><br><font size="2">Filesystem      Size  Used Avail Use% Mounted on</font><br><font size="2">/dev/xvda2       25G  7.0G   17G  31% /</font><br><br><font size="2">behaves differently then this</font><br><br><font size="2">df -lP /home</font><br><font size="2">Filesystem     1024-blocks    Used Available Capacity Mounted on</font><br><font size="2">/dev/xvda2        25412940 7260876  16854504      31% /</font><br><br><font size="2">as field NF-1 is the same. And the usage graphs are also not affected.</font><br><br><font size="2">Norbert</font><br><br><img width="16" height="16" src="cid:1__=4EBB09B7DFC2399E8f9e8a93df938690918c4EB@" border="0" alt="Inactive hide details for Galen Johnson ---10/12/2018 04:49:42 PM---You can actually check for free space on volume instead of "><font size="2" color="#424282">Galen Johnson ---10/12/2018 04:49:42 PM---You can actually check for free space on volume instead of percentage.  I do this for really large v</font><br><br><font size="2" color="#5F5F5F">From:        </font><font size="2">Galen Johnson <<a href="mailto:solitaryr@gmail.com" target="_blank">solitaryr@gmail.com</a>></font><br><font size="2" color="#5F5F5F">To:        </font><font size="2"><a href="mailto:norbert.kriegenburg@de.ibm.com" target="_blank">norbert.kriegenburg@de.ibm.com</a></font><br><font size="2" color="#5F5F5F">Cc:        </font><font size="2">Steffan <<a href="mailto:mailinglist@tikklik.nl" target="_blank">mailinglist@tikklik.nl</a>>, "xymon >> <a href="mailto:xymon@xymon.com" target="_blank">xymon@xymon.com</a>" <<a href="mailto:xymon@xymon.com" target="_blank">xymon@xymon.com</a>></font><br><font size="2" color="#5F5F5F">Date:        </font><font size="2">10/12/2018 04:49 PM</font><br><font size="2" color="#5F5F5F">Subject:        </font><font size="2">Re: [Xymon] xymon not warning</font><br><hr width="100%" size="2" align="left" noshade style="color:#8091a5"><br><br><br>You can actually check for free space on volume instead of percentage.  I do this for really large volumes since multi-terabyte disks still have plenty of space when at 95% :-).  I expect that is why the -h arg won't work since the parser in Xymon expects a certain format.  For example:<br><br>DISK /archive/courses 52428800U 10485760U<br><br>(IIRC, those are in KB...check the man page) to turn yellow when 50 GB remains and red when 10 GB left on device.<br><br>=G=<br><br>On Fri, Oct 12, 2018 at 10:40 AM Norbert Kriegenburg <<a href="mailto:norbert.kriegenburg@de.ibm.com" target="_blank"><u><font color="#0000FF">norbert.kriegenburg@de.ibm.com</font></u></a>> wrote:

<ul><font size="2">Ah yes,</font><br><font size="2"><br>i also recently stumbled over this. Took me some time to find out what is the root cause (as always this mailing list helped).<br>But i wonder why the disk alerting does not work anymore if i change df -Pl to df -hPl, if the disk usage percentage is not affected (by syntax or output field).<br>(Btw: the inode alerting is not affected by the "h" switch).</font><br><font size="2"><br>I really would like to get this fixed, as for our normally huge disks it is hard to check how much space is available by a normal df...</font><br><font size="2"><br>Norbert</font><br><br><br><font size="2" color="#424282">"Steffan" ---10/12/2018 04:07:05 PM---I completely forgot about that. I changed bin/xymon client-linux.sh More then a year ago to human re</font><br><font size="2" color="#5F5F5F"><br>From: </font><font size="2">"Steffan" <</font><a href="mailto:mailinglist@tikklik.nl" target="_blank"><u><font size="2" color="#0000FF">mailinglist@tikklik.nl</font></u></a><font size="2">></font><font size="2" color="#5F5F5F"><br>To: </font><font size="2"><</font><a href="mailto:xymon@xymon.com" target="_blank"><u><font size="2" color="#0000FF">xymon@xymon.com</font></u></a><font size="2">></font><font size="2" color="#5F5F5F"><br>Date: </font><font size="2">10/12/2018 04:07 PM</font><font size="2" color="#5F5F5F"><br>Subject: </font><font size="2">Re: [Xymon] xymon not warning</font><font size="2" color="#5F5F5F"><br>Sent by: </font><font size="2">"Xymon" <</font><a href="mailto:xymon-bounces@xymon.com" target="_blank"><u><font size="2" color="#0000FF">xymon-bounces@xymon.com</font></u></a><font size="2">></font><br><hr width="100%" size="2" align="left" noshade><br><br><br>I completely forgot about that. I changed bin/xymon client-linux.sh More then a year ago to human readable pages. I change dit back and yes it works. To bad that i have to change it.<br><br>Thanx<br><br><b><br>Van:</b> Becker Christian <<a href="mailto:christian.becker@rhein-zeitung.net" target="_blank"><u><font color="#0000FF">christian.becker@rhein-zeitung.net</font></u></a>> <b><br>Verzonden:</b> vrijdag 12 oktober 2018 15:40<b><br>Aan:</b> Steffan <<a href="mailto:mailinglist@tikklik.nl" target="_blank"><u><font color="#0000FF">mailinglist@tikklik.nl</font></u></a>>; <a href="mailto:xymon@xymon.com" target="_blank"><u><font color="#0000FF">xymon@xymon.com</font></u></a><b><br>Onderwerp:</b> AW: [Xymon] xymon not warning<br><br>Hello,<br><br>could this be anything related to the “form” of the reporting of the sizes of the filesystems? …and the result of calculating to the gigabytes / terabytes as in your example?<br><br>On “my” systems the sizes are reported in bytes, not in megabytes, gigabytes, terabytes or whatever:<br><br><br><br>Just a thought…<br><br>Regards<br>Christian<br><br><b><br>Von:</b> Xymon <<a href="mailto:xymon-bounces@xymon.com" target="_blank"><u><font color="#0000FF">xymon-bounces@xymon.com</font></u></a>> <b>Im Auftrag von </b>Steffan<b><br>Gesendet:</b> Freitag, 12. Oktober 2018 15:23<b><br>An:</b> <a href="mailto:xymon@xymon.com" target="_blank"><u><font color="#0000FF">xymon@xymon.com</font></u></a><b><br>Betreff:</b> Re: [Xymon] xymon not warning<br><br>It is always green<br>Even if one is 100%<br>Analysis settings are:<br>DISK * 80 97 #YELLOW LOW FOR TESTING<br><font size="2" color="#D8D8BF"><br>91% /mnt/node2</font><br><b><font size="4" color="#D8D8BF" face="Times New Roman"><br>Fri Oct 12 15:21:26 CEST 2018 - Filesystems ok</font></b><br><b><br>Van:</b> SebA <<a href="mailto:spah@syntec.co.uk" target="_blank"><u><font color="#0000FF">spah@syntec.co.uk</font></u></a>> <b><br>Verzonden:</b> vrijdag 12 oktober 2018 13:48<b><br>Aan:</b> Steffan <<a href="mailto:mailinglist@tikklik.nl" target="_blank"><u><font color="#0000FF">mailinglist@tikklik.nl</font></u></a>><b><br>CC:</b> Xymon Mailing List <<a href="mailto:xymon@xymon.com" target="_blank"><u><font color="#0000FF">xymon@xymon.com</font></u></a>><b><br>Onderwerp:</b> Re: [Xymon] xymon not warning<br><br>Is the status green or yellow? If green, check your analysis.cfg will match this host and limits configured appropriately. If yellow, check the info page for this host to see what alerting you have, and configure alerting in alerts.cfg if needed. If configured OK, check the notifications report.<br><font size="2" face="Arial"><br>Kind regards,<br><br>SebA</font><br><br>On 12 October 2018 at 10:35, Steffan <<a href="mailto:mailinglist@tikklik.nl" target="_blank"><u><font color="#0000FF">mailinglist@tikklik.nl</font></u></a>> wrote:<br>I dont see anything ignored in analysis.cfg<br><b><br>Van:</b> Neil Simmonds <<a href="mailto:neilsimmonds1808@gmail.com" target="_blank"><u><font color="#0000FF">neilsimmonds1808@gmail.com</font></u></a>> <b><br>Verzonden:</b> vrijdag 12 oktober 2018 11:27<b><br>Aan:</b> 'Steffan' <<a href="mailto:mailinglist@tikklik.nl" target="_blank"><u><font color="#0000FF">mailinglist@tikklik.nl</font></u></a>>; <a href="mailto:xymon@xymon.com" target="_blank"><u><font color="#0000FF">xymon@xymon.com</font></u></a><b><br>Onderwerp:</b> RE: [Xymon] xymon not warning<br><font size="2" color="#0000FF" face="Arial"><br>Isn’t /mnt ignored in analysis.cfg?</font><br><b><br>From:</b> Xymon <<a href="mailto:xymon-bounces@xymon.com" target="_blank"><u><font color="#0000FF">xymon-bounces@xymon.com</font></u></a>> <b>On Behalf Of </b>Steffan<b><br>Sent:</b> 12 October 2018 10:12<b><br>To:</b> <a href="mailto:xymon@xymon.com" target="_blank"><u><font color="#0000FF">xymon@xymon.com</font></u></a><b><br>Subject:</b> [Xymon] xymon not warning<br><br>Hello list,<br><br>Xymon is sending warnings from other servers but it does not warn if /mnt is getting filled<br>(yellow level is 90%)<br><br>Eny idees why this is ignored?<br><br><b><font size="4" color="#D8D8BF" face="Times New Roman"><br>Fri Oct 12 11:06:27 CEST 2018 - Filesystems ok</font></b><font size="2" color="#D8D8BF"><br>Filesystem Size Used Avail Use% Mounted on<br>udev 12G 0 12G 0% /dev<br>tmpfs 2.4G 266M 2.1G 12% /run<br>/dev/mapper/pve-root 94G 3.5G 86G 4% /<br>tmpfs 12G 19M 12G 1% /dev/shm<br>tmpfs 5.0M 0 5.0M 0% /run/lock<br>tmpfs 12G 0 12G 0% /sys/fs/cgroup<br>/dev/sdb1 1.8T 1.5T 273G 85% /mnt/node1<br>/dev/sdd1 1.8T 1.5T 257G 86% /mnt/node3<br>/dev/sdc1 3.6T 3.1T 343G 91% /mnt/node2<br>tmpfs 2.4G 0 2.4G 0% /run/user/0</font><br><br><br>Steffan<br><br>_______________________________________________<br>Xymon mailing list<u><font color="#0000FF"><br></font></u><a href="mailto:Xymon@xymon.com" target="_blank"><u><font color="#0000FF">Xymon@xymon.com</font></u></a><u><font color="#0000FF"><br></font></u><a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank"><u><font color="#0000FF">http://lists.xymon.com/mailman/listinfo/xymon</font></u></a><tt><font size="2"><br>_______________________________________________<br>Xymon mailing list</font></tt><tt><u><font size="2" color="#0000FF"><br></font></u></tt><a href="mailto:Xymon@xymon.com" target="_blank"><tt><u><font size="2" color="#0000FF">Xymon@xymon.com</font></u></tt></a><tt><u><font size="2" color="#0000FF"><br></font></u></tt><a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank"><tt><u><font size="2" color="#0000FF">http://lists.xymon.com/mailman/listinfo/xymon</font></u></tt></a><br><br><br><br>_______________________________________________<br>Xymon mailing list<u><font color="#0000FF"><br></font></u><a href="mailto:Xymon@xymon.com" target="_blank"><u><font color="#0000FF">Xymon@xymon.com</font></u></a><u><font color="#0000FF"><br></font></u><a href="http://lists.xymon.com/mailman/listinfo/xymon" target="_blank"><u><font color="#0000FF">http://lists.xymon.com/mailman/listinfo/xymon</font></u></a><u><font color="#0000FF">[attachment "graycol.gif" deleted by Norbert Kriegenburg/Germany/IBM] [attachment "1B332202.gif" deleted by Norbert Kriegenburg/Germany/IBM] [attachment "graycol.gif" deleted by Norbert Kriegenburg/Germany/IBM] </font></u><br><br></ul><br>

</p></div>

_______________________________________________<br>
Xymon mailing list<br>
<a href="mailto:Xymon@xymon.com" target="_blank">Xymon@xymon.com</a><br>
<a href="http://lists.xymon.com/mailman/listinfo/xymon" rel="noreferrer" target="_blank">http://lists.xymon.com/mailman/listinfo/xymon</a><br>
</blockquote></div>