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.
I recently decided to monitor a few core systems with Nagios. The systems are Windows 2008 R2 servers with NSClient++ installed. I followed as much documentation as I could and managed to get Nagios to get everything it needs from the first server.
The other 3 are missing the CPULOAD and USEDDISKSPACE checks. They're just UNKNOWN with status information of 'usage:'.
Below are images of a screenshot of the UI and of the service definition for CPULOAD for all servers. The NClient++ ini file for the all servers are identical with passwords and IPs in place.
Interestingly, on the Nagios server (Centos7) the below command provides the check information which should be on the nagios page but is instead replaced by UNKNOWN.
Still using the pre-defined checks... It's really weird especially as I can type the command and get the metric from the command line.. Even if I could find something to give me information as to why the check result is UNKNOWN. Nagios.log doesn't even show any further information... just the UNKNOWN check result.
Just for troubleshooting purposes, can you change the host definition of shinersq102 so that it has the same hostaddress as shinerctx01.
There is no doubt that this will NOT solve your issue, however it might tell us if the problem is related specifically to the Windows server and not the host, command and service definitions. My guess from the output is that it is something malformed coming out of the service definitions, but as I said, everything looks good to me.
I changed the host address of shinersql02 to match shinerctx01 and it displayed all the expected service checks of shinerctx01 except with the disk usage and CPU load checks still showing as UNKNOWN.
Hmmm... I took various snapshots of this server at each stage so I guess it'll be a case of going through each one.
That definitely does tell us that the problem is with the Nagios configurations.
Do you know how to do command expansion in the core interface?
Under System choose Configuration
Choose Services from the dropdown and hit Continue
Find a failing host/service and click the link in the "Check Command" column
Take a look there and see if the command expansion looks proper. this one truly has me baffled at this point.
TwitsBlog Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.