FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

LinkBack Thread Tools
Old 02-03-2011, 03:01 AM
Cameron Kerr
Default Best way to get dhcpd messages piped to a web service.

On 03/02/11 12:45, Jason Pyeron wrote:


> Does anyone see a more proper way?

That depends. What are you really wanting to achieve? Might your problem
be better solved by looking at the dhcp leases file instead, or are you
really just interested in the logs?

search.cpan.org reveals Net::ISC:HCPd and Text:HCPLeases as possible
candidates for inclusion.

> tail -F / -f could both miss messages during log rotation (please correct me if
> I am wrong)

You could also include something like 'tail --follow=name'.

If you are worried about log rotation, it would probably be better to
hook into logrotate's pre/postrotate mechanism.

> What are some of the problems that could be manifested in syslog if the fifo
> consumer stops consuming or has other issues?

You would need to do something intelligent if syslogd were to restart
(eg. because of an update). You would also need to make sure that your
script started after syslogd.

CentOS mailing list

Thread Tools

All times are GMT. The time now is 06:38 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org