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

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.
Locked
jim
Posts: 37
Joined: Wed Jun 08, 2016 11:18 am

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

Post 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?
Attachments
Screenshot-2.png
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

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

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked