Page 1 of 1

check_wmi_plus - multiple services similar name

Posted: Wed Jun 13, 2012 1:18 am
by Cajun
Hi

Having an issue with check_wmi_plus. I am wanting to check if one service is running but i get the below reply

CRITICAL - [Triggered by _NumBad>0] - Found 3 Services(s), 1 OK and 2 with problems (0 excluded). 'Oracleagent11g1Agent' (Oracleagent11g1Agent) is Running, 'Oracleagent11g1AgentSNMPPeerEncapsulator' (Oracleagent11g1AgentSNMPPeerEncapsulator) is Stopped, '

Its due to fact there is 3 services with similar names Oracleagent11g1Agent, Oracleagent11g1AgentSNMPPeerEncapsulator, Oracleagent11g1AgentSNMPPeerMasterAgent

Only one of these is running how ever, so in turn it throws an error which is rather annoying, is anyway i can tell it to specific 1 service. not look for all with similar name.

Cheers

Re: check_wmi_plus - multiple services similar name

Posted: Wed Jun 13, 2012 10:54 am
by agriffin
I assume you're trying to monitor Oracleagent11g1Agent alone? If so try using Oracleagent11g1Agent$ as the service name (note the trailing dollar sign), see if that helps.

Re: check_wmi_plus - multiple services similar name

Posted: Wed Jun 13, 2012 5:26 pm
by Cajun
awesome that worked.

Thanks

Re: check_wmi_plus - multiple services similar name

Posted: Fri Jun 15, 2012 9:59 am
by agriffin
Glad I could help!