Can't figure this one out. One contact (service_center) isn't getting mail and XI says it's sending (second line) ...
Wed Aug 15 12:08:31 2012 SERVICE NOTIFICATION: thuff;psm-vnx01-cs;File Systems;CUSTOM (WARNING);xi_service_notification_handler;/automation (88% gt 85% warn threshold) -;Kyle Tucker;Test from within Nagios
Wed Aug 15 12:08:31 2012 SERVICE NOTIFICATION: service_center;psm-vnx01-cs;File Systems;CUSTOM (WARNING);xi_service_notification_handler;/automation (88% gt 85% warn threshold) -;Kyle Tucker;Test from within Nagios
Wed Aug 15 12:08:32 2012 SERVICE NOTIFICATION: ktucker;psm-vnx01-cs;File Systems;CUSTOM (WARNING);xi_service_notification_handler;/automation (88% gt 85% warn threshold) -;Kyle Tucker;Test from within Nagios
... but sendmail isn't logging it being sent. So where/why is isn't not being queued to sendmail? I can send to the address defined in the contact fine from command line.
Aug 15 12:08:34 psm-itmon sendmail[721]: q7FG8YaV000721: from=<[email protected]>, size=2217, class=0, nrcpts=1, msgid=<[email protected]>, proto=ESMTP, daemon=MTA, relay=psm-itmon.us-ourdomain.root.ourdomain.com [127.0.0.1]
Aug 15 12:08:34 psm-itmon sendmail[695]: q7FG8YHr000695: to=[email protected], ctladdr=[email protected] (500/100), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=31972, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (q7FG8YaV000721 Message accepted for delivery)
Aug 15 12:08:34 psm-itmon sendmail[664]: STARTTLS=client, relay=mail1.ourdomain.com., version=TLSv1/SSLv3, verify=FAIL, cipher=AES256-SHA, bits=256/256
Aug 15 12:08:34 psm-itmon sendmail[664]: q7FG8Yj7000589: to=<[email protected]>, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=121989, relay=mail1.ourdomain.com. [192.168.100.101], dsn=2.0.0, stat=Sent (+OK message queued for delivery.)
Aug 15 12:08:34 psm-itmon sendmail[794]: STARTTLS=client, relay=mail1.ourdomain.com., version=TLSv1/SSLv3, verify=FAIL, cipher=AES256-SHA, bits=256/256
Aug 15 12:08:34 psm-itmon sendmail[794]: q7FG8YaV000721: to=<[email protected]>, delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=122217, relay=mail1.ourdomain.com. [192.168.100.101], dsn=2.0.0, stat=Sent (+OK message queued for delivery.)
Thanks.
Notification to one recipient not making it
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Notification to one recipient not making it
can you verify that you have the correct email in Configure -> My Account Settings for this user. And that Configure -> My Account Settings -> Notification Methods had email selected.
Re: Notification to one recipient not making it
This contact wasn't added as an XI user, just a contact and we've done this with many contacts. It's just a contact. Is that an incorrect operating mode for XI?
- Kyle
Re: Notification to one recipient not making it
I added that email address as an XI user and bingo - it works. I guess I have some gaping holes in my notification configuration. Why isn't a contact good enough to receive email? It's insane to force is to create user accounts for each possible email-only recipient.
- Kyle
Re: Notification to one recipient not making it
Can you see which "Host Command" and/or "Service Command" is listed for the contact in the core config manager? As in, find the Contact in the core config manager and see what is selected in the multi-select box for each of those. I believe it defaults to "xi_host_notification_handler" and "xi_service_notification_handler", but you could change it to some other event handler, like "notify_host_by_email" to get what I believe is the usual Nagios Core notifcation handler.
Nicholas Scott
Former Nagios employee
Former Nagios employee
Re: Notification to one recipient not making it
Well the original contact is gone now but it was using the xi_contact_generic template and it is using those handlers but I want to use those. I read the Users and Contacts document and it would seem I can have normal core contacts with XI users accounts.
Code: Select all
define contact {
name xi_contact_generic
contactgroups xi_contactgroup_all
host_notification_period 24x7
service_notification_period 24x7
host_notification_options d,u,r,f,s
service_notification_options w,u,c,r,f,s
host_notification_commands xi_host_notification_handler
service_notification_commands xi_service_notification_handler
register 0
}
- Kyle
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Notification to one recipient not making it
Ok, here is the problem.
If you have a just a contact and not an XI user you cannot use the following
they should use something like
If you have a just a contact and not an XI user you cannot use the following
Code: Select all
host_notification_commands xi_host_notification_handler
service_notification_commands xi_service_notification_handlerCode: Select all
host_notification_commands notify-host-by-email
service_notification_commands notify-service-by-emailRe: Notification to one recipient not making it
Very good, lesson learned. Now I have many modifications to make. 
- Kyle
Re: Notification to one recipient not making it
Just to add to Scott's response... For more info on users and contacts in XI, please, review our documentation here.
Be sure to check out our Knowledgebase for helpful articles and solutions!