Nagios Alerts
Re: Nagios Alerts
Didnt work =\
Removed the retention File, and restarted service. still sending the wrong Host Alias.
Removed the retention File, and restarted service. still sending the wrong Host Alias.
Re: Nagios Alerts
Lets make sure you do not have multiple nagios parents processes:
Post the output of the above commands.
Code: Select all
service nagios stop
ps -aef | grep nagios.cfg
killall nagios
ps -aef | grep nagios.cfg
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
[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.
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
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.
"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
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.
"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
ABC is the Alias, hostname itself is correct.
Re: Nagios Alerts
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.
"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
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.
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
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.