40 lines
1.9 KiB
INI
40 lines
1.9 KiB
INI
# COMMAND DEFINITIONS
|
|
#
|
|
# Command definitions that this daemon will run. Definitions
|
|
# are in the following format:
|
|
#
|
|
# command[<command_name>]=<command_line>
|
|
#
|
|
# When the daemon receives a request to return the results of <command_name>
|
|
# it will execute the command specified by the <command_line> argument.
|
|
|
|
# Below are some examples using static arguments:
|
|
#
|
|
# command[check_hda1]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p /dev/hda1
|
|
# command[check_load]=/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20
|
|
# command[check_total_procs]=/usr/lib/nagios/plugins/check_procs -w 150 -c 200
|
|
# command[check_users]=/usr/lib/nagios/plugins/check_users -w 5 -c 10
|
|
# command[check_zombie_procs]=/usr/lib/nagios/plugins/check_procs -w 5 -c 10 -s Z
|
|
|
|
# If you enable command argument processing (dont_blame_nrpe, above) you may
|
|
# include variables in the command definition that will be substituted for the
|
|
# values given by the client. Variables have the format $varname$, and are
|
|
# compatible with NRPE or Nagios arguments of the form $ARGn$.
|
|
#
|
|
# Here are some examples using argument passing, with NRPE-compatible names:
|
|
#
|
|
# command[check_disk]=/usr/lib/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
|
|
# command[check_load]=/usr/lib/nagios/plugins/check_load -w $ARG1$ -c $ARG2$
|
|
# command[check_procs]=/usr/lib/nagios/plugins/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$
|
|
# command[check_users]=/usr/lib/nagios/plugins/check_users -w $ARG1$ -c $ARG2$
|
|
#
|
|
# And here are the same examples using arbitrary variable names:
|
|
#
|
|
|
|
command[check_proc_docker]=/usr/lib/nagios/plugins/check_procs -c 1:1 -C dockerd
|
|
command[check_disk]=/usr/lib/nagios/plugins/check_disk -w $warn$ -c $crit$ -p $path$
|
|
command[check_load]=/usr/lib/nagios/plugins/check_load -w $warn$ -c $crit$
|
|
command[check_procs]=/usr/lib/nagios/plugins/check_procs -w $warn$ -c $crit$ -s $state$
|
|
command[check_users]=/usr/lib/nagios/plugins/check_users -w $warn$ -c $crit$
|
|
|