Page 4 of 5

Re: Monitoring IIS and httpd connections

Posted: Wed Nov 09, 2016 4:58 pm
by tgriep
Below is a link for installing the NRPE Agent on to a Linux System.
https://support.nagios.com/kb/article.php?id=515
When compiling and installing the Agent, it will also install the check_nrpe plugin on your server.
Take a look at it and if you have any questions, post them here.

Re: Monitoring IIS and httpd connections

Posted: Wed Nov 09, 2016 5:21 pm
by avandemore
That document is for XI and Nagios Core doesn't include it by default. Here are the instructions for installation:

NRPE DOCUMENTATION

Re: Monitoring IIS and httpd connections

Posted: Thu Nov 10, 2016 11:17 am
by rbizzell39
This link doesn't exist but I copied this https://github.com/NagiosEnterprises/nr ... 3.0.tar.gz. But I get an error when I do ./configure and make all
checking for type of socket size... size_t
checking for Kerberos include files... configure: WARNING: could not find include files
checking for pkg-config... pkg-config
checking for SSL headers... configure: error: Cannot find ssl headers
[root@splab-nagios nrpe-3.0]# make all
make: *** No rule to make target `all'. Stop.

Re: Monitoring IIS and httpd connections

Posted: Thu Nov 10, 2016 11:46 am
by rbizzell39
I figured that part out I needed the openssl package

Re: Monitoring IIS and httpd connections

Posted: Thu Nov 10, 2016 11:49 am
by rbizzell39
I am getting another error missing the make file

*** Generating DH Parameters for SSL/TLS ***
Generating DH parameters, 2048 bit long safe prime, generator 2
This is going to take a long time
............................................................................................................................................................................................................................................................+......+.....+............................................................................................................................................................................................................................................................................................................+........................+.......................................................................................................................................................................................+................................................................................................................................................................+.......................................+....................................................................................................................................................................................................................................................................+....................................................................................+....+........................................+............................................+...............................................................................................................+...+........................................................................+............................................................................................................................................................................................++*++*
checking for perl... /usr/bin/perl
configure: creating ./config.status
config.status: error: cannot find input file: `Makefile.in'
[root@splab-nagios nrpe-3.0.1]# ^C
[root@splab-nagios nrpe-3.0.1]# make
make: *** No targets specified and no makefile found. Stop.

Re: Monitoring IIS and httpd connections

Posted: Thu Nov 10, 2016 12:15 pm
by rbizzell39
I fix the last issue with installing and compiling nrpe

Re: Monitoring IIS and httpd connections

Posted: Thu Nov 10, 2016 1:59 pm
by rbizzell39
I have nrpe installed and working on the nagios box what do I need to do on the windows machine to get it to talk to nagios box. I tried to run this command /usr/local/nagios/libexec/check_nrpe -H with the ip of one of my IIS 8.5 servers and I received Could not complete SSL handshake

Re: Monitoring IIS and httpd connections

Posted: Thu Nov 10, 2016 2:44 pm
by rbizzell39
I can't get nrpe to start I made sure that I have my ip correct for my nagios box the allowed_host is the ip of my nagios box

Re: Monitoring IIS and httpd connections

Posted: Thu Nov 10, 2016 3:06 pm
by rbizzell39
Nov 10 15:06:18 splab-nagios systemd[1]: Started Nagios Remote Program Executor.
Nov 10 15:06:18 splab-nagios systemd[1]: Starting Nagios Remote Program Executor...
Nov 10 15:06:18 splab-nagios systemd[1]: nrpe.service: main process exited, code=exited, status=2/INVALIDARGUMENT
Nov 10 15:06:18 splab-nagios systemd[1]: Unit nrpe.service entered failed state.
Nov 10 15:06:18 splab-nagios systemd[1]: nrpe.service failed.
Nov 10 15:06:23 splab-nagios systemd[1]: Stopped Nagios Remote Program Executor.
[root@splab-nagios xinetd.d]#

Re: Monitoring IIS and httpd connections

Posted: Thu Nov 10, 2016 4:03 pm
by avandemore
What is your OS and version?

Please attach your /usr/local/nagios/etc/nrpe.cfg.