using 'check_log ' to find and not find

Ryan Wilcox rwilcox at mobitrac.com
Thu Jul 20 19:11:47 CEST 2006


i have been looking around a bit, but haven't found anything. anyone
know if there is a version of check_log floating around that will allow
me to do a find and a not find?

for example:

grep "\[\s*ERROR\s*\]\s" | grep -v "test" foo.log


where i use check_log to find log entries with "[ERROR]" but ignore log
entries that have "[ERROR]" and "test" together in the same log entry.

i realize this is a hack... the real fix here is to change our
application logging. i don't have that luxury at this point
unfortunately.

thanks in advance for any thoughts/ideas.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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