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
Nagios Alerts
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Nagios Alerts
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
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.
These are alerts that were before and after and still showing the Wrong alias.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Nagios Alerts
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
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
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
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Nagios Alerts
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
http://nagios.sourceforge.net/docs/3_0/ ... onfig.html
Re: Nagios Alerts
Yes sir 
Things look okay - No serious problems were detected during the pre-flight check
always check
Things look okay - No serious problems were detected during the pre-flight check
always check
Re: Nagios Alerts
I presume that you restarted the nagios service?
You could always stop the nagios service and then remove the retention.dat file:
This will force all you checks to reschedule though.
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 startFormer Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Nagios Alerts
Let me try the retention.dat removal.. yea restarted the service a couple of times.
Re: Nagios Alerts
Let us know if removing the retention.dat fixed your issue.
Be sure to check out our Knowledgebase for helpful articles and solutions!