Page 1 of 1

Trouble sending mail to ONE contact

Posted: Thu Dec 11, 2014 12:22 pm
by benningtonr
I have one contact that is not getting his alerts.
Contact is active.
Contact is assigned to an active service, same one as me.
I receive the alert, he does not.
I can email him directly from the email account we are using for all contacts via exchange outlook.
I am using smtp to send mail, that all other contacts are receiving.
I put him into an exchange distribution group and assign the group to the service he gets the alert.
I copied my info using the copy feature within contacts, changed the email address and name, he did not receive alert.
Under events, it states that an alert was sent to all contacts assigned, yet he still does not receive the alert.
Yes we have gone through his outlook with a fine tooth comb and it is not being pigeon holed anywhere.
Ideas?

It is as though Nagios will not send to his address.

Re: Trouble sending mail to ONE contact

Posted: Thu Dec 11, 2014 12:28 pm
by tmcdonald
Anything in /var/log/maillog addressed to him?

If you look in /usr/local/nagios/var/objects.cache you will see the "compiled" list of Nagios objects. This means instead of referencing a template, the objects will have their full configs displayed including anything inherited from a template. This should remove all doubt as to what options are present for that contact. If you search for "contact_name\t<name>" you will find the entry. Bear in mind that the "\t" is a tab, and "<name>" should be replaced with the contact name like "nagiosadmin" or "johndoe". Compare this against other contacts and note any discrepancies here.

Re: Trouble sending mail to ONE contact

Posted: Thu Dec 11, 2014 1:10 pm
by benningtonr
He is in there, i have him twice, once a recreate, and once aI copied my contact infor and changed the name.

I don't see him in the maillog, but I don't see anyone else that I should see either, so that is a wash. I ran grep against a few names I should have seem and nothing.



define contact {
contact_name Ray L
alias Ray Lenz
service_notification_period ronb_notification_times
host_notification_period ronb_notification_times
service_notification_options r,w,c
host_notification_options r,d
service_notification_commands xi_service_notification_handler
host_notification_commands xi_host_notification_handler
email [email protected]
minimum_importance 0
host_notifications_enabled 1
service_notifications_enabled 1
can_submit_commands 1
retain_status_information 1
retain_nonstatus_information 1
}

define contact {
contact_name Ray Lenz
alias Ray Lenz
service_notification_period 24x7
host_notification_period 24x7
service_notification_options w,u,c,f
host_notification_options d,u,f
service_notification_commands xi_service_notification_handler
host_notification_commands xi_host_notification_handler
email [email protected]
address1 [email protected]
minimum_importance 0
host_notifications_enabled 1
service_notifications_enabled 1
can_submit_commands 1
retain_status_information 1
retain_nonstatus_information 1

Re: Trouble sending mail to ONE contact

Posted: Thu Dec 11, 2014 1:28 pm
by tgriep
Try changing the notification_commands to the following for that contact and see it the works for you.

service_notification_commands notify_service_xi_contact
host_notification_commands notify_host_xi_contact

Re: Trouble sending mail to ONE contact

Posted: Thu Dec 11, 2014 2:57 pm
by benningtonr
I think it is working now, I'll post more later.

Re: Trouble sending mail to ONE contact

Posted: Thu Dec 11, 2014 2:58 pm
by abrist
Alright, keep us informed.