Michael,

I did try this before posting, but it failed.. I took the time to read the 
exact failure and it turned out that I missed the final enclosing double quote.

Thanks for pointing me in the right direction.

Thanks,
Phil.

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

Reply via email to