Check for a pattern is NOT found issue alarm
Posted: Tue Mar 18, 2014 4:32 am
Hello All,
I have tried to Google for some hours now but without luck...
I'm trying to find a NAGIOS check that do more or less the opposite then the check_logs check.
I want a check that checks a log file and if he don't find a predefined pattern he issues an alarm...
For example i would like to to check on a file for the patter "[SOME-END], [SOME-BEGIN]" and if this pattern is not find a alarm is issue...
Thanks in advance.
I have tried to Google for some hours now but without luck...
I'm trying to find a NAGIOS check that do more or less the opposite then the check_logs check.
I want a check that checks a log file and if he don't find a predefined pattern he issues an alarm...
For example i would like to to check on a file for the patter "[SOME-END], [SOME-BEGIN]" and if this pattern is not find a alarm is issue...
Thanks in advance.