Page 1 of 1

Using wilcards in Service Name is it possible???

Posted: Wed Jan 10, 2018 6:35 am
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

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

Posted: Wed Jan 10, 2018 4:18 pm
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?

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

Posted: Wed Jan 10, 2018 6:47 pm
by rambertnala
Hi friend...

I wanna check Windows XP hosts

What do you need????

Regards

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

Posted: Thu Jan 11, 2018 6:38 am
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

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

Posted: Thu Jan 11, 2018 10:42 am
by dwhitfield
Are you using NSClient? If so, can you send your nsclient.ini? If not, what version of win_nrpe are you using?