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.
check_disk not displaying all filesystems in nagios
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: check_disk not displaying all filesystems in nagios
Is that a net mounted partition/drive?
Re: check_disk not displaying all filesystems in nagios
nope. it's a scsi drive tray.
It's visible when check_disk is run manually, but hidden when run by nagios with the exact same options.
It's visible when check_disk is run manually, but hidden when run by nagios with the exact same options.
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: check_disk not displaying all filesystems in nagios
What is the output of running this on the nagios server:
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H host.addr.of.remotehost -c check_disk -a "-L -u GB -w05% -c01%"
Re: check_disk not displaying all filesystems in nagios
installing, configuring, and securing nrpe is non-trivial, and is probably not something we are going to do.
The check_disk command can be run successfully on the remote host, and at least partial information makes it back to the nagios.
This probaby indicates that connectivity between remote host and nagios is not the issue.
The check_disk command can be run successfully on the remote host, and at least partial information makes it back to the nagios.
This probaby indicates that connectivity between remote host and nagios is not the issue.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: check_disk not displaying all filesystems in nagios
verify that the nrpe.cfg on the remote system is accepting the arguments you are passing, and that you do not have more than 1 check_disk command defined in the nrpe.cfg or in other files it calls in.