]> git.pld-linux.org Git - packages/nagios-nrpe.git/blob - commands.cfg
/etc/nagios/nrpe.d provided by nagios-common
[packages/nagios-nrpe.git] / commands.cfg
1 # COMMAND DEFINITIONS
2 # Command definitions that this daemon will run.  Definitions
3 # are in the following format:
4 #
5 # command[<command_name>]=<command_line>
6 #
7 # When the daemon receives a request to return the results of <command_name>
8 # it will execute the command specified by the <command_line> argument.
9 #
10 # Unlike Nagios, the command line cannot contain macros - it must be
11 # typed exactly as it should be executed.
12 #
13 # Note: Any plugins that are used in the command lines must reside
14 # on the machine that this daemon is running on!  The examples below
15 # assume that you have plugins installed in a /usr/local/nagios/libexec
16 # directory.  Also note that you will have to modify the definitions below
17 # to match the argument format the plugins expect.  Remember, these are
18 # examples only!
19
20
21 # The following examples use hardcoded command arguments...
22 # This is by far the most secure method of using NRPE
23
24 #command[check_users]=/usr/lib/nagios/check_users -w 5 -c 10
25 #command[check_load]=/usr/lib/nagios/check_load -r -w .15,.10,.05 -c .30,.25,.20
26 #command[check_hda1]=/usr/lib/nagios/check_disk -w 20% -c 10% -p /dev/hda1
27 #command[check_zombie_procs]=/usr/lib/nagios/check_procs -w 5 -c 10 -s Z
28 #command[check_total_procs]=/usr/lib/nagios/check_procs -w 150 -c 200
29
30 # The following examples allow user-supplied arguments and can
31 # only be used if the NRPE daemon was compiled with support for
32 # command arguments *AND* the dont_blame_nrpe directive in this
33 # config file is set to '1'.  This poses a potential security risk, so
34 # make sure you read the SECURITY file before doing this.
35
36 ### MISC SYSTEM METRICS ###
37 #command[check_users]=/usr/lib/nagios/check_users $ARG1$
38 #command[check_load]=/usr/lib/nagios/check_load $ARG1$
39 #command[check_disk]=/usr/lib/nagios/check_disk $ARG1$
40 #command[check_swap]=/usr/lib/nagios/check_swap $ARG1$
41 #command[check_cpu_stats]=/usr/lib/nagios/check_cpu_stats.sh $ARG1$
42 #command[check_mem]=/usr/lib/nagios/custom_check_mem -n $ARG1$
43
44 ### GENERIC SERVICES ###
45 #command[check_init_service]=sudo /usr/lib/nagios/check_init_service $ARG1$
46 #command[check_services]=/usr/lib/nagios/check_services -p $ARG1$
47
48 ### SYSTEM UPDATES ###
49 #command[check_yum]=/usr/lib/nagios/check_yum
50 #command[check_apt]=/usr/lib/nagios/check_apt
51
52 ### PROCESSES ###
53 #command[check_all_procs]=/usr/lib/nagios/custom_check_procs
54 #command[check_procs]=/usr/lib/nagios/check_procs $ARG1$
55
56 ### OPEN FILES ###
57 #command[check_open_files]=/usr/lib/nagios/check_open_files.pl $ARG1$
58
59 ### NETWORK CONNECTIONS ###
60 #command[check_netstat]=/usr/lib/nagios/check_netstat.pl -p $ARG1$ $ARG2$
61
62 ### ASTERISK ###
63 #command[check_asterisk]=/usr/lib/nagios/check_asterisk.pl $ARG1$
64 #command[check_sip]=/usr/lib/nagios/check_sip $ARG1$
65 #command[check_asterisk_sip_peers]=sudo /usr/lib/nagios/check_asterisk_sip_peers.sh $ARG1$
66 #command[check_asterisk_version]=/usr/lib/nagios/nagisk.pl -c version
67 #command[check_asterisk_peers]=/usr/lib/nagios/nagisk.pl -c peers
68 #command[check_asterisk_channels]=/usr/lib/nagios/nagisk.pl -c channels 
69 #command[check_asterisk_zaptel]=/usr/lib/nagios/nagisk.pl -c zaptel 
70 #command[check_asterisk_span]=/usr/lib/nagios/nagisk.pl -c span -s 1
This page took 0.063004 seconds and 3 git commands to generate.