Page 1 of 1

DHCP Scope Script and adding additional scripts to NSCLient+

Posted: Fri Apr 25, 2014 8:51 am
by tbmay
Host: CentOS 6.5 running on the metal.
Running the most current version of Nagios XI.
Your installation of Nagios XI (2012R2.9) is up-to-date, so no upgrade is required.


Hello,

I'm a bit confused about some things with regards to adding the script on the link below:

http://exchange.nagios.org/directory/Pl ... pe/details

To a Windows DHCP server running NSClient++ to warn us if we're running out of IP's on a few scopes.

First of all, I've got the host being monitored with other basic services, but I get this result when I run check_nrpe

[root@nagios libexec]# ./check_nrpe -H 172.16.55.101 -c check_dhcp_scope
Connection refused by host

However, I am getting successful results from the server on the basic services. We aren't using a password. Why would this not be refusing my request?

What is the proper way to add this check to NSClient++ and the Nagios server?

Thanks a million for your help.

Re: DHCP Scope Script and adding additional scripts to NSCLi

Posted: Fri Apr 25, 2014 9:11 am
by slansing
The basic checks set up via the wizard in XI are all using check_nt. Do you have actual checks running to the system with check_nrpe? You may need to enable nrpe on the windows system in the nsc/nsclient.ini file by following these steps:

http://assets.nagios.com/downloads/nagi ... Client.pdf

Noted here as well:

http://nsclient.org/nscp/wiki/doc/usage/nagios/nrpe

Re: DHCP Scope Script and adding additional scripts to NSCLi

Posted: Fri Apr 25, 2014 10:19 am
by tbmay
Thanks a million.

Re: DHCP Scope Script and adding additional scripts to NSCLi

Posted: Fri Apr 25, 2014 10:21 am
by tmcdonald
So it's working now? If so we will be closing the thread.

Re: DHCP Scope Script and adding additional scripts to NSCLi

Posted: Fri Apr 25, 2014 10:55 am
by tbmay
Yes it is. Sorry. Appreciate the help.