check_wmi_plus - multiple services similar name

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Cajun
Posts: 9
Joined: Thu Mar 15, 2012 8:09 pm

check_wmi_plus - multiple services similar name

Post 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
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: check_wmi_plus - multiple services similar name

Post 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.
Cajun
Posts: 9
Joined: Thu Mar 15, 2012 8:09 pm

Re: check_wmi_plus - multiple services similar name

Post by Cajun »

awesome that worked.

Thanks
agriffin
Posts: 876
Joined: Mon May 09, 2011 9:36 am

Re: check_wmi_plus - multiple services similar name

Post by agriffin »

Glad I could help!
Locked