integrating swatch with nagios
tomvo at absi.be
tomvo at absi.be
Tue Apr 4 20:00:54 CEST 2006
Hi,
I'm trying to integrate swatch in nagios (via passive checks, I want
swatch as a reaction to a 'hit' run the submit_check_result into a passive
check).
But I'm having a lot of problems with the commandline parameters. for
example, swatch offers the $_ parameter containing the entire line from
e.g. a solaris message file. But these files then to contain characters
that are interpreted by the shell such as [ and ' and whatever.
Basicly, I want to search a logfile for a regular expression, and if
there's a match, I want the entire line to be sent to nagios (preferrably
via a passive check).
I do not want to use the nagios plugin checklog because it's too kludgy
for my taste.
How do you integrate logfile parsing in to nagios ? I've installed SEC
also (http://simple-evcorr.sourceforge.net) but it appears to be far too
complex for my needs.
Thanks for your input on this matter.
regards,
Tom.
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
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