Nagios Alerts

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
LuisN
Posts: 40
Joined: Thu May 24, 2012 10:47 am

Nagios Alerts

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios Alerts

Post 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?
LuisN
Posts: 40
Joined: Thu May 24, 2012 10:47 am

Re: Nagios Alerts

Post 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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios Alerts

Post 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.
LuisN
Posts: 40
Joined: Thu May 24, 2012 10:47 am

Re: Nagios Alerts

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios Alerts

Post 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
LuisN
Posts: 40
Joined: Thu May 24, 2012 10:47 am

Re: Nagios Alerts

Post by LuisN »

Yes sir :)

Things look okay - No serious problems were detected during the pre-flight check

always check
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios Alerts

Post 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.
Former 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.
LuisN
Posts: 40
Joined: Thu May 24, 2012 10:47 am

Re: Nagios Alerts

Post by LuisN »

Let me try the retention.dat removal.. yea restarted the service a couple of times.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios Alerts

Post by lmiltchev »

Let us know if removing the retention.dat fixed your issue.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked