Check_Ping help me
Posted: Thu Oct 20, 2016 10:57 am
hi Guy, ( i'm a frensh guy so ... sorry for my bad english
)
I need your help, I can't understand how the check_ping work.
I would like 5 ping every 10 second, it's for put my routers under supervision when a customer call me for a problem network.
Can you help me ?
Host in my template file :
And host files :
my nagios.cfg : (just what I modified)
The result is that I get ping like this :
(5ping)
--> (9-10s)
--> (5ping)
--> (2s)
--> (12ping)
--> (4s)
etc. I have the impression that is ... random ... or i don't understand the cycle.
thank you for your support
I need your help, I can't understand how the check_ping work.
I would like 5 ping every 10 second, it's for put my routers under supervision when a customer call me for a problem network.
Can you help me ?
Host in my template file :
Code: Select all
define host{
name router-celeste
use generic-host
check_period 24x7
check_interval 0.5
retry_interval 1
max_check_attempts 10
check_command check-host-alive
notification_period 24x7
notification_interval 30
notification_options d,r
contact_groups admins
register 0
}Code: Select all
define host{
use router-celeste
host_name SQTestNagios
alias SQ4 Test support
address 83.142.xx.46
hostgroups Router-ADSL
}
define service{
use generic-service
host_name SQTestNagios
service_description PING
check_command check_ping!100.0,20%!500.0,80% -p 5
}Code: Select all
# STATUS FILE UPDATE INTERVAL
#status_update_interval=10
status_update_interval=5
#max_check_result_reaper_time=30
max_check_result_reaper_time=5
#auto_rescheduling_interval=30
auto_rescheduling_interval=15
##############DEFAULT CONFIG########################
#service_check_timeout=50
#host_check_timeout=30
#event_handler_timeout=30
#notification_timeout=30
#ocsp_timeout=5
#perfdata_timeout=5
####################################################
#########CELESTE CONFIG#############################
service_check_timeout=20
host_check_timeout=5
event_handler_timeout=1
notification_timeout=1
ocsp_timeout=5
perfdata_timeout=5
#####################################################
# INTERVAL LENGTH
# This is the seconds per unit interval as used in the
# host/contact/service configuration files. Setting this to 60 means
# that each interval is one minute long (60 seconds). Other settings
# have not been tested much, so your mileage is likely to vary...
#interval_length=60
interval_length=10The result is that I get ping like this :
(5ping)
thank you for your support