AW: [Nagiosplug-help] Nagios and syslog

Subhendu Ghosh sghosh at sghosh.org
Thu Mar 18 19:19:41 CET 2004


check_log is a shell script that uses commandline grep so multiple 
keywords can be specified with the standard alternation character |

"log|fail"

there is also a check_log2.pl in the contrib that uses perl regex.

-sg

On Thu, 18 Mar 2004, Blake wrote:

> 
> you could update the script to search for an extended
> grep expression which looks for multiple keywords ..
> if I have time today I will look into it.
> 
> --- Sand Philipp <Philipp.Sand at sycor.de> wrote:
> > Ah thanks! Must have overseen this one. Problem with
> > this plugin is, that you can only check for one
> > keyword, right? Or is there a possibility to check
> > for more than one?
> > An option may be just to create one "oldfile" for
> > each querrystring. But if there is a more elegant
> > solution let me know :) 
> > 
> > > -----Ursprüngliche Nachricht-----
> > > Von: Blake [mailto:blakes_email at yahoo.com] 
> > > Gesendet: Donnerstag, 18. März 2004 13:40
> > > An: Sand Philipp;
> > nagiosplug-help at lists.sourceforge.net
> > > Betreff: Re: [Nagiosplug-help] Nagios and syslog
> > > 
> > > 
> > > you can use the check_log script located in your
> > libexec 
> > > directory.  the first time you run the script it
> > creates a 
> > > copy (-O oldfile) of the log file (-F
> > > logfile) you would like to scan ... the results of
> > your scan 
> > > will be zero ... however the next time you run
> > check_log on 
> > > the log file then it will execute a diff on the
> > real log file 
> > > vs the copy it made and reports matches on the
> > patter you 
> > > request (-q query). 
> > > there is more information if you edit the script. 
> > I also 
> > > think you could use something like swatch but I
> > have never 
> > > used it nagios.
> > > 
> > > --- Sand Philipp <Philipp.Sand at sycor.de> wrote:
> > > > Hi,
> > > > 
> > > > Is there a possibility to monitor
> > /var/log/messages for 
> > > keywords e.g. 
> > > > "zone transfer failed" with nagios?
> > > > Same thing for windows, is there a chance to
> > monitor the 
> > > syslog with 
> > > > nagios?
> > > > 
> > > > Thanks in advance
> > > > Philipp
> > > > 
> > > > _____________________________
> > > > 
> > > > Philipp Sand
> > > > OC-CC-TEC-SYS
> > > > 
> > > > SYCOR GmbH
> > > > Heinrich-von-Stephan-Straße 1-5
> > > > D - 37073 Göttingen
> > > > 
> > > > Telefon	+49 (0) 551 / 490 - 0
> > > > Telefax	+49 (0) 551 / 490 - 2000
> > > > 
> > > > philipp.sand at sycor.de
> > > > www.sycor.de
> > > > ------------------------------------------------
> > > > 
> > > > 
> > > 
> > > 
> > > __________________________________
> > > Do you Yahoo!?
> > > Yahoo! Mail - More reliable, more storage, less
> > spam 
> > > http://mail.yahoo.com
> > > 
> > > 
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail - More reliable, more storage, less spam
> http://mail.yahoo.com
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: IBM Linux Tutorials
> Free Linux tutorial presented by Daniel Robbins, President and CEO of
> GenToo technologies. Learn everything from fundamentals to system
> administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
> _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> ::: Please include plugins version (-v) and OS when reporting any issue. 
> ::: Messages without supporting info will risk being sent to /dev/null
> 

-- 






More information about the Help mailing list