I need to parse dhcpd.leases to store data in mysql

Sébastien CRAMATTE s.cramatte at wanadoo.fr
Fri Jun 30 13:27:08 UTC 2006

Simon Hobson a écrit :
> Brent L. Bates wrote:
>>      Could the syslog output be of any help for the person trying to log
>> everything to his MySQL data base?  He could have all this output sent to its
>> own log file.  I know the default output doesn't have all the information he
>> needs.  However, are there any `ifdefs' that might turn this information on
>> and log it?  If not, how difficult would it be to modify the source to do so?
>>  Just some ideas.
> A good point. Another option would be to use the "on <action> ..." 
> external links, eg "on commit <call code to add record to database>". 
> Though care needs to be taken when using these not to introduce too 
> much latency into the server.
> Simon
I use oncommit  , onrelease, onexpiry events with an exec+ldap patch to 
but this patch crash "onrelease" event.

I supose that It would possible to write a patch to tell  DHCPD write 
directly into MYSQL ...
Unfortunately this is out of my skills ... But I think that could be a 
good option

More information about the dhcp-users mailing list