Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Hi,
I have Nagios 4.0.8 installed on the server and am trying to monitor the free space on a remote rhel server. The Nagios plugins and NRPE client has been installed and configured. From the command line everything works. From the web interface only the sda1 check works. Any idea why the web interface on the server cannot see the remote partitions? I have tried referring to them by /dev/.. and by the mount point /local/.. but same problem. Why is sda1 working but sdb1 is not? Clues?
Space on amber /local/store
CRITICAL 10-13-2014 14:14:41 0d 0h 6m 52s 4/4 DISK CRITICAL - /local/store is not accessible: No such file or directory
Space on amber sda1
OK 10-13-2014 14:18:19 0d 0h 0m 14s 1/4 DISK OK - free space: / 98349 MB (99% inode=99%):
Can you try running the check again on the remote host as the nagios user?
This may be a permissions problem.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Yep, tried from the command line on the remote server using the nagios user and it works fine.
The web interface is working ok for all my other servers as well. Just a problem with the one server.
Last edited by slansing on Wed Oct 29, 2014 3:07 pm, edited 1 time in total.
Reason:Condensed your double post.
I can successfully check the space on /dev/sda1 on the same machine though! Both sdb partitions fail using either the mount point or the dev mapping. Weird.
This may seem a bit odd, but just to be 100% certain, these are both local disks correct? The other thing I wanted to point out at the moment, is that -p is for partitions meaning /dev/sda1 and -M is for mountpoint meaning /local/store. Try the following, on the nrpe server and see if it checks any better:
Also, when you say it is not working from the web interface, is that via the test command button? If so, please save and apply your config and have nagios do a proper check itself instead of using the test command button and see how the interface responds.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Using the -M option still gives 'DISK CRITICAL - /local/store is not accessible: No such file or directory ' on the nagios console
'check_command check_nrpe!check_disk_store'
but from the command line manages to get info.
[root@brad objects]# /usr/local/nagios/libexec/check_nrpe -H amber -c check_disk_store
DISK OK - free space: /dev/sdb1 3183795 MB (59% inode=99%);| /dev/sdb1=2162360MB;4505805;5069031;0;5632257
Is the current service configuration the same as it was when we started this? If not, please show us the updated command_line, Also, the check_nrpe command in commands.cfg
Yes, the service cfg is unchanged. All other servers are talking fine. Just this one causing problems. I think it's something to do with the volume labels and the method used to create the volumes... but can't remember if there was anything done differently. The partitions certainly seem to be a mix of logical volumes and partitions. The check on sda1 works fine.
The redhat LVM shows the amber-lv partitions.
The redhat disk utility shows the sdb partitions
Are you having issues with both store and snap? I see /boot, /local/store, and /local/snaps are the only physical partitions. Do you have issues with a remote check of /boot?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.