Xymon Mailing List Archive search

xymon not warning

list Ralph Mitchell
Fri, 12 Oct 2018 15:14:20 -0400
Message-Id: <CAAEjoCV--+Pc_rSpRRZxkrzZXNCBbVix=user-d632ac8c25b1@xymon.invalid>

I wonder if the dot in the string is causing an issue?

     /dev/xvda2  25G  7.0G  17G  31%  /

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?

Ralph Mitchell


On Fri, Oct 12, 2018 at 1:29 PM Norbert Kriegenburg <
user-501bbe9c5409@xymon.invalid> wrote:
sure,

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.
I cannot see why this

df -hlP /home
Filesystem Size Used Avail Use% Mounted on
/dev/xvda2 25G 7.0G 17G 31% /

behaves differently then this

df -lP /home
Filesystem 1024-blocks Used Available Capacity Mounted on
/dev/xvda2 25412940 7260876 16854504 31% /

as field NF-1 is the same. And the usage graphs are also not affected.

Norbert

[image: Inactive hide details for Galen Johnson ---10/12/2018 04:49:42
PM---You can actually check for free space on volume instead of]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

From: Galen Johnson <user-fc632e705d24@xymon.invalid>
To: user-501bbe9c5409@xymon.invalid
Cc: Steffan <user-a2c231b1253e@xymon.invalid>, "xymon >> xymon at xymon.com" <
xymon at xymon.com>
Date: 10/12/2018 04:49 PM
Subject: Re: [Xymon] xymon not warning


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:

DISK /archive/courses 52428800U 10485760U

(IIRC, those are in KB...check the man page) to turn yellow when 50 GB
remains and red when 10 GB left on device.

=G=

On Fri, Oct 12, 2018 at 10:40 AM Norbert Kriegenburg <
*user-501bbe9c5409@xymon.invalid* <user-501bbe9c5409@xymon.invalid>> wrote:

   Ah yes,

   i also recently stumbled over this. Took me some time to find out what
   is the root cause (as always this mailing list helped).
   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).
   (Btw: the inode alerting is not affected by the "h" switch).

   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...

   Norbert


   "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

   From: "Steffan" <*user-a2c231b1253e@xymon.invalid* <user-a2c231b1253e@xymon.invalid>>
   To: <*xymon at xymon.com* <xymon at xymon.com>>
   Date: 10/12/2018 04:07 PM
   Subject: Re: [Xymon] xymon not warning
   Sent by: "Xymon" <*xymon-bounces at xymon.com* <xymon-bounces at xymon.com>>


   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.

   Thanx


* Van:* Becker Christian <*user-e4a19bfb94c0@xymon.invalid*
   <user-e4a19bfb94c0@xymon.invalid>>
* Verzonden:* vrijdag 12 oktober 2018 15:40
* Aan:* Steffan <*user-a2c231b1253e@xymon.invalid* <user-a2c231b1253e@xymon.invalid>>;
   *xymon at xymon.com* <xymon at xymon.com>
* Onderwerp:* AW: [Xymon] xymon not warning

   Hello,

   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?

   On “my” systems the sizes are reported in bytes, not in megabytes,
   gigabytes, terabytes or whatever:


   Just a thought…

   Regards
   Christian


* Von:* Xymon <*xymon-bounces at xymon.com* <xymon-bounces at xymon.com>> *Im
   Auftrag von *Steffan
* Gesendet:* Freitag, 12. Oktober 2018 15:23
* An:* *xymon at xymon.com* <xymon at xymon.com>
* Betreff:* Re: [Xymon] xymon not warning

   It is always green
   Even if one is 100%
   Analysis settings are:
   DISK * 80 97 #YELLOW LOW FOR TESTING

   91% /mnt/node2

* Fri Oct 12 15:21:26 CEST 2018 - Filesystems ok*

* Van:* SebA <*user-4631430d620a@xymon.invalid* <user-4631430d620a@xymon.invalid>>
* Verzonden:* vrijdag 12 oktober 2018 13:48
* Aan:* Steffan <*user-a2c231b1253e@xymon.invalid* <user-a2c231b1253e@xymon.invalid>>
* CC:* Xymon Mailing List <*xymon at xymon.com* <xymon at xymon.com>>
* Onderwerp:* Re: [Xymon] xymon not warning

   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.

   Kind regards,

   SebA

   On 12 October 2018 at 10:35, Steffan <*user-a2c231b1253e@xymon.invalid*
   <user-a2c231b1253e@xymon.invalid>> wrote:
   I dont see anything ignored in analysis.cfg

* Van:* Neil Simmonds <*user-feff97fabd3d@xymon.invalid*
   <user-feff97fabd3d@xymon.invalid>>
* Verzonden:* vrijdag 12 oktober 2018 11:27
* Aan:* 'Steffan' <*user-a2c231b1253e@xymon.invalid* <user-a2c231b1253e@xymon.invalid>>;
   *xymon at xymon.com* <xymon at xymon.com>
* Onderwerp:* RE: [Xymon] xymon not warning

   Isn’t /mnt ignored in analysis.cfg?

* From:* Xymon <*xymon-bounces at xymon.com* <xymon-bounces at xymon.com>> *On
   Behalf Of *Steffan
* Sent:* 12 October 2018 10:12
* To:* *xymon at xymon.com* <xymon at xymon.com>
* Subject:* [Xymon] xymon not warning

   Hello list,

   Xymon is sending warnings from other servers but it does not warn if
   /mnt is getting filled
   (yellow level is 90%)

   Eny idees why this is ignored?


* Fri Oct 12 11:06:27 CEST 2018 - Filesystems ok*
   Filesystem Size Used Avail Use% Mounted on
   udev 12G 0 12G 0% /dev
   tmpfs 2.4G 266M 2.1G 12% /run
   /dev/mapper/pve-root 94G 3.5G 86G 4% /
   tmpfs 12G 19M 12G 1% /dev/shm
   tmpfs 5.0M 0 5.0M 0% /run/lock
   tmpfs 12G 0 12G 0% /sys/fs/cgroup
   /dev/sdb1 1.8T 1.5T 273G 85% /mnt/node1
   /dev/sdd1 1.8T 1.5T 257G 86% /mnt/node3
   /dev/sdc1 3.6T 3.1T 343G 91% /mnt/node2
   tmpfs 2.4G 0 2.4G 0% /run/user/0


   Steffan

   
*Xymon at xymon.com*
   <
   
*Xymon at xymon.com*
   <


*Xymon at xymon.com*
   <
   "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] *