Notifications

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
haile711
Posts: 197
Joined: Thu May 28, 2015 7:36 am

Notifications

Post by haile711 »

Hey guys,
I have set up contacts, and contactgroups, and notifications/alerts. Even though Nagios Server is sending notification as below, and as when i do test email, i'm also getting email. But im not getting notifications for Host down/critical. Am I doing something wrong. Please see the below setting for contacts, contactgroups. Thanks for your time! All these setting are in /nagios/etc/static directory.

Code: Select all

define contact {
        contact_name                            Shrinath
        alias                                   Shrinath Chathoth
        contactgroups                           cloud_support
        host_notifications_enabled              1
        service_notifications_enabled           1
        host_notification_period                24x7
        service_notification_period             24x7
        host_notification_options               d,u,r,f,
        service_notification_options            w,u,c,f,s,
        host_notification_commands              xi_host_notification_handler
        service_notification_commands           xi_service_notification_handler
        email                                   [email protected]
        }

Code: Select all

define contactgroup {
        contactgroup_name                       cloud_support
        alias                                   ifs_ecom_cloud_support
        members                         Amit,Hai,Shrinath,Mithun,Raghu,Roshan,Ratan,Shail
        }

Code: Select all

define host {
        host_name                       xxxxx
        alias                           Legacy
        address                         xxxxx
        hostgroups                      mcominternal5008
        check_command                   check-host-alive!!!!!!!!
        max_check_attempts              5
        check_interval                  5
        retry_interval                  1
        check_period                    24x7
        contact_groups                  cloud_support
        notification_period             24x7
        first_notification_delay        0
        notification_options            d,u,r,f,
        notifications_enabled           1
        register                        1
        icon_image                      redhat.png
        statusmap_image                 redhat.png
        }
You do not have the required permissions to view the files attached to this post.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Notifications

Post by tgriep »

If your contacts are just contact only accounts and do not have a user account, you need to use notify-host-by-email and notify-service-by-email notification handlers for your notification_commands.
See this document on page 3.
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Be sure to check out our Knowledgebase for helpful articles and solutions!
haile711
Posts: 197
Joined: Thu May 28, 2015 7:36 am

Re: Notifications

Post by haile711 »

Ah! I see. There are sooo many details that I don't understand. Thanks so much tgriep!!
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Notifications

Post by tgriep »

Did it work for you?
Be sure to check out our Knowledgebase for helpful articles and solutions!
haile711
Posts: 197
Joined: Thu May 28, 2015 7:36 am

Re: Notifications

Post by haile711 »

yes tgriep, I have changed the notification handler, and i'm getting notification now. Thanks!
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Notifications

Post by tmcdonald »

I'll be closing this thread now, but feel free to open another if you need anything in the future!
Former Nagios employee
Locked