Changeset 716 for noc/nagios/nagios.cfg
- Timestamp:
- Apr 7, 2008, 6:56:45 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
noc/nagios/nagios.cfg
r535 r716 1 1 ############################################################################## 2 2 # 3 # NAGIOS.CFG - Sample Main Config File for Nagios 4 # 5 # Read the documentation for more information on this configuration 6 # file. I've provided some comments here, but things may not be so 7 # clear without further explanation. 8 # 9 # Last Modified: 11-23-2005 3 # NAGIOS.CFG - Main Config File for Nagios 10 4 # 11 5 ############################################################################## … … 17 11 # in the config file!!! 18 12 19 log_file=/var/log/nagios /nagios.log13 log_file=/var/log/nagios2/nagios.log 20 14 21 15 … … 35 29 # plugins, so you should use the same config file provided with the 36 30 # plugin release rather than the one provided with Nagios. 37 cfg_file=/etc/nagios/checkcommands.cfg 31 cfg_file=/etc/nagios2/checkcommands.cfg 32 33 # Debian also defaults to using the check commands defined by the debian 34 # nagios-plugins package 35 cfg_dir=/etc/nagios-plugins/config 38 36 39 37 # Misc commands (notification and event handler commands, etc) 40 cfg_file=/etc/nagios /misccommands.cfg38 cfg_file=/etc/nagios2/misccommands.cfg 41 39 42 40 # You can split other types of object definitions across several … … 44 42 # single config file. 45 43 46 cfg_file=/etc/nagios /base.cfg47 48 #cfg_file=/etc/nagios /contactgroups.cfg49 cfg_file=/etc/nagios /contacts.cfg50 #cfg_file=/etc/nagios /dependencies.cfg51 #cfg_file=/etc/nagios /escalations.cfg52 cfg_file=/etc/nagios /hostgroups.cfg53 cfg_file=/etc/nagios /hosts.cfg54 cfg_file=/etc/nagios /services.cfg55 #cfg_file=/etc/nagios /timeperiods.cfg44 cfg_file=/etc/nagios2/base.cfg 45 46 #cfg_file=/etc/nagios2/contactgroups.cfg 47 cfg_file=/etc/nagios2/contacts.cfg 48 #cfg_file=/etc/nagios2/dependencies.cfg 49 #cfg_file=/etc/nagios2/escalations.cfg 50 cfg_file=/etc/nagios2/hostgroups.cfg 51 cfg_file=/etc/nagios2/hosts.cfg 52 cfg_file=/etc/nagios2/services.cfg 53 #cfg_file=/etc/nagios2/timeperiods.cfg 56 54 57 55 # Extended host/service info definitions are now stored along with 58 56 # other object definitions: 59 #cfg_file=/etc/nagios /hostextinfo.cfg60 #cfg_file=/etc/nagios /serviceextinfo.cfg57 #cfg_file=/etc/nagios2/hostextinfo.cfg 58 #cfg_file=/etc/nagios2/serviceextinfo.cfg 61 59 62 60 # You can also tell Nagios to process all config files (with a .cfg … … 64 62 # directive as shown below: 65 63 66 #cfg_dir=/etc/nagios /servers67 #cfg_dir=/etc/nagios /printers68 #cfg_dir=/etc/nagios /switches69 #cfg_dir=/etc/nagios /routers64 #cfg_dir=/etc/nagios2/servers 65 #cfg_dir=/etc/nagios2/printers 66 #cfg_dir=/etc/nagios2/switches 67 #cfg_dir=/etc/nagios2/routers 70 68 71 69 … … 78 76 # when the config files are modified after Nagios starts. 79 77 80 object_cache_file=/var/ log/nagios/objects.cache78 object_cache_file=/var/cache/nagios2/objects.cache 81 79 82 80 … … 91 89 # can be placed on this file. 92 90 93 resource_file=/etc/nagios /private/resource.cfg91 resource_file=/etc/nagios2/resource.cfg 94 92 95 93 … … 101 99 # restarts. 102 100 103 status_file=/var/ log/nagios/status.dat101 status_file=/var/cache/nagios2/status.dat 104 102 105 103 … … 159 157 # directory level instead of on the file, as the file is deleted every 160 158 # time its contents are processed. 161 162 command_file=/var/spool/nagios/cmd/nagios.cmd 159 # Debian Users: In case you didn't read README.Debian yet, _NOW_ is the 160 # time to do it. 161 162 command_file=/var/lib/nagios2/rw/nagios.cmd 163 163 164 164 … … 168 168 # comments. 169 169 170 comment_file=/var/l og/nagios/comments.dat170 comment_file=/var/lib/nagios2/comments.dat 171 171 172 172 … … 176 176 # downtime data. 177 177 178 downtime_file=/var/l og/nagios/downtime.dat178 downtime_file=/var/lib/nagios2/downtime.dat 179 179 180 180 … … 184 184 # in when it is running in daemon mode. 185 185 186 lock_file=/var/run/nagios .pid186 lock_file=/var/run/nagios2/nagios2.pid 187 187 188 188 … … 194 194 # running. 195 195 196 temp_file=/var/ log/nagios/nagios.tmp196 temp_file=/var/cache/nagios2/nagios.tmp 197 197 198 198 … … 241 241 # placed (assuming you've chosen to do log rotation). 242 242 243 log_archive_path=/var/log/nagios /archives243 log_archive_path=/var/log/nagios2/archives 244 244 245 245 … … 507 507 # variable is set to 1. 508 508 509 state_retention_file=/var/l og/nagios/retention.dat509 state_retention_file=/var/lib/nagios2/retention.dat 510 510 511 511 … … 639 639 # Values: 1 = process performance data, 0 = do not process performance data 640 640 641 #process_performance_data=0641 process_performance_data=0 642 642 643 643 … … 862 862 # Nagios with embedded Perl support, this option has no effect. 863 863 864 p1_file=/usr/ sbin/p1.pl864 p1_file=/usr/lib/nagios2/p1.pl 865 865 866 866 … … 951 951 952 952 953 process_performance_data=1954 service_perfdata_file=/home/noc/ng/log/perfdata955 service_perfdata_file_template=$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$956 service_perfdata_file_mode=a957 service_perfdata_file_processing_interval=60958 service_perfdata_file_processing_command=ng-service-perfdata953 #process_performance_data=1 954 #service_perfdata_file=/home/noc/ng/log/perfdata 955 #service_perfdata_file_template=$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$ 956 #service_perfdata_file_mode=a 957 #service_perfdata_file_processing_interval=60 958 #service_perfdata_file_processing_command=ng-service-perfdata 959 959 # EOF (End of file)
Note: See TracChangeset
for help on using the changeset viewer.