check_log plugin

guillaume LOHEZ guillaume.lohez at linagora.com
Mon May 30 10:16:50 CEST 2005


Hi

Oldfile is for check_log doing the "diff" between 2 files....

On the first launch, it will copy the real file, then on next start, it
will diff between new log file and old log file to see if there is the
string you are looking for.
At the end, it will copy new log file to old.

The same procedure on next exec !!

This is to prevent alarms to be raised every check on the same string on
the same line.

Regards
Guillaume


Davy Gaussen a écrit :

> Hi,
>  
> How the check_log plugin works exactly ?
>  note : check_log -F logfile -O oldlog -q query
>  
> I don't have an "oldfile", I would like to check if a string is
> present in a logfile. Or follow the writings in this logfile.
>  
> Thanks.



-- 
Guillaume LOHEZ
Administrateur Systemes & Reseaux
Portable: +33 (0)6 72 23 20 16
E-mail: guillaume.lohez at linagora.com
------------------------------------
LINAGORA
30 Rue Saint Augustin, PARIS 2eme
Telephone: +33 (0)1 58 18 68 28




-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
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