Page 1 of 1

check_dhcp is not working while monitoring DHCP server

Posted: Sat Jun 01, 2019 3:56 pm
by vinish098
Hello team,

We are monitoring windows dhcp server in Nagios server.

First can you please confirm me below information.
a. what exactly dhcp server is monitoring in Nagios XI?
b. what parameters we can see in Nagios server while monitoring dhcp server?

Please help me for monitoring dhcp server in Nagios. If any document and plugin is available please send me.

Thanking you.

Re: check_dhcp is not working while monitoring DHCP server

Posted: Mon Jun 03, 2019 2:17 pm
by npolovenko
Hello, @vinish098.

This plugin tests the availability of a given DHCP server using unicast delivery.

If it's not working for you:

Code: Select all

This plugin will need to run with root permissions in order to access priviledged ports 67 & 68. Since Nagios by default runs its plugins under unpriviledged user 'nagios', you will need to setuid root like: 

 chown root:root check_dhcp.pl 
  chmod 4755 check_dhcp.pl 
Also, please install this module:

Code: Select all

yum install perl-IO-Interface
Please check out the list of other DHCP plugins we have on the exchange:
https://exchange.nagios.org/index.php?o ... hword=dhcp