Core 4.0.8 and check_interval not accurate
Posted: Fri Dec 05, 2014 12:39 am
Hi experts,
I have a weird problem with Nagios Core 4.0.8
OS Red Hat Enterprise Linux Server release 6.6 (Santiago)
Installed it, configured all its working as expected with one exception.
The host check interval its not accurate. I set it up from template ( templates.cfg) and also to verify it further added the check_interval to one host ( hosts.cfg).
My config for nagios.cfg is interval_length=1 ; the other values are as default; the commands.cfg values are the defaults.
Templates.cfg file has the following contents
I set up the check_interval to 5 = 5 seconds . So every seconds Nagios should send icmp requests and get replies.
But when checking with tcpdump and from the browser the check_interval is set at random values.
Host check interval random values
12-05-2014 14:34:02
Next Scheduled Active Check: 12-05-2014 14:34:21
If i configure the check_interval to specific host in hosts.cfg i get an 4 seconds delay between checks.
12-05-2014 14:36:17
Next Scheduled Active Check: 12-05-2014 14:39:21
Can you please tell me whats happening. I already google it, but found no anser.
I appreciate you help.
Thank you.
Adrian
I have a weird problem with Nagios Core 4.0.8
OS Red Hat Enterprise Linux Server release 6.6 (Santiago)
Installed it, configured all its working as expected with one exception.
The host check interval its not accurate. I set it up from template ( templates.cfg) and also to verify it further added the check_interval to one host ( hosts.cfg).
My config for nagios.cfg is interval_length=1 ; the other values are as default; the commands.cfg values are the defaults.
Templates.cfg file has the following contents
I set up the check_interval to 5 = 5 seconds . So every seconds Nagios should send icmp requests and get replies.
But when checking with tcpdump and from the browser the check_interval is set at random values.
Code: Select all
define host{
name generic-host ; The name of this hosttemplate
notifications_enabled 1 ; Host notifications are enabled
event_handler_enabled 1 ; Host event handler isenabled
flap_detection_enabled 1 ; Flap detection is enabled
process_perf_data 1 ; Process performance data
retain_status_information 1 ; Retain status information across program restarts
retain_nonstatus_information 1 ; Retain non-status information across program restarts
notification_period 24x7 ; Send host notifications at any time
register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE!
}
#template - add by me
define host{
name node ; The name of this template
use generic-host ; This template inherits other values from the generic-host template
check_period 24x7 ; By default Linux hosts are checked round the clock
check_interval 5 ; Actively check the hostevery 1 minutes
retry_interval 1 ; Schedule host check retries at 1 minute intervals
max_check_attempts 2 ; Check each Linux host 2 times (max)
check_command check-host-alive ; Default command to check Linux hosts
notification_period workhours ; Linux admins hate to bewoken up, so we only notify during the day
notification_interval 0 ; Resend notifications every 2 hours
notification_options d,u,r ; Only send notificationsfor specific host states
contact_groups admins ; Notifications get sent to the admins by default
register 0 ;
}
12-05-2014 14:34:02
Next Scheduled Active Check: 12-05-2014 14:34:21
If i configure the check_interval to specific host in hosts.cfg i get an 4 seconds delay between checks.
Code: Select all
define host{
use node
check_interval 180
Next Scheduled Active Check: 12-05-2014 14:39:21
Can you please tell me whats happening. I already google it, but found no anser.
I appreciate you help.
Thank you.
Adrian