source: noc/nagios/checkcommands.cfg @ 879

Last change on this file since 879 was 716, checked in by quentin, 17 years ago
Update Nagios configuration to run on Debian's nagios2
File size: 4.9 KB
Line 
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
36
37# 'check_http_heartbeat' command definition
38define command{
39       command_name     check_http_heartbeat
40       command_line     $USER1$/check_http -H $HOSTADDRESS$ -u /heartbeat/http -s 1
41       }
42
43# 'check_https_cert' command definition
44define command{
45       command_name     check_https_cert
46       command_line     $USER1$/check_http -H $HOSTADDRESS$ -S -C $ARG1$
47       }
48
49# 'check_local_disk' command definition
50define command{
51        command_name    check_local_disk
52        command_line    $USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
53        }
54
55
56# 'check_local_load' command definition
57define command{
58        command_name    check_local_load
59        command_line    $USER1$/check_load -w $ARG1$ -c $ARG2$
60        }
61
62
63# 'check_local_procs' command definition
64define command{
65        command_name    check_local_procs
66        command_line    $USER1$/check_procs -w $ARG1$ -c $ARG2$
67        }
68#command_line    $USER1$/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$
69
70
71# 'check_local_users' command definition
72define command{
73        command_name    check_local_users
74        command_line    $USER1$/check_users -w $ARG1$ -c $ARG2$
75        }
76
77################################################################################
78#
79# SAMPLE HOST CHECK COMMANDS
80#
81################################################################################
82
83
84# This command checks to see if a host is "alive" by pinging it
85# The check must result in a 100% packet loss or 5 second (5000ms) round trip
86# average time to produce a critical error.
87# Note: Only one ICMP echo packet is sent (determined by the '-p 1' argument)
88
89# 'check-host-alive' command definition
90#define command{
91#        command_name    check-host-alive
92#        command_line    $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 1
93#        }
94
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#        }
99
100define command {
101        command_name    check_remote_users
102        command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_users -a $ARG1$ $ARG2$
103}
104
105define command {
106        command_name    check_remote_load
107        command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_load -a $ARG1$ $ARG2$
108}
109
110define command {
111        command_name    check_remote_disk
112        command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_disk -a $ARG1$ $ARG2$
113}
114
115define command {
116        command_name    check_remote_disk_p
117        command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_disk_p -a $ARG1$ $ARG2$ $ARG3$
118}
119
120define command {
121        command_name    check_remote_procs
122        command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_procs -a $ARG1$ $ARG2$
123}
124
125define command {
126        command_name    check_remote_procs_C
127        command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_procs_C -a $ARG1$ $ARG2$ $ARG3$
128}
129
130define command {
131        command_name    check_remote_procs_P
132        command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_procs_P -a $ARG1$ $ARG2$ $ARG3$
133}
134
135define command {
136        command_name    check_remote_procs_m
137        command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_procs_m -a $ARG1$ $ARG2$ $ARG3$
138}
139
140define command {
141        command_name    check_remote_procs_s
142        command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_procs_s -a $ARG1$ $ARG2$ $ARG3$
143}
144
145define command {
146        command_name    check_remote_procs_u
147        command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_procs_u -a $ARG1$ $ARG2$ $ARG3$
148}
149
150define command {
151        command_name    check_remote_procs_z
152        command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_procs_z -a $ARG1$ $ARG2$ $ARG3$
153}
154
155define command {
156        command_name    check_remote_mysql
157        command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_mysql -a $USER3$ $USER4$
158}
159
160define command {
161        command_name    check_remote_mysql_slave
162        command_line    $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_mysql_S -a $USER3$ $USER4$
163}
Note: See TracBrowser for help on using the repository browser.