check_wmi_plus checkservice using display name

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
brianp89
Posts: 18
Joined: Thu May 08, 2014 10:53 am

check_wmi_plus checkservice using display name

Post by brianp89 »

I am fairly new to Nagios and apologize if this is a novice question.

I am trying to use ./check_wmi_plus.pl -H $HOSTADDRESS$ -u $ARG1$ -p $ARG2$ -m $ARG3$ $ARG4$

with $ARG3$ = checkservice
and $ARG4$ = -a "service1|service2|service3|service4|service5" -c _NumBad=0 -w _NumGood=5:

This works great if I use the actual "Service Name", however I would like to use the service's "Display Name" instead. Do you know if this is possible?

Thank you!
Last edited by brianp89 on Thu May 08, 2014 11:11 am, edited 1 time in total.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: check_wmi_plus checkservier using display name

Post by slansing »

Due to how WMI queries the actual counters, I believe you need to stick to the actual service name, this is a windows thing I'm afraid. I'll take a look around and see if it is possible, however I would not hold out hope for this one.
brianp89
Posts: 18
Joined: Thu May 08, 2014 10:53 am

Re: check_wmi_plus checkservice using display name

Post by brianp89 »

Thanks for the quick reply! I will keep checking back in case you find a solution.

If not, then maybe I can arrange to have the service names changed to something more human readable (right now the service names look like AC7352G1-430F-19F8-E040-8DA8204616BA which is why I was hoping to use the Display Name instead).
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: check_wmi_plus checkservice using display name

Post by sreinhardt »

Unfortunately as slansing mentioned, this is really an issue with the wmi queries more than anything, and that it must use service name. You can however, change the service name if you want via registry edits, but that's pretty far outside of the scope of items that we should be advising you on how to change.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked