Page 1 of 1

SNMP Traps alerts not received

Posted: Tue May 13, 2014 2:30 am
by Valouch312
Hi all !
I've a problem with SNMP Traps alerts in Nagios Xi...
Traps status in Nagios Xi work fine. I can see the status change of SNMP Traps in the Web Interface of Nagios Xi but I don't receive mail alerts...

In '/var/log/messages'
nagios: SERVICE ALERT: nd_it_8000gs_1;TRAP;CRITICAL;HARD;1;Lien 48 DOWN
nagios: SERVICE NOTIFICATION: systeme;nd_it_8000gs_1;TRAP;CRITICAL;notify-service-by-email;Lien 48 DOWN

In '/var/log/mailog'
postfix/smtp[30067]: 38CA9E054C: to=<[email protected]>, relay=none, delay=0.04, delays=0.04/0.01/0/0, dsn=5.4.4, status=bounced (Host or domain name not found. Name service error for name=test.be type=AAAA: Host found but no data record of requested type)

I get all other mail alerts... I have a configured SMTP server for sending mail alerts.
Thanks for helping

Re: SNMP Traps alerts not received

Posted: Tue May 13, 2014 4:48 pm
by tmcdonald
Well it says you are trying to send to "[email protected]". Do you actually have that email account?

Re: SNMP Traps alerts not received

Posted: Wed May 14, 2014 1:46 am
by Valouch312
I've replaced my email address with [email protected]...
This is not the real email address in the log

Re: SNMP Traps alerts not received

Posted: Wed May 14, 2014 11:14 am
by sreinhardt
Well, the error is stating, that it cannot find your domain, regardless if you changed it for the output listed here or not. Is nagios able to send other contacts notifications? If so are these people just contacts, or both users and contacts? What notification settings are they using?

Re: SNMP Traps alerts not received

Posted: Thu May 15, 2014 1:45 am
by Valouch312
Contacts are also Nagios users. Nagios is able to send notifications to other contacts.
Notification settings are not really configured because i create users as monitoring contacts.

Re: SNMP Traps alerts not received

Posted: Thu May 15, 2014 3:54 am
by Valouch312
Example of notification sending in '/var/log/messages'
nagios: SERVICE NOTIFICATION: nagiosadmin;TMPCNDT;Disque D:;OK;xi_service_notification_handler;OK - D: Total=78.12GB, Used=53.41GB (68.4%), Free=24.71GB (31.6%)

Re: SNMP Traps alerts not received

Posted: Thu May 15, 2014 2:35 pm
by sreinhardt
You should switch that contact from using notify-service-by-email to use the xi-notify-service-notification-handler and xi-notify-host-notification-handler so that it can properly use the xi smtp settings.

Non-working one:
nagios: SERVICE NOTIFICATION: systeme;nd_it_8000gs_1;TRAP;CRITICAL;notify-service-by-email;Lien 48 DOWN

Working one:
nagios: SERVICE NOTIFICATION: nagiosadmin;TMPCNDT;Disque D:;OK;xi_service_notification_handler;OK -

Re: SNMP Traps alerts not received

Posted: Fri May 16, 2014 4:49 am
by Valouch312
It works ! Thanks a lot :)

Re: SNMP Traps alerts not received

Posted: Fri May 16, 2014 9:34 am
by tmcdonald
Gonna lock this one up.