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.
Hey all, I was just going through my Nagios Service Status pages and found an oddity regarding my disk monitoring -- I'm getting different results with the same command on my Debian and CentOS servers.
DISK OK - free space: /dev 10 MB (100% inode=99%):
Any ideas on my my Debian servers show /dev but my CentOS servers show / for their results? Is that why I'm getting the different numbers? I wasn't able to find anything on Google. Sigh, I guess I need to look back over a lot of other stuff to see what else I've missed.
First I would make absolutely certain that they both use the same check_sda2 command, and that the one showing the root directory is not, in fact, set to show just /.
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.
su nagios -c "/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/sda2"
If you add quotes to the nrpe command, does it now work through nrpe?
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.
I have an ubuntu docker container that I could test with shortly. Before I do, one thing I have not seen mentioned, is the current version of check_disk on both your systems. Could you ssh in and run the following on both systems?
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.
I would highly suggest installing at least 1.5 if not 2.0.3 on your systems. Since the 2.0 release, we have been fixing years worth of bugs, and 1.5 also has about 3 years of work more than the current 1.4 branch you are using.
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.