Page 1 of 1

Host show always down when the network up.

Posted: Sun Jan 20, 2019 9:56 pm
by dimsum
Hi,

I got the too many hosts are down but on the XI could reach to host with ping. I have download profile.zip from XI. If you need to review please let me known.

Nagios XI 5.5.6

Thanks.

Re: Host show always down when the network up.

Posted: Mon Jan 21, 2019 1:03 pm
by benjaminsmith
Hello @dimsum,

The profile is always helpful - you can PM this directly to me. Can you post the performance graph(s) of the hosts that are going down. It would be helpful to view the state history as well ( Reports > State History).

The default host check for XI configuration wizards uses check_icmp for hosts checks, and it could be a network issue.

Re: Host show always down when the network up.

Posted: Thu Jan 31, 2019 11:28 pm
by dimsum
Hi,

I have sent a profile in a pm. So, now I got the issue after rebooting 11days the problem comes back too many hosts show down.

Any idea please let me know.

Re: Host show always down when the network up.

Posted: Fri Feb 01, 2019 11:03 am
by benjaminsmith
Hello @dimsum,

We've reviewed your system profile, there are a couple items to correct.

1. The check command for this host is set to for critical status at 56 ttl, and the results from your the ping test are coming it at 60 ttl, and so you are getting a host down status even though the ping test is successful.

Code: Select all

define host {
    host_name    กระบี่_คลองท่อม
    use          dopa_router_mikrotik
    alias        ที่ว่าการอำเภอคลองท่อม จังหวัดกระบี่
    address      10.202.197.6
    notes        @7.9550559,99.1428045,964
    2d_coords    @7.9550559,99.1428045,964
    register     1
}

define host {
    name                            dopa_router_mikrotik
    check_command                   dopa_check_xi_host_ping!42!60%!56!80%!!!!
    use                             xiwizard_genericnetdevice_host
    max_check_attempts              3
    check_interval                  6
    retry_interval                  1
    check_period                    24x7
    contact_groups                  admins
    notification_interval           120
    notification_period             24x7
    notification_options            d,u,r,
    notifications_enabled           1
    notes_url                       /pnp4nagios/graph?host=$HOSTNAME$
    icon_image                      router.png
    vrml_image                      router.png
    statusmap_image                 router.gd2
    register                        0
}
2. It looks like you've imported configuration files from Nagios core, and this process is not complete. You still have configuration files in the import folder. There are a few errors related to your configuration. For example, the host template, Router_ADSL, you are using is still in the prep folder ( and not showing up in Nagios XI).

Below are instructions for importing configuration files,

Importing Config Files From Nagios Core Into Nagios XI
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

and to test your configuration from the command line run the following:

Code: Select all

/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
Let us know if you get it resolved.

Re: Host show always down when the network up.

Posted: Sat Feb 02, 2019 11:50 am
by dimsum
Hi,

Yes, I have imported from an old Nagios core but it's a long time. I look the issue it's come when XI got too many hosts were down in the same time e.g. core network, core switch down. But XI don't change status up when the host is up. Then I reboot a machine all status is looking okay.

I run a command and here are the result.

Checking objects...
Checked 8819 services.
Checked 965 hosts.
Checked 81 host groups.
Checked 0 service groups.
Checked 9 contacts.
Checked 2 contact groups.
Checked 207 commands.
Checked 11 time periods.
Checked 0 host escalations.
Checked 0 service escalations.
Checking for circular paths...
Checked 965 hosts
Checked 0 service dependencies
Checked 0 host dependencies
Checked 11 timeperiods
Checking global event handlers...
Checking obsessive compulsive processor commands...
Checking misc settings...

Total Warnings: 0
Total Errors: 0

Any idea?

Thank you.

Re: Host show always down when the network up.

Posted: Mon Feb 04, 2019 11:29 am
by benjaminsmith
Hello @dimsum,
Yes, I have imported from an old Nagios core but it's a long time. I look the issue it's come when XI got too many hosts were down in the same time e.g. core network, core switch down. But XI don't change status up when the host is up.
Did you adjust the warning/critical parameters on the hosts checks. While the ping command is returning packets, it's taking too long and causing those hosts to go into a down state, so this looks like a network issue.

Re: Host show always down when the network up.

Posted: Tue Feb 05, 2019 11:26 pm
by dimsum
Hi,

I changed a threshold already. So I will update you later maybe a couple weeks.

Thanks!

Re: Host show always down when the network up.

Posted: Wed Feb 06, 2019 11:48 am
by benjaminsmith
Hi @dimsum,
I changed a threshold already. So I will update you later maybe a couple weeks.
Sounds good.

Re: Host show always down when the network up.

Posted: Sun Mar 10, 2019 10:07 pm
by dimsum
Hi,

The problem comes again! after 37days. Please look at the SS.

Any idea?

Thank you.

Re: Host show always down when the network up.

Posted: Mon Mar 11, 2019 10:57 am
by benjaminsmith
Hi @dimsum,

It looks like the check command is working correctly, but the host shown above is in a unreachable state. It is likely the Nagios server is not able to reach the host due to network issues.

Can you log into the Nagios server ( as nagios user ) and run the check command from the command line to test the connection and let us know the results?

Code: Select all

su nagios
./check_icmp -H <host-ip-address> -w 3000.0,80% -c 5000.0,100% -p 5
Nagios XI - How To Test Check Commands From The Command-line
https://support.nagios.com/kb/article/n ... e-167.html