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
SNMP Traps alerts not received
Re: SNMP Traps alerts not received
Well it says you are trying to send to "[email protected]". Do you actually have that email account?
Former Nagios employee
-
Valouch312
- Posts: 14
- Joined: Tue Mar 18, 2014 3:30 am
Re: SNMP Traps alerts not received
I've replaced my email address with [email protected]...
This is not the real email address in the log
This is not the real email address in the log
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: SNMP Traps alerts not received
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?
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
-
Valouch312
- Posts: 14
- Joined: Tue Mar 18, 2014 3:30 am
Re: SNMP Traps alerts not received
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.
Notification settings are not really configured because i create users as monitoring contacts.
You do not have the required permissions to view the files attached to this post.
-
Valouch312
- Posts: 14
- Joined: Tue Mar 18, 2014 3:30 am
Re: SNMP Traps alerts not received
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%)
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%)
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: SNMP Traps alerts not received
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 -
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 -
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
-
Valouch312
- Posts: 14
- Joined: Tue Mar 18, 2014 3:30 am
Re: SNMP Traps alerts not received
It works ! Thanks a lot 