Page 2 of 2

Re: Nagios Alerts

Posted: Fri Aug 16, 2013 1:24 pm
by LuisN
Didnt work =\

Removed the retention File, and restarted service. still sending the wrong Host Alias.

Re: Nagios Alerts

Posted: Fri Aug 16, 2013 1:29 pm
by abrist
Lets make sure you do not have multiple nagios parents processes:

Code: Select all

service nagios stop
ps -aef | grep nagios.cfg
killall nagios
ps -aef | grep nagios.cfg
service nagios start
Post the output of the above commands.

Re: Nagios Alerts

Posted: Fri Aug 16, 2013 1:36 pm
by LuisN
[root@Mon_Server1 ~]# service nagios stop
Stopping nagios: ....done.

[root@Mon_Server1 ~]# ps -aef | grep nagios.cfg
root 20709 15824 0 14:35 pts/0 00:00:00 grep nagios.cfg

[root@Mon_Server1 ~]# killall nagios
nagios: no process killed

[root@Mon_Server1 ~]# ps -aef | grep nagios.cfg
root 20720 15824 0 14:35 pts/0 00:00:00 grep nagios.cfg

[root@Mon_Server1 ~]# service nagios start
Starting nagios: done.

Re: Nagios Alerts

Posted: Fri Aug 16, 2013 1:38 pm
by abrist
Still no change?

Re: Nagios Alerts

Posted: Fri Aug 16, 2013 1:46 pm
by LuisN
Nada =(

Re: Nagios Alerts

Posted: Fri Aug 16, 2013 1:50 pm
by abrist
Is ABC the same as your hostname? Are the issues with just notifications, or with the web UI as well?

Re: Nagios Alerts

Posted: Fri Aug 16, 2013 1:52 pm
by LuisN
ABC is the Alias, hostname itself is correct.

Re: Nagios Alerts

Posted: Fri Aug 16, 2013 1:55 pm
by abrist
Could you post the service check definition *and* the full command definition?

Re: Nagios Alerts

Posted: Fri Aug 16, 2013 2:28 pm
by LuisN
define service{
host_name Hosts1
service_description Ping
_SERVICE_ID 16225
use Ping-LAN
}

its as simple as it gets. that above will not give me the correct Alias, which is tied with the host not the service.

Re: Nagios Alerts

Posted: Mon Aug 19, 2013 10:01 am
by sreinhardt
OK, let's try looking through your configs and objects.cache. I am going to write this as though it is a source based install on Cent, so your directories may vary.

Code: Select all

grep -i '[string that you don't want ie. abc]' /usr/local/nagios/var/objects.cache
grep -iR '[string that you don't want ie. abc]' /usr/local/nagios/etc/
grep -i '[string that you do want ie. xyz]' /usr/local/nagios/var/objects.cache
grep -iR '[string that you do want ie. xyz]' /usr/local/nagios/etc/