dhcp new lease notification
Hari Sekhon
hpsekhon at googlemail.com
Mon Aug 24 13:59:01 CEST 2009
Hari Sekhon wrote:
> Tobias Exner wrote:
>> 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
> Nagios isn't the best/right/ideal tool for this really, you would want
> log based alerting which is entirely different and more real time as
> well.
>
> You can try this dhcp leases plugin that I wrote which will display
> all current leases and macs in the nagios interface if you want:
>
> http://www.monitoringexchange.org/cgi-bin/page.cgi?g=Detailed%2F1450.html;d=1
>
>
> You could make Nagios do what you asked via a nagios check of the
> logfile for a string indicating a lease grant or something similar but
> I don't consider this to be a very good solution.
Technically you could kind of use my plugin mentioned about to do what
you want by simply specifying a whitelist host (doesn't have to exist)
so that Nagios raises critical on any host that gets a lease. You
wouldn't be notified of new leases being handed out for the remainder of
the notification interval though. I consider this a bit of a hack to be
honest.
Back to my first recommendation, real time log based alerting, that's
what I do for stuff like this and it is _good_.
-h
--
Hari Sekhon
http://www.linkedin.com/in/harisekhon
------------------------------------------------------------------------------
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
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