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, Nagios Newbie here.....I am setting up Nagios to monitor multiple servers on my network. (Win 2003 server machines). I am running Nagios 3.2.1 on Ubuntu linux.
Three of my services being monitored work perfectly:
Memory Usage
NSClient++ Version
Uptime
The other four only ever return a status of "Unknown":
C: Drive Space
CPU Load
Explorer
W3SVC
I have checked the configuration files for the windows.cfg and from all I can tell, it looks OK, as does the nagios.cfg and the command.cfg.
Here is a sample of my service definitions for the checks *not* working:
I would check the configuration file on the NSClient, not all of the checks are enabled on the client by default, so you'll have to turn them on for it to send the data.
If that doesn't fix it, can you send the full "status information" message for each of these services. The error messages "should" point to where the problem is.
[modules]
NRPEListener.dll
NSClientListener.dll
FileLogger.dll
CheckSystem.dll
CheckDisk.dll
CheckEventLog.dll
CheckHelpers.dll
;# NSCLIENT++ MODULES
;# A list with DLLs to load at startup.
; You will need to enable some of these for NSClient++ to work.
; ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !
; * *
; * N O T I C E ! ! ! - Y O U H A V E T O E D I T T H I S *
; * *
; ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !
FileLogger.dll
CheckSystem.dll
CheckDisk.dll
NSClientListener.dll
NRPEListener.dll
SysTray.dll
CheckEventLog.dll
CheckHelpers.dll
;CheckWMI.dll
;
; Script to check external scripts and/or internal aliases.
CheckExternalScripts.dll
;
; NSCA Agent if you enable this NSClient++ will talk to NSCA hosts repeatedly (so dont enable unless you want to use NSCA)
NSCAAgent.dll
;
; LUA script module used to write your own "check deamon".
LUAScript.dll
;
; RemoteConfiguration IS AN EXTREM EARLY IDEA SO DONT USE FOR PRODUCTION ENVIROMNEMTS!
;RemoteConfiguration.dll
; Check other hosts through NRPE extreme beta and probably a bit dangerous! :)
NRPEClient.dll
; Extreamly early beta of a task-schedule checker
CheckTaskSched.dll
I enabled the allow-arguments (set it to = 1 ?) and re-ran the check on that particular server with the same results.
Here are the status information messages showing in the web interface for these services:
cd /usr/local/nagios/libexec
./check_nt (your commandline arguments)
I'd try messing with that until you get something returned for a status. There may be an invalid or missing argument or something in the command definition and that's the best way to check it.