Changeset 1106
- Timestamp:
- Apr 29, 2009, 1:28:12 PM (15 years ago)
- Location:
- noc/nagios
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
noc/nagios/checkcommands.cfg
r1090 r1106 110 110 define command { 111 111 command_name check_remote_users 112 command_line $USER1$/check_nrpe -H $HOSTADDRESS$ - c check_users -a $ARG1$ $ARG2$112 command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_users -a $ARG1$ $ARG2$ 113 113 } 114 114 115 115 define command { 116 116 command_name check_remote_load 117 command_line $USER1$/check_nrpe -H $HOSTADDRESS$ - c check_load -a $ARG1$ $ARG2$117 command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_load -a $ARG1$ $ARG2$ 118 118 } 119 119 120 120 define command { 121 121 command_name check_remote_disk 122 command_line $USER1$/check_nrpe -H $HOSTADDRESS$ - c check_disk -a $ARG1$ $ARG2$122 command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_disk -a $ARG1$ $ARG2$ 123 123 } 124 124 125 125 define command { 126 126 command_name check_remote_disk_p 127 command_line $USER1$/check_nrpe -H $HOSTADDRESS$ - c check_disk_p -a $ARG1$ $ARG2$ $ARG3$127 command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_disk_p -a $ARG1$ $ARG2$ $ARG3$ 128 128 } 129 129 130 130 define command { 131 131 command_name check_remote_procs 132 command_line $USER1$/check_nrpe -H $HOSTADDRESS$ - c check_procs -a $ARG1$ $ARG2$132 command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_procs -a $ARG1$ $ARG2$ 133 133 } 134 134 135 135 define command { 136 136 command_name check_remote_procs_C 137 command_line $USER1$/check_nrpe -H $HOSTADDRESS$ - c check_procs_C -a $ARG1$ $ARG2$ $ARG3$137 command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_procs_C -a $ARG1$ $ARG2$ $ARG3$ 138 138 } 139 139 140 140 define command { 141 141 command_name check_remote_procs_P 142 command_line $USER1$/check_nrpe -H $HOSTADDRESS$ - c check_procs_P -a $ARG1$ $ARG2$ $ARG3$142 command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_procs_P -a $ARG1$ $ARG2$ $ARG3$ 143 143 } 144 144 145 145 define command { 146 146 command_name check_remote_procs_m 147 command_line $USER1$/check_nrpe -H $HOSTADDRESS$ - c check_procs_m -a $ARG1$ $ARG2$ $ARG3$147 command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_procs_m -a $ARG1$ $ARG2$ $ARG3$ 148 148 } 149 149 150 150 define command { 151 151 command_name check_remote_procs_s 152 command_line $USER1$/check_nrpe -H $HOSTADDRESS$ - c check_procs_s -a $ARG1$ $ARG2$ $ARG3$152 command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_procs_s -a $ARG1$ $ARG2$ $ARG3$ 153 153 } 154 154 155 155 define command { 156 156 command_name check_remote_procs_u 157 command_line $USER1$/check_nrpe -H $HOSTADDRESS$ - c check_procs_u -a $ARG1$ $ARG2$ $ARG3$157 command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_procs_u -a $ARG1$ $ARG2$ $ARG3$ 158 158 } 159 159 160 160 define command { 161 161 command_name check_remote_procs_z 162 command_line $USER1$/check_nrpe -H $HOSTADDRESS$ - c check_procs_z -a $ARG1$ $ARG2$ $ARG3$162 command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_procs_z -a $ARG1$ $ARG2$ $ARG3$ 163 163 } 164 164 165 165 define command { 166 166 command_name check_remote_mysql 167 command_line $USER1$/check_nrpe -H $HOSTADDRESS$ - c check_mysql -a $USER3$ $USER4$167 command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_mysql -a $USER3$ $USER4$ 168 168 } 169 169 170 170 define command { 171 171 command_name check_remote_mysql_slave 172 command_line $USER1$/check_nrpe -H $HOSTADDRESS$ - c check_mysql_S -a $USER3$ $USER4$172 command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_mysql_S -a $USER3$ $USER4$ 173 173 } 174 174 175 175 define command { 176 176 command_name check_remote_afs 177 command_line $USER1$/check_nrpe -H $HOSTADDRESS$ - c check_afs177 command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_afs 178 178 } 179 179 180 180 define command { 181 181 command_name check_remote_cron_working 182 command_line $USER1$/check_nrpe -H $HOSTADDRESS$ - c check_cron_working182 command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_cron_working 183 183 } 184 184 -
noc/nagios/services.cfg
r1074 r1106 13 13 14 14 define service { 15 name scripts-nrpe-service 16 use scripts-service 17 notification_options w,c,r 18 register 0 19 } 20 21 define service { 15 22 use scripts-service 16 23 hostgroup_name scripts-all … … 99 106 100 107 define service { 101 use scripts- service108 use scripts-nrpe-service 102 109 hostgroup_name scripts-mail 103 110 service_description POSTFIX … … 105 112 } 106 113 107 define servicedependency {108 hostgroup_name scripts-mail109 service_description NRPE110 dependent_service_description POSTFIX111 execution_failure_criteria n112 notification_failure_criteria w,u,c113 }114 115 114 define service { 116 115 use scripts-service … … 132 131 133 132 define service { 134 use scripts- service133 use scripts-nrpe-service 135 134 hostgroup_name scripts-user 136 135 service_description NSCD … … 139 138 140 139 define service { 141 use scripts- service140 use scripts-nrpe-service 142 141 hostgroup_name scripts-user 143 142 service_description AFS … … 146 145 147 146 define service { 148 use scripts- service147 use scripts-nrpe-service 149 148 hostgroup_name scripts-user 150 149 service_description CRON-WORKING … … 154 153 155 154 define service { 156 use scripts- service155 use scripts-nrpe-service 157 156 hostgroup_name scripts-user 158 157 service_description USERS 159 158 check_command check_remote_users!50!25 160 }161 162 define servicedependency {163 hostgroup_name scripts-user164 service_description NRPE165 dependent_service_description NSCD,AFS,USERS,CRON-WORKING166 execution_failure_criteria n167 notification_failure_criteria w,u,c168 159 } 169 160 … … 191 182 192 183 define service { 193 use scripts- service184 use scripts-nrpe-service 194 185 hostgroup_name scripts-cron 195 186 service_description CRON … … 197 188 } 198 189 199 define servicedependency {200 hostgroup_name scripts-cron201 service_description NRPE202 dependent_service_description CRON203 execution_failure_criteria n204 notification_failure_criteria w,u,c205 }206 207 190 define service { 208 191 use scripts-service … … 213 196 214 197 define service { 215 use scripts- service198 use scripts-nrpe-service 216 199 hostgroup_name scripts-real 217 200 service_description DISK … … 219 202 } 220 203 221 define servicedependency { 222 hostgroup_name scripts-real 223 service_description NRPE 224 dependent_service_description DISK 225 execution_failure_criteria n 226 notification_failure_criteria w,u,c 227 } 228 229 define service { 230 use scripts-service 231 host_name b-m,o-f 204 define service { 205 use scripts-nrpe-service 206 hostgroup_name scripts-user 232 207 service_description LOAD 233 208 check_command check_remote_load!50:50:50!100:50:50 234 209 } 235 210 236 define servicedependency { 237 host_name b-m,o-f 238 service_description NRPE 239 dependent_service_description LOAD 240 execution_failure_criteria n 241 notification_failure_criteria w,u,c 242 } 243 244 define service { 245 use scripts-service 211 define service { 212 use scripts-nrpe-service 246 213 hostgroup_name mysql-masters,mysql-slaves 247 214 service_description LOAD … … 268 235 269 236 define service { 270 use scripts- service237 use scripts-nrpe-service 271 238 hostgroup_name mysql-masters 272 239 service_description MYSQL-M … … 276 243 277 244 define service { 278 use scripts- service245 use scripts-nrpe-service 279 246 hostgroup_name mysql-slaves 280 247 service_description MYSQL-S … … 284 251 285 252 define service { 286 use scripts- service287 host _name b-m,o-f,b-k253 use scripts-nrpe-service 254 hostgroup_name scripts-user 288 255 service_description CPU 289 256 notifications_enabled 0 290 257 check_command check_remote_procs_P!4!6!50 291 258 } 292 define servicedependency {293 hostgroup_name scripts-user294 service_description NRPE295 dependent_service_description CPU296 execution_failure_criteria n297 notification_failure_criteria w,u,c298 }
Note: See TracChangeset
for help on using the changeset viewer.