Monitoring unix (SUN) logfiles...

Olivier JAN ojan at expertise-online.net
Mon Oct 8 17:18:24 CEST 2007


Hi,

You should give a try to SEC (Simple Event Correlator) for monitoring log
files on unix. It's not an active plugin but you can use this great parser
in a passive fashion with Nagios. I think it's make more sense to passively
check log files. First, you are alerted in real time, not on the polling
intervall you set. Second, You don't poll for nothing. And third, you can
do some event correlation with this perl program


Olivier Jan

"Marc Powell" <marc at ena.com> Ecrivait:
> 
> 
>> -----Original Message-----
>> From: nagios-users-bounces at lists.sourceforge.net [mailto:nagios-users-
>> bounces at lists.sourceforge.net] On Behalf Of Fabio Iovine
>> Sent: Monday, October 08, 2007 9:09 AM
>> To: nagios-users at lists.sourceforge.net
>> Subject: [Nagios-users] Monitoring unix (SUN) logfiles...
>> 
>> hi folks,
>> I read on the website among the features Nagios can monitor log files
> but
>> I was unable to find more precise informations on how it does the
>> monitoring.
> 
> Two scripts are distributed with the plugins -- check_log.sh and
> contrib/check_log2.pl. Both can search for the presence, or absence in
> the case of log2.pl, of strings within specified log files. Run them
> with -h for usage information.
>  
>> can someone please tell me where I can find these informations?
> 
> Google's always a good source if the usual suspects aren't helpful.
>  
>> more, I'd like to understand whether Nagios can monitor file
> existence?
>> can someone help on this?
> 
> If you can determine status from the command line then nagios can do it.
> Your question really is, has someone created a plugin to do so. I don't
> see any obvious hits on http://nagiosexchange.org but you should search
> yourself. A quick search of google for 'nagios check file exists' shows
> some talk about such a test but no actual plugin, but you should search
> for yourself. Alternately, this should be a very simple and
> straightforward plugin to write and would be a great exercise in
> understanding nagios plugins. A very very basic, one-line plugin might
> look something like --
> 
> #!/bin/sh
> 
> if [ -f /path/to/file ]; then echo "OK: File exists and is a regular
> file"; exit 0; else echo "CRITICAL: File not found or is irregular
> (galactic collision occurred)"; exit 2; fi
> 
> http://nagiosplug.sourceforge.net/developer-guidelines.html#AEN78 has
> more information on writing plugins. For the simplest of plugins you
> really only need to exit with one line of text and the proper return
> code.
> 
> --
> Marc
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> 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
> 
> 




-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
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