Page 1 of 1

filesystem names monitoring

Posted: Tue Jul 06, 2021 4:43 am
by informatica
Hi Team,

Do we have any option to monitor file system names of the linux servers for the mount point.

we want to monitor the /dev/mapper/centos-root filesystem.

[toolsadmin@qy-nagios-a libexec]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/centos-root 150G 34G 117G 23% /

Re: filesystem names monitoring

Posted: Tue Jul 06, 2021 10:41 am
by pbroste
Hello

Thanks for reaching out, and it appears that you would like to monitor a /dev/ mount point.

Have you taken a look at the 'check_disk' plugin? Here is an example that I plugged in:

Code: Select all

./check_disk -w 10% -c 5% -p /dev/mapper/cl-root -C -w 100000 -c 50000 -p /

DISK OK - free space: / 7774 MiB (56.72% inode=98%);| /=5931MiB;12335;13020;0;13706
Please let us know how that works for you,
Perry

Re: filesystem names monitoring

Posted: Tue Jul 06, 2021 12:34 pm
by dchurch
Hi!

Can you clarify? I'm not sure what you mean by "file system names".

Do you mean asking for file system status by passing the file system's LABEL? (ls -l /dev/disk/by-label)