---
### TODO: REMEMBER TO CONVERT TO DEFAULS ###
## Checks to-do:
## Check HTTPS services
## Check IMAP
## Check SMTP
##
nagios4_config:
admin_email: 'monitor-admin@example.org'
admin_pager: 'monitor-admin-pager@example.com'
log_file: "/var/log/nagios4/nagios.log"
object_cache_file: "/var/lib/nagios4/objects.cache"
precached_object_file: "/var/lib/nagios4/objects.precache"
resource_file: "/etc/nagios4/resource.cfg"
status_file: "/var/lib/nagios4/status.dat"
status_update_interval: 30
nagios_user: 'nagios'
nagios_group: 'nagios'
check_external_commands: 1
command_file: "/var/lib/nagios4/rw/nagios.cmd"
lock_file: "/var/lib/nagios4/nagios.lock"
temp_file: "/var/lib/nagios4/nagios.tmp"
temp_path: '/tmp'
event_broker_options: -1
log_rotation_method: 'd'
log_archive_path: "/var/lib/nagios4/archive"
use_syslog: 1
log_notifications: 1
log_service_retries: 1
log_host_retries: 1
log_event_handlers: 1
log_initial_states: 0
log_current_states: 1
log_external_commands: 1
log_passive_checks: 1
service_inter_check_delay_method: 's'
max_service_check_spread: 30
service_interleave_factor: 's'
host_inter_check_delay_method: 's'
max_host_check_spread: 30
max_concurrent_checks: 0
check_result_reaper_frequency: 30
max_check_result_reaper_time: 60
check_result_path: "/var/lib/nagios4/spool/checkresults"
max_check_result_file_age: 3600
cached_host_check_horizon: 15
cached_service_check_horizon: 35
enable_predictive_host_dependency_checks: 1
enable_predictive_service_dependency_checks: 1
soft_state_dependencies: 0
auto_reschedule_checks: 0
auto_rescheduling_interval: 90
auto_rescheduling_window: 360
service_check_timeout: 60
host_check_timeout: 30
event_handler_timeout: 30
notification_timeout: 30
ocsp_timeout: 5
perfdata_timeout: 5
retain_state_information: 1
state_retention_file: "/var/lib/nagios4/retention.dat"
retention_update_interval: 60
use_retained_program_state: 1
use_retained_scheduling_info: 1
retained_host_attribute_mask: 0
retained_service_attribute_mask: 0
retained_process_host_attribute_mask: 0
retained_process_service_attribute_mask: 0
retained_contact_host_attribute_mask: 0
retained_contact_service_attribute_mask: 0
interval_length: 60
check_for_updates: 1
bare_update_check: 0
use_aggressive_host_checking: 0
execute_service_checks: 1
accept_passive_service_checks: 1
execute_host_checks: 1
accept_passive_host_checks: 1
enable_notifications: 1
enable_event_handlers: 1
process_performance_data: 1
#host_perfdata_file: '/usr/local/pnp4nagios/var/host-perfdata'
#service_perfdata_file: '/usr/local/pnp4nagios/var/service-perfdata'
#host_perfdata_file_template: 'DATATYPE::HOSTPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tHOSTPERFDATA::$HOSTPERFDATA$\tHOSTCHECKCOMMAND::$HOSTCHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$'
#service_perfdata_file_template: 'DATATYPE::SERVICEPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tSERVICEDESC::$SERVICEDESC$\tSERVICEPERFDATA::$SERVICEPERFDATA$\tSERVICECHECKCOMMAND::$SERVICECHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$\tSERVICESTATE::$SERVICESTATE$\tSERVICESTATETYPE::$SERVICESTATETYPE$'
#host_perfdata_file_mode: 'a'
#service_perfdata_file_mode: 'a'
#host_perfdata_file_processing_interval: 15
#service_perfdata_file_processing_interval: 15
#host_perfdata_file_processing_command: 'process-host-perfdata-file'
#service_perfdata_file_processing_command: 'process-service-perfdata-file'
obsess_over_services: 0
obsess_over_hosts: 0
translate_passive_host_checks: 0
passive_host_checks_are_soft: 0
check_for_orphaned_services: 1
check_for_orphaned_hosts: 1
check_service_freshness: 1
service_freshness_check_interval: 60
service_check_timeout_state: 'c'
check_host_freshness: 0
host_freshness_check_interval: 60
additional_freshness_latency: 15
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
date_format: 'u'
illegal_object_name_chars: "`~!$%^&*|'\"<>?,(): '"
illegal_macro_output_chars: "`~$&|'\"<>"
use_regexp_matching: 0
use_true_regexp_matching: 0
daemon_dumps_core: 0
use_large_installation_tweaks: 0
enable_environment_macros: 1
debug_level: 0
debug_verbosity: 1
debug_file: "/var/log/nagios4/nagios.debug"
max_debug_file_size: 1000000
allow_empty_hostgroup_assignment: 0
cgi_config:
main_config_file: /etc/nagios4/nagios.cfg
physical_html_path: /usr/share/nagios4/htdocs
url_html_path: /nagios4
show_context_help: 0
use_pending_states: 1
use_authentication: 0
use_ssl_authentication: 0
authorized_for_system_information: nagiosadmin
authorized_for_configuration_information: nagiosadmin
authorized_for_system_commands: nagiosadmin
authorized_for_all_services: nagiosadmin
authorized_for_all_hosts: nagiosadmin
authorized_for_all_service_commands: nagiosadmin
authorized_for_all_host_commands: nagiosadmin
default_statuswrl_layout: 4
ping_syntax: /bin/ping -n -U -c 5 $HOSTADDRESS$
refresh_rate: 90
result_limit: 100
escape_html_tags: 1
action_url_target: _blank
notes_url_target: _blank
lock_author_names: 1
navbar_search_for_addresses: 1
navbar_search_for_aliases: 1
nagios_user: nagios
nagios_group: nagios
monitored_hosts:
- host_name: localhost
use: linux-server
alias: Server-1
address: 127.0.0.1
services:
- use: local-service
description: PING
check_command: check_ping!100.0,20%!500.0,60%
- host_name: server1
use: linux-server
alias: Server-1
address: server1.example.org
services:
- use: local-service
description: PING
check_command: check_ping!100.0,20%!500.0,60%
hostgroups:
- hostgroup_name: linux servers
alias: Linux Servers
members:
- localhost
- server1
services:
- service_description: 'PING'
check_command: "check_ping!200.0,20%!500.0,60%"
- hostgroup_name: external servers
alias: External Servers
services:
- service_description: 'PING'
check_command: "check_ping!200.0,20%!500.0,60%"
- hostgroup_name: imap servers
alias: IMAP servers
services:
- service_description: 'PING'
check_command: "check_ping!200.0,20%!500.0,60%"
- hostgroup_name: mail transport agents
alias: Mail Transport Agents
services:
- service_description: 'PING'
check_command: "check_ping!200.0,20%!500.0,60%"
- hostgroup_name: appliances
alias: Appliances
services:
- service_description: 'PING'
check_command: "check_ping!200.0,20%!500.0,60%"
- hostgroup_name: web servers
alias: Web servers
services:
- service_description: 'PING'
check_command: "check_ping!200.0,20%!500.0,60%"
commands: []
contacts: []
templates: []
timeperiods: []
vhosts:
- vhostname: nagios4.example.org
web_port: 80
ssl_port: 443
ssl: yes
#docroot: /var/www/host.example.org
serveradmin: webmaster@example.org
#server_aliases: []
#root_options:
# - '-Indexes'
# - '-FollowSymLinks'
aliases:
- dest: nagios4
src: /usr/share/nagios4/htdocs
# directories:
# - path: /var/www/host.example.org/custom_dir
# options:
# - '-Indexes'
# - '-FollowSymLinks'
# allow_override: None
# require: 'all granted'
# custom_code: ""
custom_code: "
Options FollowSymLinks
DirectoryIndex index.php index.html
AllowOverride AuthConfig
#Require ip ::1/128 fc00::/7 fe80::/10 10.0.0.0/8 127.0.0.0/8 169.254.0.0/16 172.16.0.0/12 192.168.0.0/16
AuthDigestDomain \"Nagios4\"
AuthDigestProvider file
AuthUserFile \"/etc/nagios4/htdigest.users\"
AuthGroupFile \"/etc/group\"
AuthName \"Nagios4\"
AuthType Digest
Require all granted
#Require valid-user
Options +ExecCGI
"
# ldap:
# url: ldap://ldap.example.org/ou=People,ou=Users,dc=example,dc=org?uid
# require: valid-user
#reverse_proxy: http://127.0.0.1:8080/