Using wilcards in Service Name is it possible???

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
rambertnala
Posts: 60
Joined: Fri Feb 26, 2016 7:15 am

Using wilcards in Service Name is it possible???

Post by rambertnala »

Hi friends.
I would like to know if it is possible to use wildcards looking for a service name that has different name at hosts

Example:

check_nrpe -t 120 -H IP_ADDRESS_HOST -c check_service -a -a "filter=name = 'ServiceName*'"

Regards
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Using wilcards in Service Name is it possible???

Post by dwhitfield »

Can you send your nrpe.cfg and your common.cfg? What is the output of ll /usr/local/nagios/libexec/check_services?

The syntax you have is not working for me, but I want to make sure I am testing what you are testing. Also, does your check work without the wildcard?
rambertnala
Posts: 60
Joined: Fri Feb 26, 2016 7:15 am

Re: Using wilcards in Service Name is it possible???

Post by rambertnala »

Hi friend...

I wanna check Windows XP hosts

What do you need????

Regards
rambertnala
Posts: 60
Joined: Fri Feb 26, 2016 7:15 am

Re: Using wilcards in Service Name is it possible???

Post by rambertnala »

Hi..

I have changed comand to

check_nrpe -t 120 -H IP_ADDRESS_HOST -c check_service -a "filter=name like 'ServiceName'"

and looks OK I will try more...

Regards
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Using wilcards in Service Name is it possible???

Post by dwhitfield »

Are you using NSClient? If so, can you send your nsclient.ini? If not, what version of win_nrpe are you using?
Locked