Changeset 716
- Timestamp:
- Apr 7, 2008, 6:56:45 AM (17 years ago)
- Location:
- noc/nagios
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
noc/nagios/checkcommands.cfg
r429 r716 34 34 ################################################################################ 35 35 36 37 38 39 ################################################################################40 #41 # SAMPLE SERVICE CHECK COMMANDS42 #43 # These are some example service check commands. They may or may not work on44 # your system, as they must be modified for your plugins. See the HTML45 # documentation on the plugins for examples of how to configure command definitions.46 #47 ################################################################################48 49 50 # 'check_dns' command definition51 define command{52 command_name check_dns53 command_line $USER1$/check_dns -H www.yahoo.com -s $HOSTADDRESS$54 }55 56 57 # 'check_ftp' command definition58 define command{59 command_name check_ftp60 command_line $USER1$/check_ftp -H $HOSTADDRESS$61 }62 63 64 # 'check_hpjd' command definition65 define command{66 command_name check_hpjd67 command_line $USER1$/check_hpjd -H $HOSTADDRESS$ -C public68 }69 70 71 # 'check_http' command definition72 define command{73 command_name check_http74 command_line $USER1$/check_http -H $HOSTADDRESS$75 }76 36 77 37 # 'check_http_heartbeat' command definition … … 115 75 } 116 76 117 118 # 'check_nntp' command definition119 define command{120 command_name check_nntp121 command_line $USER1$/check_nntp -H $HOSTADDRESS$122 }123 124 125 # 'check_ping' command definition126 define command{127 command_name check_ping128 command_line $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5129 }130 131 132 # 'check_pop' command definition133 define command{134 command_name check_pop135 command_line $USER1$/check_pop -H $HOSTADDRESS$136 }137 138 139 # 'check_smtp' command definition140 define command{141 command_name check_smtp142 command_line $USER1$/check_smtp -H $HOSTADDRESS$143 }144 145 146 # 'check_tcp' command definition147 define command{148 command_name check_tcp149 command_line $USER1$/check_tcp -H $HOSTADDRESS$ -p $ARG1$150 }151 152 153 # 'check_telnet' command definition154 define command{155 command_name check_telnet156 command_line $USER1$/check_tcp -H $HOSTADDRESS$ -p 23157 }158 159 160 # 'check_udp' command definition161 define command{162 command_name check_udp163 command_line $USER1$/check_udp -H $HOSTADDRESS$ -p $ARG1$164 }165 166 167 168 169 77 ################################################################################ 170 78 # … … 185 93 # } 186 94 187 define command{ 188 command_name check-host-alive 189 command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 99,99% -c 100,100% -p 1 190 } 191 192 define command { 193 command_name check_ssh 194 command_line $USER1$/check_ssh $HOSTADDRESS$ 195 } 95 #define command{ 96 # command_name check-host-alive 97 # command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 99,99% -c 100,100% -p 1 98 # } 196 99 197 100 define command { … … 251 154 252 155 define command { 253 command_name check_mysql254 command_line $USER1$/check_mysql -H $HOSTADDRESS$ -a $USER3$ $USER4$255 }256 257 define command {258 156 command_name check_remote_mysql 259 157 command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_mysql -a $USER3$ $USER4$ -
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.