R: R: Notify on sigle events

Stephan Janosch Stephan.Janosch at interface-business.de
Wed Jan 19 15:59:49 CET 2005


Marco Borsani wrote:
> -}Marco Borsani wrote:
> -}> -}Perhaps you can write a wrapper or a plugin which can handle this
> -}> -}particular situation.
> -}> -}
> -}> -}Stephan
> -}> -}
> -}>
> -}> I wrote the plugin to check the log file, but I have not idea
> -}how to handle
> -}> the notifications because there are not CRITICAL and (after) OK
> -}status (like
> -}> usual).
> -}>
> -}> Marco
> -}>
> -}
> -}Perhaps I missunderstood your problem. But If you need to monitor
> -}something, than you also need to know, when there is a problem. If you
> -}can't see at least two different states, I have no idea to monitor
> -}something.
> -}
> 
> Well, my customer want to receive notifications every time some particular
> strings are written inside that log file.
> Probably Nagios can not do this ....
> 
> Marco
> 

Ah...that's the point. That works with the help of check_log2.pl. I made 
  a servicecheck with that. Because of the nature of check_log2.pl my 
service looks like this:

define service {
name                           some_template
host_name                      some_host
active_checks_enabled          1
passive_checks_enabled         1
parallelize_check              0
obsess_over_service            1
check_freshness                0
notifications_enabled          1
event_handler_enabled          1
flap_detection_enabled         1
process_perf_data              0
retain_status_information      1
retain_nonstatus_information   0
check_period                   some_period
notification_interval          0
notification_period            24x7
notification_options           w,u,c,r
contact_groups                 some_contact
is_volatile                    1
max_check_attempts             1
normal_check_interval          180
retry_check_interval           1
register                       0
}



define service {
use                            some_template
service_description            some_service_name
check_command 
check_by_ssh!some_user!'/some/path/check_log2.pl -l /path/to/logfile.log 
-s /some/path/seek_file_for_check_log2.pl -p some_string_to_look_for'
}

The command is somehow complex, it's a combination of check_by_ssh and 
check_log2.pl.

Regards Stephan



-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
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