summaryrefslogtreecommitdiffstats
path: root/command.cfg.in
diff options
context:
space:
mode:
Diffstat (limited to 'command.cfg.in')
-rw-r--r--command.cfg.in65
1 files changed, 51 insertions, 14 deletions
diff --git a/command.cfg.in b/command.cfg.in
index 4ccb26c..adf6306 100644
--- a/command.cfg.in
+++ b/command.cfg.in
@@ -50,12 +50,12 @@ command[host-notify-by-epager]=/bin/echo '$HOSTALIAS$ is $HOSTSTATE$!' | /bin/ma
50command[check_tcp]=@libexecdir@/check_tcp -H $HOSTADDRESS$ -p $ARG1$ 50command[check_tcp]=@libexecdir@/check_tcp -H $HOSTADDRESS$ -p $ARG1$
51command[check_udp]=@libexecdir@/check_udp -H $HOSTADDRESS$ -p $ARG1$ 51command[check_udp]=@libexecdir@/check_udp -H $HOSTADDRESS$ -p $ARG1$
52command[check_ftp]=@libexecdir@/check_ftp -H $HOSTADDRESS$ 52command[check_ftp]=@libexecdir@/check_ftp -H $HOSTADDRESS$
53command[check_pop]=@libexecdir@/check_pop $HOSTADDRESS$ 53command[check_pop]=@libexecdir@/check_pop -H $HOSTADDRESS$
54command[check_smtp]=@libexecdir@/check_smtp $HOSTADDRESS$ 54command[check_smtp]=@libexecdir@/check_smtp -H $HOSTADDRESS$
55command[check_nntp]=@libexecdir@/check_nntp $HOSTADDRESS$ 55command[check_nntp]=@libexecdir@/check_nntp -H $HOSTADDRESS$
56command[check_telnet]=@libexecdir@/check_tcp -H $HOSTADDRESS$ -p 23 56command[check_telnet]=@libexecdir@/check_tcp -H $HOSTADDRESS$ -p 23
57command[check_users]=@libexecdir@/check_users $ARG1$ $ARG2$ 57command[check_users]=@libexecdir@/check_users -w $ARG1$ -c $ARG2$
58command[check_hpjd]=@libexecdir@/check_hpjd $HOSTADDRESS$ public 58command[check_hpjd]=@libexecdir@/check_hpjd -H $HOSTADDRESS$ -C public
59command[check_mrtg]=@libexecdir@/check_mrtg $ARG1$ 10 AVG $ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$ 59command[check_mrtg]=@libexecdir@/check_mrtg $ARG1$ 10 AVG $ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$
60command[traffic_average]=@libexecdir@/check_mrtgtraf $ARG1$ 10 AVG $ARG2$ $ARG3$ $ARG4$ $ARG5$ 60command[traffic_average]=@libexecdir@/check_mrtgtraf $ARG1$ 10 AVG $ARG2$ $ARG3$ $ARG4$ $ARG5$
61command[check_load]=@libexecdir@/check_load $ARG1$ $ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$ 61command[check_load]=@libexecdir@/check_load $ARG1$ $ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$
@@ -92,7 +92,7 @@ command[snmp_swap]=@libexecdir@/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o .1.3.6.
92 92
93# 93#
94# Slightly more generic SNMP OIDs 94# Slightly more generic SNMP OIDs
95# 95# note: using partial textual OIDs here - use numeric oids if you don't have MIBDIRS defined per Net-SNMP (net-snmp.org)
96 96
97command[snmp_procs]=@libexecdir@/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o host.hrSystem.hrSystemProcesses -w :$ARG2$ -c :$ARG3$ -l processes 97command[snmp_procs]=@libexecdir@/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o host.hrSystem.hrSystemProcesses -w :$ARG2$ -c :$ARG3$ -l processes
98 98
@@ -112,6 +112,43 @@ command[snmp_tcpopen]=@libexecdir@/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o tcp.
112 112
113command[snmp_tcpstats]=@libexecdir@/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o tcp.tcpActiveOpens.0,tcp.tcpPassiveOpens.0,tcp.tcpInSegs.0,tcp.tcpOutSegs.0,tcp.tcpRetransSegs.0 -l 'TCP stats' 113command[snmp_tcpstats]=@libexecdir@/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o tcp.tcpActiveOpens.0,tcp.tcpPassiveOpens.0,tcp.tcpInSegs.0,tcp.tcpOutSegs.0,tcp.tcpRetransSegs.0 -l 'TCP stats'
114 114
115
116# Some snmp based network device checks (requires Net::SNMP perl module)
117
118# check all admin-up interfaces
119command[check_ifstatus]=@libexecdir@/check_ifstatus -H $HOSTADDRESS$ -C public
120
121# check particular interface by snmp ifIndex key
122command[check_ifoperstatus]=@libexecdir@/check_ifoperstatus -H $HOSTADDRESS$ -C public -k $ARG1$
123
124# check particular interface by snmp ifDescr value (verify uniqueness before using)
125command[check_ifoperstatus]=@libexecdir@/check_ifoperstatus -H $HOSTADDRESS$ -C public -d $ARG1$
126
127# verify all you BGP session on a device are running (only returns warning due to some hardcoded option - to be fixed soon)
128command[check_snmp_bgpstate]=@libexecdir@/check_bgpstate -H $HOSTADDRESS$ -C public
129
130#
131# SNMP NetApp checks (Jason Truong)
132#
133#
134#command[check_netapp_uptime]=@libexecdir@/check_snmp -H $HOSTADDRESS$ -C public -o .1.3.6.1.2.1.1.3.0 --delimiter=')' -l "Uptime is"
135#
136#command[check_netapp_cpuload]=@libexecdir@/check_snmp -H $HOSTADDRESS$ -C public -o .1.3.6.1.4.1.789.1.2.1.3.0 -w 90 -c 95 -u '%' -l "CPU LOAD "
137#
138#command[check_netapp_numdisks]=@libexecdir@/check_snmp -H $HOSTADDRESS$ -C public -o .1.3.6.1.4.1.789.1.6.4.1.0,.1.3.6.1.4.1.789.1.6.4.2.0,.1.3.6.1.4.1.789.1.6.4.8.0,.1.3.6.1.4.1.789.1.6.4.7.0 -u 'Total Disks','Active','Spare','Failed' -l ""
139#
140
141#
142# SNMP Compaq Insight Agent (oids courtesy of vol)
143#
144# the following 4 return the following codes: other=1, ok=2, degraded=3, failed=4
145#
146#command[check_compaq_thermalCondition]=@libexec@/check_snmp -H $HOSTADDRESS$ -C public -o .1.3.6.1.4.1.232.6.2.1.0,.1.3.6.1.4.1.232.6.2.2.0,.1.3.6.1.4.1.232.6.2.3.0,.1.3.6.1.4.1.232.6.2.4.0 -u 'ThermalCondition','ThermalTemp','ThermalSystem','ThermalCPUFan' -w 2:2,2:2,2:2,2:2 -c 1:2,1:2,1:2,1:2 -l "Thermal status "
147#
148#
149
150
151
115# This command checks to see if a host is "alive" by pinging it. The 152# This command checks to see if a host is "alive" by pinging it. The
116# check must result in a 100% packet loss or 5 second (5000ms) round 153# check must result in a 100% packet loss or 5 second (5000ms) round
117# trip average to produce an error. 154# trip average to produce an error.
@@ -135,12 +172,12 @@ command[check-fast-alive]=@libexecdir@/check_fping -H $HOSTADDRESS$
135command[check-imap]=@libexecdir@/check_imap $HOSTADDRESS$ 172command[check-imap]=@libexecdir@/check_imap $HOSTADDRESS$
136 173
137# Check RPC services 174# Check RPC services
138command[check-rpc]=@libexecdir@/check_rpc -H $HOSTADDRESS$ $ARG1$ 175command[check-rpc]=@libexecdir@/check_rpc -H $HOSTADDRESS$ -C $ARG1$
139 176
140# Check if the NFS server is running 177# Check if the NFS server is running (version 2 and version 3)
141command[check-nfs]=@libexecdir@/check_rpc -H $HOSTADDRESS$ nfs 178command[check-nfs]=@libexecdir@/check_rpc -H $HOSTADDRESS$ -C nfs -c2,3
142 179
143# Check game servers 180# Check game servers/bin/ps -axo 'stat uid ppid comm args'
144command[check_quake]=@libexecdir@/check_game qs $HOSTADDRESS$ 181command[check_quake]=@libexecdir@/check_game qs $HOSTADDRESS$
145command[check_unreal]=@libexecdir@/check_game uns $HOSTADDRESS$ -p $ARG1$ -pf 8 182command[check_unreal]=@libexecdir@/check_game uns $HOSTADDRESS$ -p $ARG1$ -pf 8
146 183
@@ -162,12 +199,12 @@ command[check_nmap_opt_range]=@libexecdir@/check_nmap -H $HOSTADDRESS$ -t 60 -p
162command[check_radius]=@libexecdir@/check_radius $ARG1$ $ARG2$ $HOSTADDRESS$ 1812 $ARG3$ 199command[check_radius]=@libexecdir@/check_radius $ARG1$ $ARG2$ $HOSTADDRESS$ 1812 $ARG3$
163 200
164 201
165# Check Reply 202# Check HTTP proxy
166# This is a command for checking squid proxy servers which uses check 203# This is a command for checking squid or other proxy servers which uses check
167# reply to ensure an HTTP 200 comes back ..... i.e. squid actually 204# http to ensure an HTTP 200 comes back ..... i.e. squid actually
168# serves the page and not an error message. 205# serves the page and not an error message.
169 206
170command[check_squid]=@libexecdir@/check_reply $HOSTADDRESS$ -p $ARG1$ -s 'GET $ARG2$ HTTP/1.0\n\n' -e 'HTTP/1.0 200 OK' 207command[check_squid]=@libexecdir@/check_http -H $HOSTADDRESS$ -p $ARG1$ -u $ARG2$ -e 'HTTP/1.0 200 OK'
171 208
172 209
173## Check RealAudio url 210## Check RealAudio url