41 lines
2.0 KiB
INI
41 lines
2.0 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 20% -c 10% -p /
|
|
command[check_disk_docker]=sudo /usr/lib/nagios/plugins/check_disk -w 15% -c 10% -p /var/lib/docker/volumes
|
|
command[check_load]=/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20
|
|
command[check_procs]=/usr/lib/nagios/plugins/check_procs -w 275 -c 350
|
|
command[check_zombie_procs]=/usr/lib/nagios/plugins/check_procs -w 1 -c 10 -s Z
|
|
command[check_users]=/usr/lib/nagios/plugins/check_users -w 1 -c 5
|