Weird alert

Gregg Strickland gstrickland at live365.com
Wed Sep 8 06:15:10 CEST 2004


Could you post back how nonworkhours is defined in your cfg file?

-greggs

-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Collins,
Steve
Sent: Tuesday, September 07, 2004 7:09 PM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Weird alert

I have a contact group for a set of hosts.  The hostgroup members are all
set to notify 24x7, for example:

Host.cfg
~~~~~~~~
define host {
    use    generic-host
    host_name    intranet.industry.gov.au
    alias    ITR Intranet
    address    intranet.industry.gov.au
    parents    MIKEY
    check_command    check-host-alive
    max_check_attempts    3
    notification_interval    60
    notification_period    24x7
    notification_options    d,u,r
}

This host and several others are all members of a particular hostgroup, for
that hostgroup there are a couple of hostgroup escalations, thus:

HostGroupEscalation.cfg
~~~~~~~~~~~~~~~~~~~~~~~
define hostgroupescalation {
    hostgroup_name    Macquarie_internet_zone
    first_notification    2
    last_notification    0
    notification_interval    360
    contact_groups    webdevoncall
}
define hostgroupescalation {
    hostgroup_name    Macquarie_internet_zone
    first_notification    2
    last_notification    2
    notification_interval    60
    contact_groups    servicedesk,webpub
}

For the contactgroup webdevoncall, there is a single contact, thus:

Contacts.cfg
~~~~~~~~~~~~
define contact {
    use    generic-contact
    contact_name    webdev-oncall
    alias    Web Development Team Oncall Member
    pager    0421054024 at streetdata.com.au
    service_notification_period    nonworkhours
    host_notification_period    nonworkhours
    service_notification_options    w,u,c,r
    host_notification_options    d,u,r
    service_notification_commands    notify-by-epager
    host_notification_commands    host-notify-by-epager
}

There are several other elements around this info which send emails during
workhours when hosts have issues, however this morning when the host MIKEY
went down, I received an SMS message about it.  My (apparently flawed)
understanding is that the contact webdev-oncall should only receive
notifications in nonworkhours (from the contact definition) and only on the
second and subsequent notification (from the hostgroup escalation).

Well, I received the SMS on the second notification, but during workhours...

Where have I messed up?

Steve
--
Stephen Collins
Web Development Section
eBusiness Division
__________________________________________________
Department of Industry, Tourism and Resources Level 12, 20 Allara Street,
Canberra City ACT 2600 GPO Box 9839, Canberra ACT 2601

E steve.collins at industry.gov.au
P +61 2 62137193
C +61 410 680722
F +61 2 62136227


**********************************************************************
The information contained in this e-mail, and any attachments to it, is
intended for the use of the addressee and is confidential. If you are not
the intended recipient you must not use, disclose, read, forward, copy or
retain any of the information. If you have received this e-mail in error,
please delete it and notify the sender by return e-mail or telephone.
The Commonwealth does not warrant that any attachments are free from viruses
or any other defects. You assume all liability for any loss, damage or other
consequences which may arise from opening or using the attachments.
****************************************************************************
*******

NHSX?unZUKB+'au ?w*y ?lUK?v vw 




-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idP47&alloc_id808&op=click
_______________________________________________
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