Page 1 of 1

Nagios says host is UP when the host is its decommissioned?

Posted: Sat Jun 25, 2016 11:51 pm
by jim
Hello,

Any idea why it is saying host is up when its actually decommissioned?

Please find below screen shot
https://support.nagios.com/forum/downlo ... w&id=13928

Output from nagios server:

Code: Select all

[root@puppet libexec]# telnet agent2 22
Trying 192.168.1.4...
telnet: connect to address 192.168.1.4: Connection refused
[root@puppet libexec]# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.1.2 puppet master
192.168.1.3 agent1 machine1
192.168.1.4 agent2 machine2
192.168.1.5 agent3 machine3
[root@puppet libexec]# ./check_ssh -H agent2
connect to address agent2 and port 22: Connection refused
[root@puppet libexec]# pwd
/usr/local/nagios/libexec
[root@puppet libexec]# 
1. Why Nagios says host is UP when it should report down
2. Any dynamic way to add and remove host from nagios?

Re: Nagios says host is UP when the host is its decommissio

Posted: Mon Jun 27, 2016 2:01 am
by Box293
jim wrote:1. Why Nagios says host is UP when it should report down
Generally the HOST up/down checks are ICMP checks. You did not provide your host config files so I can only assume that is why they are up. None of your tests show ICMP checks.

Please provide the text configs for the host objects shown in your screenshot.
jim wrote:2. Any dynamic way to add and remove host from nagios?
You would need an automation system like puppet or chef. I've not used them but they get mentioned a lot by users.