using Nagios to detect rogue DHCP servers?

Marc DeTrano marc at gridshield.net
Wed Jul 11 16:30:52 CEST 2007


The way I have done this is to run NRPE on the machine that should be
the DHCP server, with this command defined:

command[check_ndhcp]=/usr/lib/nagios/plugins/negate
/usr/lib/nagios/plugins/check_dhcp -i eth0

Something similar may work for you if your DHCP server is on a Linux
box.  This just negates the normal check_dhcp command, so that if no
offer is received (on the interface serving DHCP, it should not be), it
returns with an OK status.  If it does get an offer, a Critical is
returned and I know it is time to "seek-and-destroy".

Marc

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list