Service using filters for Windows service
Posted: Wed Jun 01, 2016 11:04 am
Hi, I am using the following manually command which works fine:
/usr/lib64/nagios/plugins/check_nrpe -H x.x.x.x -c check_service -a "filter=name like 'BTSSvc'"
The service check I created on Nagios is:
{ "command": "$USER2$ -H $HOSTADDRESS$ -t $SERVICENRPETIMEOUT$ -c check_service -a $SERVICETHRNAME", "notes": "Checks if BizTalk Services are running", "rule": { "name": { "value": " ", "help": "filter=name like 'BTSSvc'" } } }
I add the check to the server, giving name the value:
"filter=name like 'BTSSvc'"
But the Nagios service does not understand the value for name. I know it has something to do with the quotations and such. I get an error message:
Invalid command line: unrecognised option 'like'
We add the rules via an API, so I hope this process makes sense.
Can anyone help me? Thanks!
/usr/lib64/nagios/plugins/check_nrpe -H x.x.x.x -c check_service -a "filter=name like 'BTSSvc'"
The service check I created on Nagios is:
{ "command": "$USER2$ -H $HOSTADDRESS$ -t $SERVICENRPETIMEOUT$ -c check_service -a $SERVICETHRNAME", "notes": "Checks if BizTalk Services are running", "rule": { "name": { "value": " ", "help": "filter=name like 'BTSSvc'" } } }
I add the check to the server, giving name the value:
"filter=name like 'BTSSvc'"
But the Nagios service does not understand the value for name. I know it has something to do with the quotations and such. I get an error message:
Invalid command line: unrecognised option 'like'
We add the rules via an API, so I hope this process makes sense.
Can anyone help me? Thanks!