You can certainly do that, but you'll probably have to write your own plugin to do it. It's not something that would work generically; you will need to somehow tap into the specific DHCP server you are using. So the plugin will have to be tailored for the Windows DHCP server, or one of the ones for the Linux.
There are quite a few ways to do this: If your DHCP server also updates a DNS server, it may be easier to instead enumerate all IP addresses in DNS (use host -l <domainname>), and compare that with a previous version of the same file. That is of course not completely reliable. Or if you are using the Linux ISC DHCP server, your plugin could go through /var/lib/dhcp/db/dhcpd.leases and alert you to any leases newer than, say, 5 minutes. Keep in mind that this will alert you of renewals as well. Tobias Exner wrote: > Hi list, > > I would like to know when my dhcp-server leases a new ip-adress. > > The check_dhcp plugin seems to be not the right tool for that. > Is there a easy way to do that with nagios? > > > Thanks in advance... > > > Tobias > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Nagios-users mailing list [email protected] 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
