can nrpe be used to call windows plugins

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
gmills
Posts: 114
Joined: Wed Jun 12, 2019 2:08 pm

can nrpe be used to call windows plugins

Post 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
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: can nrpe be used to call windows plugins

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
gmills
Posts: 114
Joined: Wed Jun 12, 2019 2:08 pm

Re: can nrpe be used to call windows plugins

Post 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>
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: can nrpe be used to call windows plugins

Post by ssax »

Ignore the warning.

The API endpoint used to be called service, it has been renamed to services.
gmills
Posts: 114
Joined: Wed Jun 12, 2019 2:08 pm

Re: can nrpe be used to call windows plugins

Post 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.
gmills
Posts: 114
Joined: Wed Jun 12, 2019 2:08 pm

Re: can nrpe be used to call windows plugins

Post 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!
Locked