Notification not sent

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
markmerchant
Posts: 65
Joined: Tue Oct 17, 2017 8:38 am

Notification not sent

Post by markmerchant »

I'm wondering why I didn't get a notification on these events. Did it need to occur
one more time? Shouldn't I see an "Up" event sometime afterwards? Thx.

Code: Select all

cvglpnagios01 alert logs
	Service Critical	2018-06-06 22:27:44	SERVICE ALERT: sage-silverplume;Website_sage-silverplume;CRITICAL;HARD;6;WARNING: https://www.silverplume.com/sponline/Login.aspx appears to be down. String 'Vertafore' not found. Evidence can be found in https://cvglpnagios01.td.afg/webchecks/sage-silver
	Service Critical	2018-06-06 22:26:36	SERVICE ALERT: sage-silverplume;Website_sage-silverplume;CRITICAL;SOFT;5;WARNING: https://www.silverplume.com/sponline/Login.aspx appears to be down. String 'Vertafore' not found. Evidence can be found in https://cvglpnagios01.td.afg/webchecks/sage-silver
	Service Critical	2018-06-06 22:25:46	SERVICE ALERT: sage-silverplume;Website_sage-silverplume;CRITICAL;SOFT;4;WARNING: https://www.silverplume.com/sponline/Login.aspx appears to be down. String 'Vertafore' not found. Evidence can be found in https://cvglpnagios01.td.afg/webchecks/sage-silver
	Service Critical	2018-06-06 22:24:36	SERVICE ALERT: sage-silverplume;Website_sage-silverplume;CRITICAL;SOFT;3;WARNING: https://www.silverplume.com/sponline/Login.aspx appears to be down. String 'Vertafore' not found. Evidence can be found in https://cvglpnagios01.td.afg/webchecks/sage-silver
	Service Critical	2018-06-06 22:23:46	SERVICE ALERT: sage-silverplume;Website_sage-silverplume;CRITICAL;SOFT;2;WARNING: https://www.silverplume.com/sponline/Login.aspx appears to be down. String 'Vertafore' not found. Evidence can be found in https://cvglpnagios01.td.afg/webchecks/sage-silver
	Service Critical	2018-06-06 22:22:51	SERVICE ALERT: sage-silverplume;Website_sage-silverplume;CRITICAL;SOFT;1;WARNING: https://www.silverplume.com/sponline/Login.aspx appears to be down. String 'Vertafore' not found. Evidence can be found in https://cvglpnagios01.td.afg/webchecks/sage-silver

cvglpnagios01 notification logs
	<none>
	
plugin output
	HTTP request sent, awaiting response... 302 Found
	Location: /sponline/Error.aspx?aspxerrorpath=/SPOnline/Login.aspx [following]
	20 redirections exceeded
	
/usr/local/nagios/etc/services/website-sage-silverplume.cfg
    define service{
        servicegroups websites
        use website-service-template
        contacts servicenow-website-ccem-soap
        service_description Website_sage-silverplume
        register 1
        check_interval 6
        host_name sage-silverplume
        retry_interval 1
        _ga_url www.silverplume.com
        }

/usr/local/nagios/etc/servicegroups.cfg
    define servicegroup{
        servicegroup_name websites
        alias All Web Checks Combined
        }

/usr/local/nagios/etc/contactgroups.cfg
    define contactgroup{
        contactgroup_name websites
        members bwaters
        alias websites
        }

/usr/local/nagios/etc/contacts.cfg
    define contact{
        contact_name bwaters
        email [email protected]
        use standard-contact
        host_notification_options n
        service_notification_options n
        alias Bruce Waters
        }

/usr/local/nagios/etc/contacttemplates.cfg
    define contact{
        host_notification_commands no-command
        host_notification_period 24x7
        service_notification_period 24x7
        host_notification_options d,u,r,f,s,
        name standard-contact
        service_notification_commands no-command
        register 0
        service_notification_options w,u,c,r,f,s,
        }

/usr/local/nagios/etc/contacts.cfg
    define contact{
        contact_name servicenow-website-ccem-soap
        host_notification_commands no-command
        host_notification_period 24x7
        service_notification_period 24x7
        service_notification_commands send-svc-website-ccem-soap-sn
        alias SOAP to SN new option 3 Comm Ctr and EM
        }

/usr/local/nagios/etc/servicetemplates.cfg
    define service{
        servicegroups websites
        notifications_enabled 1
        use webcheck-service-template
        name website-service-template
        register 0
        check_command check_webcheck
        check_interval 1
        notification_interval 0
        retry_interval 1
        }

/usr/local/nagios/etc/servicetemplates.cfg
    define service{
        flap_detection_enabled 0
        check_freshness 0
        servicegroups websites
        event_handler_enabled 0
        notifications_enabled 1
        active_checks_enabled 1
        process_perf_data 1
        is_volatile 0
        check_period 24x7
        passive_checks_enabled 1
        notification_period 24x7
        max_check_attempts 6
        retain_status_information 1
        parallelize_check 1
        notification_options w,c,u,r,
        name webcheck-service-template
        retain_nonstatus_information 1
        register 0
        check_interval 1
        obsess_over_service 1
        notification_interval 0
        retry_interval 1
        }
User avatar
eloyd
Cool Title Here
Posts: 2190
Joined: Thu Sep 27, 2012 9:14 am
Location: Rochester, NY
Contact:

Re: Notification not sent

Post by eloyd »

Without knowing anything else about your setup, you should have received a notification on the "HARD;6" occurrence, if not others. However, this assumes that the service has a notification period that includes the time that the result came in, that the contact has notifications allowed, and that the contact has notification period that matches as well. Plus, your notification command itself has to work and I don't know what that is.
Image
Eric Loyd • http://everwatch.global • 844.240.EVER • @EricLoyd
I'm a Nagios Fanatic! • Join our public Nagios Discord Server!
markmerchant
Posts: 65
Joined: Tue Oct 17, 2017 8:38 am

Re: Notification not sent

Post by markmerchant »

> Plus, your notification command itself has to work and I don't know what that is.

Would the attempt not be logged? I would expect to see a log line whether or not the actual
command worked.

Thx.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Notification not sent

Post by scottwilkerson »

markmerchant wrote: Would the attempt not be logged? I would expect to see a log line whether or not the actual
command worked.
It would, but only if you had a contact assigned to the service and the contact had a proper service notification handler specified and it was in the contacts notification times

Also, the host would need to be in an UP state or the notification would be suppressed as well

Can you PM me your Admin -> System Profile -> profile.zip along with the name of the contact you think should have received a notification if you have verified the Host was up an UP state when this occured.

Thx
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
markmerchant
Posts: 65
Joined: Tue Oct 17, 2017 8:38 am

Re: Notification not sent

Post by markmerchant »

No need, the contact was in "service notifications enabled = skip". Just thought
there should be a log line to help figure it out. Ie. "Notification Suppressed".

Thx.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Notification not sent

Post by scottwilkerson »

Ok great

Locking
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked