check_disk not displaying all filesystems in nagios
Posted: Wed Dec 11, 2013 5:17 pm
I am using the default check_disk plugin that was packaged with nagios core 3.5.0, and am trying to use the plugin to monitor free space.
when running the command directly on the server, I see:
check_disk -L -u GB -w05% -c01%
DISK OK - free space: / 423 GB (90% inode=98%); /dev/shm 23 GB (100% inode=99%); /boot 0 GB (80% inode=99%); /boot/efi 9 GB (99% inode=-); /glados 6510 GB (17% inode=99%);| /=42GB;465;485;0;490 /dev/shm=0GB;21;22;0;23 /boot=0GB;0;0;0;0 /boot/efi=0GB;8;8;0;9 /glados=30737GB;35385;36875;0;37248
When nagios runs the command to update status, the /glados partition is never listed:
DISK OK - free space: / 7 GB (45% inode=85%): /dev/shm 1 GB (100% inode=99%): /boot 0 GB (83% inode=99%):
(what happened to the /glados partition?!?)
the command nagios runs is:
define command{
command_name check_all_disks
command_line $USER1$/check_disk -L -u GB -w$ARG1$ -c$ARG2$
}
so it's easy to verify that the options are the same.
Does anyone have an idea as to why my /glados partition is not showing up and presumably not being monitored in nagios?
According to the docs for check_disk, it should be there...
Thanks in advance.
when running the command directly on the server, I see:
check_disk -L -u GB -w05% -c01%
DISK OK - free space: / 423 GB (90% inode=98%); /dev/shm 23 GB (100% inode=99%); /boot 0 GB (80% inode=99%); /boot/efi 9 GB (99% inode=-); /glados 6510 GB (17% inode=99%);| /=42GB;465;485;0;490 /dev/shm=0GB;21;22;0;23 /boot=0GB;0;0;0;0 /boot/efi=0GB;8;8;0;9 /glados=30737GB;35385;36875;0;37248
When nagios runs the command to update status, the /glados partition is never listed:
DISK OK - free space: / 7 GB (45% inode=85%): /dev/shm 1 GB (100% inode=99%): /boot 0 GB (83% inode=99%):
(what happened to the /glados partition?!?)
the command nagios runs is:
define command{
command_name check_all_disks
command_line $USER1$/check_disk -L -u GB -w$ARG1$ -c$ARG2$
}
so it's easy to verify that the options are the same.
Does anyone have an idea as to why my /glados partition is not showing up and presumably not being monitored in nagios?
According to the docs for check_disk, it should be there...
Thanks in advance.