R: R: Notify on sigle events

Andreas Ericsson ae at op5.se
Wed Jan 19 20:34:31 CET 2005


Jason Martin wrote:
> On Wed, Jan 19, 2005 at 09:09:48AM -0600, jeff vier wrote:
> 
>>>Well, my customer want to receive notifications every time
>>>some particular 
>>>strings are written inside that log file. 
>>>Probably Nagios can not do this ....
>>
>>Have you had a look at check_log?
>>It does exactly what you are (apparently) asking.
> 
> If you are looking for an alert *every time* a string appears,
> then using an active check won't work. Nagios will alert once
> *per polling interval* that a string appeared, but if the string
> appeared 3 times in an interval then you'll only get one alert.
> 
> To get individual alerts you'll need to use a passive check and
> set the service to volitile.
> 

No. The check_log2.pl file can lseek into the file and only scan the new 
part. It will reset to okay immediately on the second attempt though, so 
one will need max_check_attempts 1.

> -Jason Martin

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer


-------------------------------------------------------
This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting
Tool for open source databases. Create drag-&-drop reports. Save time
by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc.
Download a FREE copy at http://www.intelliview.com/go/osdn_nl
_______________________________________________
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