Page 2 of 3
Re: check-host-alive pinging every second?
Posted: Tue Mar 11, 2014 1:42 pm
by pixelpshr
I don't think so. I don't have any service groups defined yet, and my host groups all look like this:
Code: Select all
define hostgroup{
hostgroup_name comm-servers
alias Communications servers
members forum-server,mail-server
}
Re: check-host-alive pinging every second?
Posted: Tue Mar 11, 2014 4:52 pm
by abrist
Do you have ""hostgroup_name" defined on any of your services?
Are multiple nagios parent processes running?
Re: check-host-alive pinging every second?
Posted: Tue Mar 11, 2014 8:24 pm
by pixelpshr
No, only one nagios process and no occurrences of "host group_name" outside of the host group definitions.
Re: check-host-alive pinging every second?
Posted: Wed Mar 12, 2014 1:39 pm
by lmiltchev
Can you open the "objects.cache" file, find the "web-server" host, copy the host definition, and post it?
Re: check-host-alive pinging every second?
Posted: Sat Mar 15, 2014 1:28 pm
by pixelpshr
I've changed its label to be "forum-server", but the data hasn't changed. There does seem to be one strange thing in here. Both the high- and low-flap-threshold values are 0.0000. I don't know if that could be the problem.
Code: Select all
define host {
host_name forum-server
alias Forum Server
address xxx.xxx.xxx.xxx
check_period 24x7
check_command check-host-alive
contact_groups admins
notification_period 24x7
initial_state o
check_interval 5.000000
retry_interval 1.000000
max_check_attempts 10
active_checks_enabled 1
passive_checks_enabled 1
obsess_over_host 0
event_handler_enabled 1
low_flap_threshold 0.000000
high_flap_threshold 0.000000
flap_detection_enabled 1
flap_detection_options o,d,u
freshness_threshold 0
check_freshness 0
notification_options d,u,r
notifications_enabled 1
notification_interval 120.000000
first_notification_delay 0.000000
stalking_options n
process_perf_data 1
failure_prediction_enabled 1
retain_status_information 1
retain_nonstatus_information 1
}
Re: check-host-alive pinging every second?
Posted: Mon Mar 17, 2014 7:59 am
by scottwilkerson
I have to ask, do other host/services depend on this host? I ask because your cached_host_check_horizon in your nagios.cfg is set to 15.
This means if the check is older that 15 seconds when a dependent host/service is being checked, Nagios will trigger a check of the host, because the current check is no longer considered valid.
Re: check-host-alive pinging every second?
Posted: Mon Mar 17, 2014 3:08 pm
by pixelpshr
No, I have 5 hosts and no dependencies defined.
There was another parameter that I wondered about. The "command_check_interval" was set to -1, which means check as often as possible. Does that have anything to do with the "check_host_alive" command?
Re: check-host-alive pinging every second?
Posted: Mon Mar 17, 2014 3:24 pm
by slansing
That is a curious one, you could try switching it back to a value of 60 and restart nagios, then check to see if they are still hitting your hosts that often. Though this does seem to be a all inclusive definition, for all commands, so if it was having an effect you'd think it would be having the same effect on services. Let us know if this causes any change in this odd behavior.
Re: check-host-alive pinging every second?
Posted: Tue Mar 18, 2014 5:12 am
by prandal
What's your interval_length set to in nagios.cfg?
It should be 60.
Format: interval_length=<seconds>
Example: interval_length=60
This is the number of seconds per "unit interval" used for timing in the scheduling queue, re-notifications, etc. "Units intervals" are used in the object configuration file to determine how often to run a service check, how often to re-notify a contact, etc.
Important: The default value for this is set to 60, which means that a "unit value" of 1 in the object configuration file will mean 60 seconds (1 minute). I have not really tested other values for this variable, so proceed at your own risk if you decide to do so!
Edit: Oh, I see you say it's 60. Make sure you don't have a second definition revising it downwards
Re: check-host-alive pinging every second?
Posted: Tue Mar 18, 2014 3:03 pm
by slansing
Thank you for the help and input prandal.