nagios service check latency
Holmes Robert
robert.holmes at xo.com
Thu Apr 26 20:20:49 CEST 2007
You need to include the directive which allows service/host checks to be
parallelized. I had that same problem when I set up my first Nagios
install.
________________________________
From: nagios-users-bounces at lists.sourceforge.net
[mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of James
Sent: Thursday, April 26, 2007 11:10 AM
To: Marc Powell
Cc: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] nagios service check latency
Marc Powell wrote:
-----Original Message-----
From: nagios-users-bounces at lists.sourceforge.net
[mailto:nagios-users-
bounces at lists.sourceforge.net] On Behalf Of Morris,
Patrick
Sent: Wednesday, April 25, 2007 10:16 PM
To: James; nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] nagios service check latency
Ok i have a question about setting priority to
service checks
since i have a handful of service check checking
clusters of
servers i'd like the priority of those service
checks as high
as for instance...
I'm running about 120 services.
My Nagios seemed pretty speedy before until recently i dunno what
changes i made to do this but most of them should've been just to add a
few services.
After i noticed pretty delayed notifications and then some latency i
started making changes and it still hasn't changed all that much
here's my nagios.cfg tho
###############BEGIN CFG#############################
cfg_file=/usr/local/nagios/etc/hosts.cfg
cfg_file=/usr/local/nagios/etc/services.cfg
cfg_file=/usr/local/nagios/etc/misccommands.cfg
cfg_file=/usr/local/nagios/etc/checkcommands.cfg
cfg_file=/usr/local/nagios/etc/contactgroups.cfg
cfg_file=/usr/local/nagios/etc/contacts.cfg
cfg_file=/usr/local/nagios/etc/hostgroups.cfg
cfg_file=/usr/local/nagios/etc/servicegroups.cfg
cfg_file=/usr/local/nagios/etc/timeperiods.cfg
cfg_file=/usr/local/nagios/etc/escalations.cfg
cfg_file=/usr/local/nagios/etc/dependencies.cfg
cfg_file=/usr/local/nagios/etc/hostextinfo.cfg
cfg_file=/usr/local/nagios/etc/serviceextinfo.cfg
cfg_file=/usr/local/nagios/etc/meta_commands.cfg
cfg_file=/usr/local/nagios/etc/meta_contact.cfg
cfg_file=/usr/local/nagios/etc/meta_contactgroup.cfg
cfg_file=/usr/local/nagios/etc/meta_dependencies.cfg
cfg_file=/usr/local/nagios/etc/meta_escalations.cfg
cfg_file=/usr/local/nagios/etc/meta_host.cfg
cfg_file=/usr/local/nagios/etc/meta_hostgroup.cfg
cfg_file=/usr/local/nagios/etc/meta_services.cfg
cfg_file=/usr/local/nagios/etc/meta_timeperiod.cfg
resource_file=/usr/local/nagios/etc/resource.cfg
log_file=/usr/local/nagios/var/nagios.log
object_cache_file=/usr/local/nagios/var/objects.cache
temp_file=/usr/local/nagios/var/nagios.tmp
status_file=/usr/local/nagios/var/status.dat
p1_file=/usr/local/nagios/bin/p1.pl
aggregate_status_updates=1
status_update_interval=15
nagios_user=nagios
nagios_group=nagios
enable_notifications=1
execute_service_checks=1
accept_passive_service_checks=1
execute_host_checks=1
accept_passive_host_checks=1
enable_event_handlers=1
log_rotation_method=d
log_archive_path=/usr/local/nagios/var/archives/
check_external_commands=1
command_check_interval=-1
command_file=/usr/local/nagios/var/rw/nagios.cmd
downtime_file=/usr/local/nagios/var/downtime.dat
comment_file=/usr/local/nagios/var/comments.dat
lock_file=/usr/local/nagios/var/nagios.lock
retain_state_information=1
state_retention_file=/usr/local/nagios/var/retention.dat
retention_update_interval=60
use_retained_program_state=1
use_retained_scheduling_info=0
log_initial_states=0
sleep_time=0.25
service_inter_check_delay_method=s
host_inter_check_delay_method=s
service_interleave_factor=s
max_concurrent_checks=55
max_service_check_spread=30
max_host_check_spread=30
service_reaper_frequency=10
interval_length=60
auto_rescheduling_interval=30
auto_rescheduling_window=180
enable_flap_detection=0
low_service_flap_threshold=5.0
high_service_flap_threshold=20.0
low_host_flap_threshold=5.0
high_host_flap_threshold=20.0
service_check_timeout=60
host_check_timeout=30
event_handler_timeout=30
notification_timeout=30
ocsp_timeout=5
perfdata_timeout=5
process_performance_data=1
host_perfdata_command=process-host-perfdata
service_perfdata_command=process-service-perfdata
check_for_orphaned_services=1
service_freshness_check_interval=60
host_freshness_check_interval=60
date_format=us
illegal_object_name_chars=`~!$%^&*|'"<>?,()=
illegal_macro_output_chars=`~$&|'"<>
use_regexp_matching=0
use_true_regexp_matching=0
admin_email=nagios
admin_pager=pagenagios
###############END CFG#############################
Here's the service template i'm using:
################BEGIN SERVICE TEMPLATE ##############
define service{
name local-service
service_description local-service
use generic-service
max_check_attempts 10
normal_check_interval 1
retry_check_interval 1
check_period 24x7
notification_interval 15
notification_period 24x7
notification_options w,c,r
notifications_enabled 1
contact_groups admins
stalking_options o
register 0
}
################END SERVICE TEMPLATE ##################
and here's the host template i'm using
################ BEGIN HOST TEMPLATE ###################
define host{
name linux-server
use generic-host
alias servers
check_command Check_ICMP!1
max_check_attempts 10
check_interval 0
check_period 24x7
contact_groups admins
notification_interval 15
notification_period 24x7
notification_options d,r
notifications_enabled 1
register 0
}
################ END HOST TEMPLATE #####################
any recommendations on changes?
i tried going through the tweak guide but no luck that i've noticed.
when i take a host down i noticed it doesn't detect it for about 5-10
minutes
same with detecting it after it comes back up
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20070426/ff4dd0a1/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list