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

Re: Nagios Alerts

Post by LuisN »

Didnt work =\

Removed the retention File, and restarted service. still sending the wrong Host Alias.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios Alerts

Post 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.
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 »

[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.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios Alerts

Post by abrist »

Still no change?
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 »

Nada =(
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios Alerts

Post by abrist »

Is ABC the same as your hostname? Are the issues with just notifications, or with the web UI as well?
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 »

ABC is the Alias, hostname itself is correct.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios Alerts

Post by abrist »

Could you post the service check definition *and* the full command definition?
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 »

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.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Nagios Alerts

Post 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/
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.
Locked