R: I: NSClient++ configuration problems

Chris Goosen cgoosen at jhb.artec.co.za
Wed Feb 22 15:00:06 CET 2006


Hello...

Here are some of my configs : (checkcommands.cfg) beware of wrapping

# 'nt_check_disk_c' command definition
define command{
	command_name	nt_check_disk_c
	command_line	$USER1$/check_nrpe  -H $HOSTADDRESS$ -p 5666 -c CheckDriveSize -a Drive=C: ShowAll=long MaxWarn=85% MaxCrit=90%
	}

# 'nt_check_disk_d' command definition
define command{
	command_name	nt_check_disk_d
	command_line	$USER1$/check_nrpe  -H $HOSTADDRESS$ -p 5666 -c CheckDriveSize -a Drive=D: ShowAll=long MaxWarn=85% MaxCrit=90%
	}

# 'nt_check_disk_e' command definition
define command{
	command_name	nt_check_disk_e
	command_line	$USER1$/check_nrpe  -H $HOSTADDRESS$ -p 5666 -c CheckDriveSize -a Drive=E: ShowAll=long MaxWarn=85% MaxCrit=90%
	}

# 'nt_check_disk_f' command definition
define command{
	command_name	nt_check_disk_f
	command_line	$USER1$/check_nrpe  -H $HOSTADDRESS$ -p 5666 -c CheckDriveSize -a Drive=F: ShowAll=long MaxWarn=85% MaxCrit=90%
	}

# 'nt_check_disk_g' command definition
define command{
	command_name	nt_check_disk_g
	command_line	$USER1$/check_nrpe  -H $HOSTADDRESS$ -p 5666 -c CheckDriveSize -a Drive=G: ShowAll=long MaxWarn=85% MaxCrit=90%
	}

# 'nt_check_disk_h' command definition
define command{
	command_name	nt_check_disk_h
	command_line	$USER1$/check_nrpe  -H $HOSTADDRESS$ -p 5666 -c CheckDriveSize -a Drive=H: ShowAll=long MaxWarn=85% MaxCrit=90%
	}

# 'nt_check_cpu' command definition
define command{
	command_name	nt_check_cpu
	command_line	$USER1$/check_nrpe  -H $HOSTADDRESS$ -p 5666 -c checkCPU -a warn=80% crit=90% time=20m time=5m time=30s ShowAll=long
	}

# 'nt_check_eventlog' command definition
define command{
	command_name	nt_check_eventlog
	command_line	$USER1$/check_nrpe  -H $HOSTADDRESS$ -p 5666 -c nt_check_eventlog
	}

# 'nt_check_memload' command definition
define command{
	command_name	nt_check_memload
	command_line	$USER1$/check_nrpe  -H $HOSTADDRESS$ -p 5666 -c checkMem -a MaxWarn=80% MaxCrit=90% ShowAll=long
	}

# 'nt_check_physmem' command definition
define command{
	command_name	nt_check_physmem
	command_line	$USER1$/check_nrpe  -H $HOSTADDRESS$ -p 5666 -c checkMem type=physical -a MaxWarn=80% MaxCrit=90% ShowAll=long
	}


# 'nt_service_exchange' command definition
define command{
	command_name	nt_service_exchange
	command_line	$USER1$/check_nrpe  -H $HOSTADDRESS$ -p 5666  -c checkServiceState -a ShowAll MSExchangeIS MSExchangeMGMT MSExchangeMTA RESvc SMTPSVC IISADMIN W3SVC
	}

# 'nt_service_web' command definition
define command{
	command_name	nt_service_web
	command_line	$USER1$/check_nrpe  -H $HOSTADDRESS$ -p 5666 -c checkServiceState -a ShowAll IISADMIN W3SVC
	}

# 'nt_service_sql' command definition
define command{
	command_name	nt_service_sql
	command_line	$USER1$/check_nrpe  -H $HOSTADDRESS$ -p 5666 -c checkServiceState -a ShowAll MSSQLSERVER
	}

