host notify to multiple contacts?

Weinberger Andreas A.Weinberger at ebv.com
Thu Dec 12 10:07:03 CET 2002


hello all,

my nagios system doesnt write notifications to all contacts
defined in a contacgroup.

below you will find my current config. 

service notifications (notify-by-email) are send to the both
contacts, host notifications (host-notify-by-email) not.

did i missed any configuration option for the host notification
to multiple contacts or emailaddresses?

(and yes, didnt find anything in the mailarchive/google ;))


TIA,

-- randy

::::
:: andreas 'randy' weinberger
::      networking group
:: ebv elektronik gmbh&co. kg


## logfile

..snipp..
[1039514025] SERVICE NOTIFICATION: network;ljubljana;SSH;OK;notify-by-email;SSH ok
[1039514026] SERVICE NOTIFICATION: itsos;ljubljana;SSH;OK;notify-by-email;SSH ok
..snipp..
[1039631192] HOST NOTIFICATION: network;ebv-ljubljana.ebv.com;DOWN;host-notify-by-email;PING CRITICAL
[1039632862] HOST NOTIFICATION: network;ebv-ljubljana.ebv.com;UP;host-notify-by-email;PING OK
..snipp..

## services.cfg

define service{
        name                            branchrouter-service
        active_checks_enabled           1
        passive_checks_enabled          1
        parallelize_check               1
        obsess_over_service             1
        check_freshness                 0
        notifications_enabled           1
        event_handler_enabled           1
        flap_detection_enabled          1
        process_perf_data               1
        retain_status_information       1
        retain_nonstatus_information    1
        register                        0
        notification_interval           120
        notification_period             workhours
        notification_options            w,u,c,r
        is_volatile                     0
        check_period                    workhours
        max_check_attempts              2
        normal_check_interval           5
        retry_check_interval            1
        contact_groups                  branchrouter-admins
        }


define service{
        use                             branchrouter-service
        host_name                       ljubljana
        service_description             SSH
        check_command                   check_ssh
        }


## contactgroups.cfg

define contactgroup{
        contactgroup_name       branchrouter-admins
        alias                   Branchrouter Administrators
        members                 itsos, network
        }

## contacts.cfg

define contact{
        contact_name                    itsos
        alias                           IT SOS Admins
        service_notification_period     workhours
        host_notification_period        workhours
        service_notification_options    w,u,c,r
        host_notification_options       d,u,r
        service_notification_commands   notify-by-email
        host_notification_commands      host-notify-by-email
        email                           email1 at domain
        }

define contact{
        contact_name                    network
        alias                           Cisco Admins
        service_notification_period     24x7
        host_notification_period        24x7
        service_notification_options    w,u,c,r
        host_notification_options       d,u,r
        service_notification_commands   notify-by-email
        host_notification_commands      host-notify-by-email
        email                           email2 at domain
        }



-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility 
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/




More information about the Users mailing list