[Nagiosplug-devel] check_nrpe question
Thomas Guyot-Sionnest
Thomas at zango.com
Tue Sep 19 21:55:15 CEST 2006
I had the same problem but in in a different context. I'm not sure it it
will help, but try:
- replacing the \ by $ ('$$' instead of '\$')
- removing the \ before the $
- Each change above while enclosing the service list in single quotes ([...]
-l 'serv1,serv$$23,etc' [...])
As a last resort you could add a comma at the end of the list, so all checks
will be performed but you will allways see something like ": Unknown".
Return status should be ok as well.
Good luck...
Thomas
> -----Original Message-----
> From: nagiosplug-devel-bounces at lists.sourceforge.net
> [mailto:nagiosplug-devel-bounces at lists.sourceforge.net] On
> Behalf Of Gary W. Smith
> Sent: September 19, 2006 14:34
> To: nagiosplug-devel at lists.sourceforge.net
> Subject: [Nagiosplug-devel] check_nrpe question
>
> I have a nagios server that makes a call to a server running
> nrpe to collect data. The server running nrpe itself uses
> check_nt to collect some data from some Wintel boxes behind
> it's firewall.
>
> The nrpe server has the following command in place on the
> remote nrpe server.
>
> command[check_data_01_services]=/usr/lib/nagios/plugins/check_
nt -H 10.94.64.4 -p 8244 -v SERVICESTATE -d SHOWALL -l >
MSExchangeIS,MSExchangeMGMT,MSExchangeMTA,MSExchangeSA,RESvc,M
> SSQL\$ATACENTER,SMTPSVC,SPTServer,W3SVC,lanmanserver,BackupExe
> cAgentAccelerator,IISADMIN,Spooler
>
> This command when executed on the nagios box reports all
> okay. All seems good there.
>
> On the nagios server I call the remote nrpe command and I get
> the following error.
>
> /usr/lib/nagios/plugins/check_nrpe -H REMOTEHOST -p
> REMOTEPORT -c check_data_01_services
>
> MSExchangeIS: Started - MSExchangeMGMT: Started -
> MSExchangeMTA: Started - MSExchangeSA: Started - RESvc:
> Started - MSSQL$ATACENTER: Started - SMTPSVC: Started -
> SPTServer: Started - W3SVC: Started - lanmanserver: Started -
> BackupExecAgentAccelerator: Started - IISADMIN: Started -
> Spooler$: Unknown
>
> Note the $ after spooler. Even if I remove spooler from the
> nrpe config file it then dies on IISADMIN, etc. I have 3
> other servers that I check in the same way without any
> siginificant problem.
>
>
> Here is the configuration portion of nagios.
>
> define service {
>
> service_description Service State
>
> use generic-service
>
> host_name REMOTEHOSTNAME
>
> check_command check_nrpe!check_data_01_services
>
> }
>
> define service {
>
> name generic-service
>
> is_volatile 0
>
> check_period 24X7
>
> max_check_attempts 5
>
> normal_check_interval 30
>
> retry_check_interval 1
>
> active_checks_enabled 1
>
> passive_checks_enabled 1
>
> parallelize_check 1
>
> obsess_over_service 1
>
> check_freshness 1
>
> freshness_threshold 0
>
> notifications_enabled 1
>
> notification_interval 120
>
> notification_period 24X7
>
> notification_options u,c,w,r
>
> event_handler_enabled 1
>
> flap_detection_enabled 1
>
> low_flap_threshold 0
>
> high_flap_threshold 0
>
> process_perf_data 1
>
> retain_status_information 1
>
> retain_nonstatus_information 1
>
> contact_groups all-admins
>
> register 0
>
> }
>
> Any ideas?
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3022 bytes
Desc: not available
URL: <https://www.monitoring-plugins.org/archive/devel/attachments/20060919/271b9c4b/attachment.bin>
More information about the Devel
mailing list