[Xymon] Ignoring file system when two "/" (root partitions) are reported
Bill Arlofski
waa-hobbitml at revpol.com
Tue Sep 13 21:39:14 CEST 2011
Hi Larry... Thanks for the reply (moving your reply to the list)
Sure I could, but this looks like something where I will not be the only one
affected, so I figured I'd report it and see if there was either
1. A correct way in analisys.cfg that I was just missing somehow
or
2. Have it 'fixed' in the default (eg: in the release version) rather than me
making a one-off fix to some internal variables
Having said that, it looks like your solution will probably immediately fix my
problem and I will take a look at it as soon as I have a few minutes late
today or tomorrow.
Thanks
--
Bill Arlofski
Reverse Polarity, LLC
http://www.revpol.com/
On 09/13/11 14:40, Larry Barber wrote:
> Could you insert a "grep -v rootfs" in the 'df' section of
> xymonclient-linus.sh?
>
> echo "[df]"
> EXCLUDES=`cat /proc/filesystems | grep nodev | awk '{print $2}' | xargs echo
> | sed -e 's! ! -x !g'`
> df -Pl -x iso9660 -x $EXCLUDES | grep -v rootfs | sed -e '/^[^ ][^
> ]*$/{
> N
> s/[ ]*\n[ ]*/ /
> }'
>
> Thanks,
> Larry Barber
>
> On Tue, Sep 13, 2011 at 12:45 PM, Bill Arlofski <waa-hobbitml at revpol.com>wrote:
>
>> On a Gentoo Linux system, after a recent baselayout update to openrc 2.x
>> (at
>> least I believe that to be the culprit) xymon clients are now reporting
>> back
>> TWO "/" (root) filesystems, and xymon v4.3.4 is reporting and graphing
>> them
>> both like so:
>>
>>
>> Tue Sep 13 13:16:58 EDT 2011 - Filesystems NOT ok
>>
>> (yellow) / (92% used) has reached the WARNING level (90%)
>> (yellow) / (92% used) has reached the WARNING level (90%)
>>
>> Filesystem 1024-blocks Used Available Capacity Mounted on
>> rootfs 96571704 88758608 7813096 92% /
>> /dev/root 96571704 88758608 7813096 92% /
>>
>> In analyze.cfg I have tried to ignore rootfs and then the regular
>> expression
>> versions just in case xymon matched the whole line reported, and not just
>> the
>> info in the "Mounted on" column:
>>
>> HOST=hostname.domain.tld
>> DISK rootfs IGNORE
>>
>> or
>>
>> HOST=hostname.domain.tld
>> DISK %rootfs IGNORE
>>
>> or
>>
>> HOST=hostname.domain.tld
>> DISK %^rootfs IGNORE
>>
>> or
>>
>> HOST=hostname.domain.tld
>> DISK /dev/root IGNORE
>>
>>
>> but these of course will not work since the docs for analyze.cfg say that
>> the
>> DISK test works on the MOUNT POINT, not the device, or partition.
>>
>> Is there any way to ignore ONE of the two disk reports that are essentially
>> the same exact thing, only reported in two different formats?
>>
>>
>>
>> Also, as a side note/suggestion, the docs might be a bit
>> ambiguous/confusing
>> with regards to "filesystem" and "mount point", using them
>> semi-interchangeably which can be needlessly confusing:
>>
>> # DISK filesystem warnlevel paniclevel
>> # DISK filesystem IGNORE
>> # If the utilization of "filesystem" is reported to exceed "warnlevel"
>>
>> Then filesystem is described as...
>> # "filesystem" is the mount-point where the filesystem is mounted, e.g.
>>
>>
>> Perhaps that could be more clear if the test was defined like so:
>>
>> # DISK mountpoint warnlevel paniclevel
>> # DISK mountpoint IGNORE
>>
>> Then, there would be no need for the "filesystem is the mount point..."
>> line
>> since it would be self-evident
>>
>> Thanks!
>>
>> --
>> Bill Arlofski
>> Reverse Polarity, LLC
>> http://www.revpol.com/
>> _______________________________________________
>> Xymon mailing list
>> Xymon at xymon.com
>> http://lists.xymon.com/mailman/listinfo/xymon
>>
>
More information about the Xymon
mailing list