All pastes #212325 Raw Edit

Untitled

public text v1 · immutable
#212325 ·published 2006-10-20 20:29 UTC
rendered paste body
###############################################################################################
nagios.cfg
----------

log_file=/var/spool/nagios/nagios.log

cfg_file=/usr/local/etc/nagios/checkcommands.cfg
cfg_file=/usr/local/etc/nagios/misccommands.cfg

cfg_file=/usr/local/etc/nagios/contactgroups.cfg
cfg_file=/usr/local/etc/nagios/contacts.cfg

cfg_file=/usr/local/etc/nagios/servicegroups.cfg
cfg_file=/usr/local/etc/nagios/services.cfg

cfg_file=/usr/local/etc/nagios/hostgroups.cfg
cfg_dir=/usr/local/etc/nagios/hosts

cfg_file=/usr/local/etc/nagios/timeperiods.cfg

#cfg_file=/usr/local/etc/nagios/dependencies.cfg
#cfg_file=/usr/local/etc/nagios/escalations.cfg

resource_file=/usr/local/etc/nagios/resource.cfg
temp_file=/var/spool/nagios/nagios.tmp
status_file=/var/spool/nagios/status.dat


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
enable_event_handlers=1
log_rotation_method=w
log_archive_path=/var/spool/nagios/archives
check_external_commands=1
command_check_interval=-1
comment_file=/var/spool/nagios/comments.dat
downtime_file=/var/spool/nagios/downtime.dat
command_file=/var/spool/nagios/nagios.cmd
lock_file=/var/spool/nagios/nagios.lock
retain_state_information=1
state_retention_file=/var/spool/nagios/retention.dat
retention_update_interval=60
use_retained_program_state=0
use_syslog=1
log_notifications=1
log_service_retries=1
log_host_retries=1
log_event_handlers=1
log_initial_states=0
log_external_commands=1
sleep_time=1
max_concurrent_checks=0
service_reaper_frequency=10
interval_length=60
enable_flap_detection=1
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
obsess_over_services=0
process_performance_data=0
check_for_orphaned_services=0
check_service_freshness=1
host_freshness_check_interval=60
service_freshness_check_interval=60
admin_email=nagios
admin_pager=pagenagios
date_format=iso8601
illegal_object_name_chars=`~!$%^&*|'"<>?,()=
illegal_macro_output_chars=`~$&|'"<>
###############################################################################################

servicegroups.cfg
-----------------
define servicegroup {
servicegroup_name			http-group
alias					HTTP Group
}
###############################################################################################

services.cfg
------------
define service {
name                            basic-template
register                        0
retry_check_interval            1
active_checks_enabled           1
passive_checks_enabled          1
parallelize_check               1
obsess_over_service             0
check_freshness                 0
event_handler_enabled           1
flap_detection_enabled          1
process_perf_data               1
retain_status_information       1
retain_nonstatus_information    1
notification_options            c,r
notifications_enabled           1
}

define service {
name				generic-service
register			0
use				basic-template
max_check_attempts		15
normal_check_interval		15
check_period			workhours
notification_interval		0
notification_period		workhours
}

define service {
name				critical-service
register			0
use				basic-template
max_check_attempts		15
normal_check_interval		10
check_period			24x7
notification_interval		60
notification_period		24x7
}

define service {
service_description             HTTP
use                             critical-service
host_name                       ircenter
check_command                   check_http_url!/webopac/main
notification_options            w,c,r
notification_interval           0
contact_groups                  external-tech-sseiler
servicegroups			http-group
}
###############################################################################################

hostgroups.cfg
--------------
define hostgroup {
hostgroup_name                  external-servers-sseiler-critical
alias                           External Servers - Steve Seiler
}
###############################################################################################

hosts/hosts-servers.cfg
---------
define host {
name				host-template
register			0
notification_options            d,r
notifications_enabled           1
check_command                   check-host-alive
event_handler_enabled           1
flap_detection_enabled          1
process_perf_data               1
retain_status_information       1
retain_nonstatus_information    1
notification_period             24x7
}

define host {
name                            generic-host
register                        0
use				host-template
max_check_attempts              60
notification_interval           0
}

define host {
name                            critical-host
register                        0
use				host-template
max_check_attempts              30
notification_interval           60
}

define host {
host_name			sseiler-generic
register			0
use				generic-host
contact_groups			external-tech-sseiler
hostgroups			ois-servers-sseiler-generic
}

define host {
host_name			sseiler-critical
register			0
use				critical-host
contact_groups			external-tech-sseiler
hostgroups			external-servers-sseiler-critical
}

#####

# STEVE SEILER'S SERVERS

define host {
host_name                       ircenter
alias                           IRCenter Server
address                         198.248.214.33
use				sseiler-critical
}
###############################################################################################

contactgroups.cfg
-----------------

define contactgroup {
contactgroup_name               external-tech-sseiler
alias                           External Tech - Steve Seiler
}
###############################################################################################

contacts.cfg
------------
define contact {
contact_name                    sseiler-work
alias                           Steve Seiler @ Work
email                           sseiler@domain.com
contactgroups			external-tech-mseeley
host_notification_period        24x7
host_notification_options       d,r
service_notification_period     24x7
service_notification_options    c,r
host_notification_commands      host-notify-by-email
service_notification_commands   notify-by-email
}
###############################################################################################