check_log & notification escalations

Heslin, Peter peter.heslin at us.mizuho-sc.com
Wed Oct 8 15:36:16 CEST 2003


Hello,

I am having trouble working out a solution to have the "check_log" plugin
send multiple notifications.  I am monitoring a log file and looking for a
particular line, and when it occurs, send notifications to one of my contact
groups.  

I would like to have it send out 5 notifications before it gives up.  This
is a problem, however, because the "check_log" plugin clears itself after
every hit.  

I have tried to employ the "volatile_service" option, but this will send out
notifications EVERY time it gets a hit, whether or not I use the
"escalations.cfg" limit.  

I have provided the example below, any help would be much appreciated.
Thanks.

Pete

"services.cfg"

# Service definition
define service{
        use                             generic-service       
        hostgroup                       linux
        service_description             CHECK_LOG
        is_volatile                     0(have tried 1 and 0)
        check_period                    24x7
        max_check_attempts              1
        normal_check_interval           2
        retry_check_interval            1
        flap_detection_enabled          0
        contact_groups                  linux-admins(have tried other here)
        notification_interval           2
        notification_period             24x7
        notification_options            c,r
        check_command                   check_nrpe!check_log
        }

"escalations.cfg"

define serviceescalation{
        host_name              ihplfs01
        service_description    CHECK_LOG
        contact_groups         linux-admins
 	  first_notification     2
 	  last_notification      3
 	  notification_interval  1
        }
CONFIDENTIAL: This email, including its content and attachments, if any, are
confidential. It is neither an offer to buy or sell, nor a solicitation of
an offer to buy or sell, any securities or any related financial instruments
mentioned in it. If you are not the named recipient please notify the sender
and immediately delete it. You may not disseminate, distribute, or forward
this email message or disclose its contents to anyone else. Unless otherwise
indicated, copyright and any other intellectual property rights in its
contents are the sole property of Mizuho Securities USA Inc. Email
transmission  cannot be guaranteed to be secure or error-free. The sender
does not accept liability for any errors or omissions of this message due to
email transmission. If verification is required please request a hardcopy
version. Although we routinely screen for viruses, addressees should check
this email and any attachments for viruses. We make no representation or
warranty as to the absence of viruses in this email or any attachments.
Please note that to ensure regulatory compliance and for the protection of
our customers and business, we may monitor and read emails sent to and from
our server(s). 


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
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