still having difficulty with TIMEPERIODS

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
mrtexasfreedom
Posts: 19
Joined: Tue Apr 12, 2011 6:31 pm

still having difficulty with TIMEPERIODS

Post by mrtexasfreedom »

I've been trying all combinations, and can't get our timeperiods straight. Even when distilled to the most simplified test scenario, no notifications get sent. Would someone be willing to look at the definitions below and tell me why when I shut off the service (stop Apache), and a 3-rd strike check is recorded in the webgui, no email is sent out? I've checked the notification history for the service, and it never says it even attempted to send one.

thanks in advance,

mtf

Code: Select all

define service{
        use             generic-service         ; Inherit default values from a template
        host_name       server_one
        service_description     Support Ticketing System
        check_command   check_http!-S -p  80 -u /index.php -N
        notification_period     test_hours
        contact_groups  test_group
        check_interval 1
        notification_options    c,r,f
        }


define timeperiod{
        name            test_hours
        timeperiod_name test_hours
        alias           test_hours
        use workhours,first_weekend,second_weekend,third_weekend,fourth_weekend,fifth_weekend,dav_monday,dav_tuesday,dav_wednesday,dav_thursday,24x7
        }



define contactgroup{
        contactgroup_name      test_group
        alias                  test_group
        members                 carl
        }

define contact{
        contact_name                    carl            ; Short name of user
        use                             generic-contact         ; Inherit default values from generic-contact template (defined above)
        alias                           Carl Weathers           ; Full name of user
        email                           carl@workdomain.com    
       # service_notification_options    u,c,r,f,as
        service_notification_options    w,c,r,f
         host_notification_period        24x7
        service_notification_period     24x7

        }


Locked