Host checks not changing even when system down.

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.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Host checks not changing even when system down.

Post by tmcdonald »

Did you by any chance censor the IP addresses in that file? All of the host addresses are like "xxx.xxx.xxx.12".
Former Nagios employee
EchoKev
Posts: 40
Joined: Tue Jul 02, 2013 11:35 am

Re: Host checks not changing even when system down.

Post by EchoKev »

That is correct.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Host checks not changing even when system down.

Post by scottwilkerson »

In your nagios.cfg is the following set?

Code: Select all

execute_host_checks=1
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
EchoKev
Posts: 40
Joined: Tue Jul 02, 2013 11:35 am

Re: Host checks not changing even when system down.

Post by EchoKev »

scottwilkerson wrote:In your nagios.cfg is the following set?

Code: Select all

execute_host_checks=1
Yes it is

Code: Select all

# HOST CHECK EXECUTION OPTION
# This determines whether or not Nagios will actively execute
# host checks when it initially starts.  If this option is
# disabled, checks are not actively made, but Nagios can still
# receive and process passive check results that come in.  Unless
# you're implementing redundant hosts or have a special need for
# disabling the execution of host checks, leave this enabled!
# Values: 1 = enable checks, 0 = disable checks

execute_host_checks=1
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Host checks not changing even when system down.

Post by tmcdonald »

What specific host is this occurring for?
Former Nagios employee
EchoKev
Posts: 40
Joined: Tue Jul 02, 2013 11:35 am

Re: Host checks not changing even when system down.

Post by EchoKev »

tmcdonald wrote:What specific host is this occurring for?
Pretty much all of them.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Host checks not changing even when system down.

Post by scottwilkerson »

Would it be possible for you to share your nagios.cfg?

Also, if you go to "Process Info" in the UI, you do have the following correct?

Code: Select all

Host Checks Being Executed?	YES
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
EchoKev
Posts: 40
Joined: Tue Jul 02, 2013 11:35 am

Re: Host checks not changing even when system down.

Post by EchoKev »

See attached.
Attachments
nagios.cfg
(44.75 KiB) Downloaded 376 times
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Host checks not changing even when system down.

Post by tmcdonald »

Do you mean all or pretty much all hosts? Because if it is pretty much all there might be a pattern.

And we might want to enable some really verbose debugging and run nagios for a bit:

Code: Select all

service nagios stop
<edit debug_level to be 16 in nagios.cfg>
service nagios start
Let it run for 60 seconds, then stop it again, turn debugging back to 0, and send us your /usr/local/nagios/var/nagios.debug and /usr/local/nagios/var/nagios.log files. During this time, manually re-schedule a host check in Core.
Former Nagios employee
Locked