Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: collect /var/log/messgages and dmesg

by FreeBeerReekingMonk (Deacon)
on Jul 19, 2015 at 14:47 UTC ( [id://1135362]=note: print w/replies, xml ) Need Help??


in reply to collect /var/log/messgages and dmesg

Not sure if you mean that it has to COPY the logfile (and hold it as evidence, if we find errors), or just be able to log rotate, so you can look to logs of days past.
Just know you can send the log to another computer with Rsyslog or Syslog-ng for a centralized logging (and centralized monitoring with additional tools).
As for the monitoring, do you mean realtime, or just check each 5 minutes or so for errors. If the latter, there is this nice perlscript you can use standalone it is called check_log3.pl (details)
You can get the required utils.pm from the nagios-plugins tarball.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1135362]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-03-29 07:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found