Page 1 of 1

can nrpe be used to call windows plugins

Posted: Thu Apr 30, 2020 3:28 pm
by gmills
Hi, sorry for a stupid question.

can NRPE be used to call Windows services?

I am looking to monitor web services , pages, status on Windows machines. I was looking at the out of box check_http which is what I need in functionality. I currently only use the NCPA agent to call Windows and Nagios Plugins on Windows box from NCPA API.

I see a few plugins for windows, however, I can't install PHP or Perl on the boxes.

what can I do?

thank you

Re: can nrpe be used to call windows plugins

Posted: Fri May 01, 2020 12:43 pm
by benjaminsmith
Hi @gmills,

Thank you for visiting the Nagios Community Forum. Typically for monitoring web services and pages, you can communicate over HTTP and it's not necessary to install a plugin on the host machine. As mentioned, you can call check_http from the Nagios server.

That said, there are quite a few options built into the NCPA API, that you might be able to use without having to install any other plugins.

Take a look at the API documentation on this page.
https://www.nagios.org/ncpa/help.php#ap ... s-services

If you need to install a plugin locally in the NCPA plugin directory to run checks, the best option is to use a python plugin. You can browse the Nagios Exchange for a suitable option.
https://exchange.nagios.org/directory/Plugins

Good Luck! Let us know if that helps.

Re: can nrpe be used to call windows plugins

Posted: Fri May 01, 2020 4:38 pm
by gmills
thank you.

sorry, another question.

does this mean that the services feature of NCPA API has been removed.
So, the API no longer supports services, or am I mis-reading this?

Warning! In NCPA 2 the API endpoint for checking services was deprecated and will be removed in NCPA 2.1 and above. Example deprecated version: service/<servicename>/<status>

Re: can nrpe be used to call windows plugins

Posted: Fri May 01, 2020 4:49 pm
by ssax
Ignore the warning.

The API endpoint used to be called service, it has been renamed to services.

Re: can nrpe be used to call windows plugins

Posted: Fri May 01, 2020 5:13 pm
by gmills
thank you Saax. I'm going to attempt a few different things based on what I know now.

if I can keep this open until ... that would be fantastic, I really appreciate your help.

have a great weekend.

Re: can nrpe be used to call windows plugins

Posted: Mon May 04, 2020 9:05 am
by gmills
hello,

I am trying to use the API services extension.

are there any examples of setting this up to run with ncpa? I can't get it to execute ? how to divide the command up for services.

/usr/local/nagios/libexec/check_ncpa.py -v -H 10.152.10.555 -t 'gold3726' -P 5693 -M 'services' -q "args=service=httpd&status=running"

Connecting to: https://10.152.10.231:5693/api/services ... %3Drunning
An error occurred:<urlopen error [Errno 104] Connection reset by peer>

also, if I am on the server I want to monitor, execute the API call, and it returns an empty set for services, e.g.
{
"services": {
}
}

does this mean it will not or cannot work or call services? or does this get populated when successfully calling the API service?

thank you!