Page 1 of 2
Nagios Alerts
Posted: Fri Aug 16, 2013 10:14 am
by LuisN
Hey Guys,
Quick question, i have a Host that i by mistake had in the description the name lets say ABC but i deployed it and now i rename it to XYZ but the alerts coming in for the services are coming through as ABC still? =|
searched and searched cant find much
Re: Nagios Alerts
Posted: Fri Aug 16, 2013 10:22 am
by slansing
Are these alerts that occurred before the change was made and are just now coming in? Did you by chance change the Alias or Description instead?
Re: Nagios Alerts
Posted: Fri Aug 16, 2013 10:27 am
by LuisN
I changed the "Alias" that i see within the hosts.cfg file.
These are alerts that were before and after and still showing the Wrong alias.
Re: Nagios Alerts
Posted: Fri Aug 16, 2013 12:39 pm
by slansing
Can you send us the configuration file of your host/service that is displaying this issue, and also a snippet of the title of the email that still shows the old information? Please remove any private information.
Re: Nagios Alerts
Posted: Fri Aug 16, 2013 12:56 pm
by LuisN
define host{
host_name Hosts1
use generic-server-template
alias XYZ
address 192.168.0.34
_HOST_ID 1130
notifications_enabled 1
}
thats the new Config for that Hosts.cfg
snippet of the Service for that host
** RECOVERY alert - ABC / Temp: 1 OK ** <---- Should say XYZ
Re: Nagios Alerts
Posted: Fri Aug 16, 2013 1:02 pm
by slansing
Have you checked your configurations to make sure you have no duplicates which may be sending this alert?:
http://nagios.sourceforge.net/docs/3_0/ ... onfig.html
Re: Nagios Alerts
Posted: Fri Aug 16, 2013 1:05 pm
by LuisN
Yes sir
Things look okay - No serious problems were detected during the pre-flight check
always check
Re: Nagios Alerts
Posted: Fri Aug 16, 2013 1:10 pm
by abrist
I presume that you restarted the nagios service?
You could always stop the nagios service and then remove the retention.dat file:
Code: Select all
service ngaios stop
rm /usr/local/nagios/var/retention.dat
service nagios start
This will force all you checks to reschedule though.
Re: Nagios Alerts
Posted: Fri Aug 16, 2013 1:14 pm
by LuisN
Let me try the retention.dat removal.. yea restarted the service a couple of times.
Re: Nagios Alerts
Posted: Fri Aug 16, 2013 1:20 pm
by lmiltchev
Let us know if removing the retention.dat fixed your issue.