source: trunk/noc/nagios/checkcommands.cfg @ 1271

Last change on this file since 1271 was 1271, checked in by mitchb, 15 years ago
Monitor LDAP multi-master replication status on scripts webservers
File size: 6.0 KB
RevLine 
[48]1################################################################################
2# Sample object config file for Nagios
3#
4# Read the documentation for more information on this configuration file.  I've
5# provided some comments here, but things may not be so clear without further
6# explanation, so make sure to read the HTML documentation!
7#
8# Last Modified: 12-15-2005
9#
10################################################################################
11
12
13################################################################################
14# COMMAND DEFINITIONS
15#
16# SYNTAX:
17#
18#       define command{
19#               template      <templatename>
20#               name          <objectname>
21#               command_name  <commandname>
22#               command_line  <commandline>
23#               }
24#
25# WHERE:
26#
27# <templatename> = object name of another command definition that should be
28#                  used as a template for this definition (optional)
29# <objectname>   = object name of command definition, referenced by other
30#                  command definitions that use it as a template (optional)
31# <commandname>  = name of the command, as recognized/used by Nagios
32# <commandline>  = command line
33#
34################################################################################
35
[429]36# 'check_http_heartbeat' command definition
37define command{
38       command_name     check_http_heartbeat
39       command_line     $USER1$/check_http -H $HOSTADDRESS$ -u /heartbeat/http -s 1
40       }
[48]41
[429]42# 'check_https_cert' command definition
43define command{
44       command_name     check_https_cert
[896]45       command_line     $USER1$/check_https -H $HOSTADDRESS$ -S -C $ARG1$
[429]46       }
47
[896]48# 'check_https_cert' command definition
49define command{
50       command_name     check_https_cert_444
51       command_line     $USER1$/check_https -H $HOSTADDRESS$ -p 444 -S -C $ARG1$
52       }
53
[48]54# 'check_local_disk' command definition
55define command{
56        command_name    check_local_disk
57        command_line    $USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
58        }
59
60
61# 'check_local_load' command definition
62define command{
63        command_name    check_local_load
64        command_line    $USER1$/check_load -w $ARG1$ -c $ARG2$
65        }
66
67
68# 'check_local_procs' command definition
69define command{
70        command_name    check_local_procs
71        command_line    $USER1$/check_procs -w $ARG1$ -c $ARG2$
72        }
73#command_line    $USER1$/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$
74
75
76# 'check_local_users' command definition
77define command{
78        command_name    check_local_users
79        command_line    $USER1$/check_users -w $ARG1$ -c $ARG2$
80        }
81
82################################################################################
83#
84# SAMPLE HOST CHECK COMMANDS
85#
86################################################################################
87
88
89# This command checks to see if a host is "alive" by pinging it
90# The check must result in a 100% packet loss or 5 second (5000ms) round trip
91# average time to produce a critical error.
92# Note: Only one ICMP echo packet is sent (determined by the '-p 1' argument)
93
94# 'check-host-alive' command definition
95#define command{
96#        command_name    check-host-alive
97#        command_line    $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 1
98#        }
99
[716]100#define command{
101#        command_name    check-host-alive
102#        command_line    $USER1$/check_ping -H $HOSTADDRESS$ -w 99,99% -c 100,100% -p 1
103#        }
[48]104
105define command {
[1055]106        command_name    check_nrpe_alive
107        command_line    $USER1$/check_nrpe -H $HOSTADDRESS$
108}
109
110define command {
[48]111        command_name    check_remote_users
[1106]112        command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_users -a $ARG1$ $ARG2$
[48]113}
114
115define command {
116        command_name    check_remote_load
[1106]117        command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_load -a $ARG1$ $ARG2$
[48]118}
119
120define command {
121        command_name    check_remote_disk
[1106]122        command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_disk -a $ARG1$ $ARG2$
[48]123}
124
125define command {
126        command_name    check_remote_disk_p
[1106]127        command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_disk_p -a $ARG1$ $ARG2$ $ARG3$
[48]128}
129
130define command {
131        command_name    check_remote_procs
[1106]132        command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_procs -a $ARG1$ $ARG2$
[48]133}
134
135define command {
136        command_name    check_remote_procs_C
[1106]137        command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_procs_C -a $ARG1$ $ARG2$ $ARG3$
[48]138}
139
140define command {
141        command_name    check_remote_procs_P
[1106]142        command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_procs_P -a $ARG1$ $ARG2$ $ARG3$
[48]143}
144
145define command {
146        command_name    check_remote_procs_m
[1106]147        command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_procs_m -a $ARG1$ $ARG2$ $ARG3$
[48]148}
149
150define command {
151        command_name    check_remote_procs_s
[1106]152        command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_procs_s -a $ARG1$ $ARG2$ $ARG3$
[48]153}
154
155define command {
156        command_name    check_remote_procs_u
[1106]157        command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_procs_u -a $ARG1$ $ARG2$ $ARG3$
[48]158}
159
160define command {
161        command_name    check_remote_procs_z
[1106]162        command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_procs_z -a $ARG1$ $ARG2$ $ARG3$
[48]163}
164
165define command {
166        command_name    check_remote_mysql
[1106]167        command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_mysql -a $USER3$ $USER4$
[48]168}
169
170define command {
171        command_name    check_remote_mysql_slave
[1106]172        command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_mysql_S -a $USER3$ $USER4$
[48]173}
[896]174
175define command {
176        command_name    check_remote_afs
[1106]177        command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_afs
[896]178}
179
180define command {
[991]181        command_name    check_remote_cron_working
[1106]182        command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_cron_working
[991]183}
184
185define command {
[1271]186        command_name    check_remote_ldap_mmr
187        command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -u -c check_ldap_mmr
188}
189
190define command {
[896]191    command_name    check_scripts_ldap
192    command_line    $USER1$/check_ldap -H $HOSTADDRESS$ -b dc=scripts,dc=mit,dc=edu
193}
[900]194
195define command {
196        command_name    check_svn
197        command_line    $USER5$/check_svn -H $HOSTNAME$ -T
198}
[1076]199
200define command {
201        command_name    check_dns_server
202        command_line    /usr/lib/nagios/plugins/check_dns -H $ARG1$ -s '$HOSTADDRESS$'
203}
Note: See TracBrowser for help on using the repository browser.