Am 16.10.2014 um 15:35 schrieb Quinton Phil P:
Hi,

I’m using Icinga2 with NRPE against a remote windows machine running
NSClient++ v0.4.2.93.

 From my icinga2 server I can run this manually:

./check_nrpe -H 1.2.3.4 -c check_service -a "filter=name not in
('sysdown','clr_optimization_v4.0.30319_32')"

CRITICAL: ReportServer=stopped (auto), delayed ()

However, I’m struggling to format this in a CheckCommand object due to
the quotes.. Obviously the configuration below fails. I’d appreciate any
ideas.

Double quotes need to be escaped with a leading backslash..

command = PluginDir + "/check_nrpe .... -a \"quotedstring\""


object CheckCommand "nrpe_win_checkservices" {

   import "plugin-check-command"

   command = NagiosPluginDir + "/check_nrpe -H $address$ -c
check_service -a "filter=name not in
('sysdown','clr_optimization_v4.0.30319_32')"

}

Thanks,

*Phil Quinton*



_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users



-- 
Michael Friedrich, DI (FH)
Application Developer

NETWAYS GmbH | Deutschherrnstr. 15-19 | D-90429 Nuernberg
Tel: +49 911 92885-0 | Fax: +49 911 92885-77
GF: Julian Hein, Bernd Erk | AG Nuernberg HRB18461
http://www.netways.de | [email protected]

** Puppet Camp Duesseldorf 2014 - Oktober - netways.de/puppetcamp **
** OSMC 2014 - November - netways.de/osmc **
** OpenNebula Conf 2014 - Dezember - opennebulaconf.com **
** OSDC 2015 - April - osdc.de **
_______________________________________________
icinga-users mailing list
[email protected]
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to