# 'nt_service_netlogon' command definition
define command{
	command_name	nt_service_netlogon
	command_line	$USER1$/check_nrpe  -H $HOSTADDRESS$ -p 5666 -c checkServiceState -a ShowAll NetLogon
	}

# 'nt_service_server' command definition
define command{
	command_name	nt_service_server
	command_line	$USER1$/check_nrpe  -H $HOSTADDRESS$ -p 5666 -c checkServiceState -a ShowAll lanmanserver
	}

# 'nt_service_ws' command definition
define command{
	command_name	nt_service_ws
	command_line	$USER1$/check_nrpe  -H $HOSTADDRESS$ -p 5666 -c checkServiceState -a ShowAll EventLog DNScache
	}

# 'nt_service_trend' command definition
define command{
	command_name	nt_service_trend
	command_line	$USER1$/check_nrpe  -H $HOSTADDRESS$ -p 5666 -c checkServiceState -a ShowAll tmlisten ntrtscan
	}

# 'nt_service_beremote' command definition
define command{
	command_name	nt_service_beremote
	command_line	$USER1$/check_nrpe  -H $HOSTADDRESS$ -p 5666 -c checkServiceState -a ShowAll BackupExecAgentAccelerator
	}

# 'nt_service_beoracle' command definition
define command{
	command_name	nt_service_beoracle
	command_line	$USER1$/check_nrpe  -H $HOSTADDRESS$ -p 5666 -c checkServiceState -a ShowAll Veritas_Oracle_Agent
	}

# 'nt_service_be' command definition
define command{
	command_name	nt_service_be
	command_line	$USER1$/check_nrpe  -H $HOSTADDRESS$ -p 5666 -c checkServiceState -a ShowAll BackupExecAgentBrowser BackupExecDeviceMediaService BackupExecJobEngine BackupExecRPCService BackupExecAgentAccelerator
	}

# 'nt_service_oracle' command definition
define command{
	command_name	nt_service_oracle
	command_line	$USER1$/check_nrpe  -H $HOSTADDRESS$ -p 5666 -c checkServiceState -a ShowAll OracleORA92TNSListener OracleServiceAZAJDE
	}

# 'nt_service_dhcp' command definition
define command{
	command_name	nt_service_dhcp
	command_line	$USER1$/check_nrpe  -H $HOSTADDRESS$ -p 5666 -c checkServiceState -a ShowAll DHCPServer
	}

# 'nt_service_symantecav' command definition
define command{
	command_name	nt_service_symantecav
	command_line	$USER1$/check_nrpe  -H $HOSTADDRESS$ -p 5666 -c checkServiceState -a ShowAll DefWatch
	}

# 'nt_service_ts' command definition
define command{
	command_name	nt_service_ts
	command_line	$USER1$/check_nrpe  -H $HOSTADDRESS$ -p 5666 -c checkServiceState -a ShowAll TermService
	}

# 'nt_service_spp' command definition
define command{
	command_name	nt_service_spp
	command_line	$USER1$/check_nrpe  -H $HOSTADDRESS$ -p 5666 -c checkServiceState -a ShowAll SPSAdmin SPTimer
	}

# 'nt_service_print' command definition
define command{
	command_name	nt_service_print
	command_line	$USER1$/check_nrpe  -H $HOSTADDRESS$ -p 5666 -c checkServiceState -a ShowAll Spooler
	}

# 'nt_service_pelibib' command definition
define command{
	command_name	nt_service_pelibib
	command_line	$USER1$/check_nrpe  -H $HOSTADDRESS$ -p 5666 -c checkServiceState -a ShowAll PELINT
	}

# 'nt_service_cognos' command definition
define command{
	command_name	nt_service_cognos
	command_line	$USER1$/check_nrpe  -H $HOSTADDRESS$ -p 5666 -c checkServiceState -a ShowAll amserver_cer4 IwSvcMancer4
	}

