I tried DISK /media/user/USB-1TB 80 90
Didn't work.
Kris Springer
On 11/28/22 11:00 AM, Adam Thorn wrote:
On 28/11/2022 13:57, Kris Springer wrote:
I've recently installed a xymon server on Debian to monitor my home network, and I'd like the server to also show the status of a USB drive I have plugged into it.? The drive is listed as /dev/sda and mounted at /media/user/USB-1TB It is listed in the xymon client data, but it doesn't show up on the 'disk' or 'inode' columns at all.? I've commented out the default IGNORE rules from analysis.cfg and even tried adding the following as a host specific test, but still nothing appears. DISK /dev/sda 80 90 INODE /dev/sda 80 90
For DISK and INODE entries in analysis.cfg you need to specify the mountpoint rather than the device name, e.g.
HOST=my.example.host ? DISK /media/user/USB-1TB 80 90
Quoting selectively from "man analysis.cfg"..
DISK filesystem warnlevel paniclevel ... "filesystem" is the mount-point where the filesystem is mounted, e.g. "/usr" or "/home".
If you had a default IGNORE rule then I think that's non-standard, because the default rule for DISK is
DEFAULT ? DISK * 90 95
Note that analysis.cfg is read top-to-bottom and the first matching rule wins, so it's important to check that the analysis rule you're adding isn't being overriden by something earlier in the file.
Adam
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon