Notifications not being triggered


I have both host and service notifications turned on, but for some reason they are not being triggered.

All of my hosts and services show (in the nagios webpage) that Notifications are enabled, yet whenever a host or a service enters a hard state, no notification is triggered. The “Last Notification” line in the ‘state information’ are is ‘N/A (notification 0)’ and no notifications are listed in the notifications screen (under Reporting). I can force a manual notification and it is logged in the notifications and an email sent. However the ‘last notification’ is still ‘N/A (notification 0)’ in the state info pane.

So I know notifications can be logged and processed, and I have them enabled…but for some reason they are not being triggered.

here’s some code if it helps:

define host{
        name                            critical-host
        check_period                    24x7
        check_interval                  0
        retry_interval                  1
        max_check_attempts              5
        check_command                   check-host-alive
        notification_interval           120
        notifications_enabled           1
        event_handler_enabled           1
        flap_detection_enabled          1
        failure_prediction_enabled      1
        process_perf_data               1
        retain_status_information       1
        retain_nonstatus_information    1
        notification_period             24x7
        register                        0
        contact_groups                  system_admins

define contact{
        name                            system_admins
        contactgroups   system_admins
        host_notifications_enabled      1
        service_notifications_enabled   1
        host_notification_commands      notify-host-by-email
        service_notification_commands   notify-service-by-email
        can_submit_commands             1
        host_notification_period        24x7
        service_notification_period     24x7
        register                        0

define contact{
        contact_name             *****************
        use                             system_admins
        alias                            ****************
        email                           ****@*****

define host{
        use             critical-host
        host_name       3. Router
        alias           3. Internal Network
        hostgroups      Routers, Corperate
        parents         Uatu

My services are set up in a similar fashion. I just can’t see a logical reason for it not to be working



I’d say that the option “notification_options” is missing in your host definition (and maybe service def as well);
Could you try to add:
“notification_options d,u,r” to your host def
"notification_options u,c,r,w" to your service def

that may work better;
post again if not :slight_smile: