DHCP Scope Script and adding additional scripts to NSCLient+

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
tbmay
Posts: 67
Joined: Wed Jan 22, 2014 6:23 pm

DHCP Scope Script and adding additional scripts to NSCLient+

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: DHCP Scope Script and adding additional scripts to NSCLi

Post 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
tbmay
Posts: 67
Joined: Wed Jan 22, 2014 6:23 pm

Re: DHCP Scope Script and adding additional scripts to NSCLi

Post by tbmay »

Thanks a million.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: DHCP Scope Script and adding additional scripts to NSCLi

Post by tmcdonald »

So it's working now? If so we will be closing the thread.
Former Nagios employee
tbmay
Posts: 67
Joined: Wed Jan 22, 2014 6:23 pm

Re: DHCP Scope Script and adding additional scripts to NSCLi

Post by tbmay »

Yes it is. Sorry. Appreciate the help.
Locked