Xymon Mailing List Archive search

Monitoring /tmp usage

list Rob Munsch
Thu, 20 Jan 2011 17:34:32 -0500
Message-Id: <user-bac556de5407@xymon.invalid>

Ah gotcha.  Silly as it is, to include tmpfs but leave the rest of the EXCLUDE intact, I take the current

cat /proc/filesystems | grep nodev | awk '{print $2}' | xargs echo | sed -e 's! ! -x !g'

and turn it into 

cat /proc/filesystems | grep nodev | grep -v tmpfs | awk '{print $2}' | xargs echo | sed -e 's! ! -x !g'

and I seem to get the result I want.  Thanks all :)
-----Original Message-----
From: Henrik "Størner [mailto:user-ce4a2c883f75@xymon.invalid]
Sent: Thursday, January 20, 2011 7:23 AM
To: xymon at xymon.com
Subject: Re: [xymon] Monitoring /tmp usage

In <user-1049a8574fab@xymon.invalid> Ryan Novosielski <user-ae4522577e16@xymon.invalid>
writes:
On 01/19/2011 03:38 PM, Rob Munsch wrote:
[df]
Filesystem         1024-blocks      Used Available Capacity Mounted on
/dev/hdv1            3768053780 1050316584 2717737196      28% /

[mount]
/dev/hdv1 on / type ufs (defaults)
none on /proc type proc (defaults)
none on /tmp type tmpfs (size=128m,mode=1777,nosuid,noexec,nodev)
It is possible that your problem stems from the fact that /tmp is type
"none" and that a grep looking for /dev would fail. I'm not exactly sure
what Xymon looks for, but I had to manually change some scripts
associated with BB to look for even ZFS filesystems which do not have
devices under / (or at least they don't appear to from df's POV).
Precisely. The "df" data does not have info about /tmp, so you need
to look at the Xymon client script running on the server to have
it report data for non-physical filesystems. Look at the
~xymon/client/bin/xymonclient-OSNAME.sh script (or "hobbit" ditto).
By default, non-physical filesystems are excluded.

Regards,
Henrik