# 'nt_service_dazeldagent' command definition
#define command{
#	command_name	nt_service_dazeldagent
#	command_line	$USER1$/check_nrpe  -H $HOSTADDRESS$ -p 5666 -c checkServiceState -a ShowAll DAZEL Delivery Agent
#	}

# 'nt_service_dazelstart' command definition
define command{
	command_name	nt_service_dazelstart
	command_line	$USER1$/check_nrpe  -H $HOSTADDRESS$ -p 5666 -c checkServiceState -a ShowAll dazel_start
	}

# 'nt_proc_dazeldagent' command definition
define command{
	command_name	nt_proc_dazeldagent
	command_line	$USER1$/check_nrpe  -H $HOSTADDRESS$ -p 5666 -c checkProcState -a ShowAll DcPSI.exe
	}



-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Marco Borsani
Sent: Wednesday, February 22, 2006 10:50 AM
To: 'Dany Allard'; 'NAGIOS'
Subject: R: R: [Nagios-users] I: NSClient++ configuration problems

Hi

May someone give me any examples of commands to use to communicate with
NSClient++?

I tried:
./check_nt -H 151.x.x.x -v USEDDISKSPACE -l check_disk_c
Where "check_disk_c" is a line uncommented in the nsc.ini file
The answer is: "wrong -l argument"
Or
./check_nrpe -H 151.x.x.x -c check_users
Where "check_users" is a line uncommented in the nsc.ini file
The answer is: "CHECK_NRPE: Error receiving data from host"

May I use same "check_nrpe" that I am using for Unix systems?
And same "check_nt" that I am using with old NSClient agent?

Regards
Marco

-}-----Messaggio originale-----
-}Da: nagios-users-admin at lists.sourceforge.net 
-}[mailto:nagios-users-admin at lists.sourceforge.net] Per conto 
-}di Dany Allard
-}Inviato: venerdì 17 febbraio 2006 19.20
-}A: NAGIOS
-}Oggetto: RE: R: [Nagios-users] I: NSClient++ configuration problems
-}
-}Marco
-}
-} A quick test to make sure that the port is open is to telnet to it.
-}> telnet YourHostname 1248
-}
-}If you don't get a connection failed message the port should be open.
-}If it fails with "..Could not open connection to the host..." 
-}then the port is being blocked somewhere.
-}
-} Dany Allard
-}
-}-----Original Message-----
-}From: nagios-users-admin at lists.sourceforge.net
-}[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf 
-}Of Marco Borsani
-}Sent: Thursday, February 16, 2006 3:11 AM
-}To: 'Michael Medin'
-}Cc: 'NAGIOS'
-}Subject: R: R: [Nagios-users] I: NSClient++ configuration problems
-}
-}I set 1248 (NSClient) and 5666 (NRPE) ports on NCS.INI file.
-}I see both ports open (but associated to local IP 0.0.0.0), 
-}NSClient++ is running, but neither a check_nt, a check_nrpe 
-}or a check_tcp run correctly.
-}
-}Marco
-}<snip>
-}This message is intended only for the addressee and may 
-}contain personal, privileged or confidential information. 
-}If you have received this message in error, please notify the 
-}sender immediately and delete or destroy this message without 
-}making copies or opening any attachments. Any further 
-}distribution, duplication or disclosure is prohibited.
-}
-}
-}-------------------------------------------------------
-}This SF.net email is sponsored by: Splunk Inc. Do you grep 
-}through log files for problems?  Stop!  Download the new AJAX 
-}search engine that makes searching your log files as easy as 
-}surfing the  web.  DOWNLOAD SPLUNK!
-}http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642
-}_______________________________________________
-}Nagios-users mailing list
-}Nagios-users at lists.sourceforge.net
-}https://lists.sourceforge.net/lists/listinfo/nagios-users
-}::: Please include Nagios version, plugin version (-v) and OS 
-}when reporting any issue. 
-}::: Messages without supporting info will risk being sent to /dev/null
-}



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list