Merge pull request #5363 from ruzickap/master

Update missing description attributes for ITL CheckCommand definitions
This commit is contained in:
Michael Friedrich 2017-06-20 19:07:50 +02:00 committed by GitHub
commit 096f19b42c
3 changed files with 142 additions and 69 deletions

View File

@ -25,35 +25,53 @@ template CheckCommand "snmp-manubulon-command" {
import "ipv4-or-ipv6" import "ipv4-or-ipv6"
arguments = { arguments = {
"-H" = "$snmp_address$" "-H" = {
value = "$snmp_address$"
description = "Name or IP address of host to check"
}
"-C" = { "-C" = {
set_if = "$snmp_nocrypt$" set_if = "$snmp_nocrypt$"
value = "$snmp_community$" value = "$snmp_community$"
description = "Community name for the host's SNMP agent (implies v1 protocol)"
}
"-p" = {
value = "$snmp_port$"
description = "SNMP port (Default 161)"
} }
"-p" = "$snmp_port$"
"-2" = { "-2" = {
set_if = "$snmp_v2$" set_if = "$snmp_v2$"
description = "Use snmp v2c"
} }
"-l" = { "-l" = {
set_if = "$snmp_v3$" set_if = "$snmp_v3$"
value = "$snmp_login$" value = "$snmp_login$"
description = "Login and auth password for snmpv3 authentication"
} }
"-x" = { "-x" = {
set_if = "$snmp_v3$" set_if = "$snmp_v3$"
value = "$snmp_password$" value = "$snmp_password$"
description = "Priv password"
} }
"-L" = { "-L" = {
set_if = "$snmp_v3_use_authprotocol$" set_if = "$snmp_v3_use_authprotocol$"
value = "$snmp_authprotocol$" value = "$snmp_authprotocol$"
description = "<authproto>,<privproto> - <Authentication protocol (md5|sha : default md5)>,<Priv protocole (des|aes : default des)>"
} }
"-X" = { "-X" = {
set_if = "$snmp_v3_use_privpass$" set_if = "$snmp_v3_use_privpass$"
value = "$snmp_privpass$" value = "$snmp_privpass$"
description = "Priv password for snmpv3 (AuthPriv protocol)"
}
"-w" = {
value = "$snmp_warn$"
}
"-c" = {
value = "$snmp_crit$"
}
"-t" = {
value = "$snmp_timeout$"
description = "Timeout for SNMP in seconds (Default: 5)"
} }
"-w" = "$snmp_warn$"
"-c" = "$snmp_crit$"
"-t" = "$snmp_timeout$"
} }
vars.snmp_address = "$check_address$" vars.snmp_address = "$check_address$"
@ -80,9 +98,13 @@ object CheckCommand "snmp-load" {
command = [ ManubulonPluginDir + "/check_snmp_load.pl" ] command = [ ManubulonPluginDir + "/check_snmp_load.pl" ]
arguments += { arguments += {
"-T" = "$snmp_load_type$" "-T" = {
value = "$snmp_load_type$"
description = "CPU check"
}
"-f" = { "-f" = {
set_if = "$snmp_perf$" set_if = "$snmp_perf$"
description = "Perfparse compatible output"
} }
} }
@ -108,6 +130,7 @@ object CheckCommand "snmp-memory" {
arguments += { arguments += {
"-f" = { "-f" = {
set_if = "$snmp_perf$" set_if = "$snmp_perf$"
description = "Performance data output"
} }
"-I" = { "-I" = {
set_if = "$snmp_is_cisco$" set_if = "$snmp_is_cisco$"
@ -136,9 +159,13 @@ object CheckCommand "snmp-storage" {
command = [ ManubulonPluginDir + "/check_snmp_storage.pl" ] command = [ ManubulonPluginDir + "/check_snmp_storage.pl" ]
arguments += { arguments += {
"-m" = "$snmp_storage_name$" "-m" = {
value = "$snmp_storage_name$"
description = "Name in description OID (can be mounpoints '/home' or 'Swap Space'...)"
}
"-f" = { "-f" = {
set_if = "$snmp_perf$" set_if = "$snmp_perf$"
description = "Perfparse compatible output"
} }
} }
@ -160,38 +187,57 @@ object CheckCommand "snmp-interface" {
command = [ ManubulonPluginDir + "/check_snmp_int.pl" ] command = [ ManubulonPluginDir + "/check_snmp_int.pl" ]
arguments += { arguments += {
"-n" = "$snmp_interface$" "-n" = {
value = "$snmp_interface$"
description = "Name in description OID (eth0, ppp0 ...). This is treated as a regexp : -n eth will match eth0,eth1,..."
}
"-k" = { "-k" = {
set_if = "$snmp_interface_perf$" set_if = "$snmp_interface_perf$"
description = "Check the input/ouput bandwidth of the interface"
}
"--label" = {
value = "$snmp_interface_label$"
description = "Add label before speed in output : in=, out=, errors-out=, etc..."
} }
"--label" = "$snmp_interface_label$"
"-Y" = { "-Y" = {
set_if = "$snmp_interface_bits_bytes$" set_if = "$snmp_interface_bits_bytes$"
description = "Output performance data in bits/s or Bytes/s"
} }
"-y" = { "-y" = {
set_if = "$snmp_interface_percent$" set_if = "$snmp_interface_percent$"
description = "Output performance data in % of max speed"
} }
"-B" = { "-B" = {
set_if = "$snmp_interface_kbits$" set_if = "$snmp_interface_kbits$"
description = "Make the warning and critical levels in K|M|G Bits/s instead of K|M|G Bytes/s"
} }
"-M" = { "-M" = {
set_if = "$snmp_interface_megabytes$" set_if = "$snmp_interface_megabytes$"
description = "Make the warning and critical levels in Mbps"
} }
"--64bits" = { "--64bits" = {
set_if = "$snmp_interface_64bit$" set_if = "$snmp_interface_64bit$"
description = "Use 64 bits counters instead of the standard counters when checking bandwidth & performance data for interface >= 1Gbps"
} }
"-e" = { "-e" = {
set_if = "$snmp_interface_errors$" set_if = "$snmp_interface_errors$"
description = "Add error & discard to Perfparse output"
} }
"-i" = { "-i" = {
set_if = "$snmp_interface_inverse$" set_if = "$snmp_interface_inverse$"
description = "Make critical when up"
} }
"-r" = { "-r" = {
set_if = "$snmp_interface_noregexp$" set_if = "$snmp_interface_noregexp$"
description = "Do not use regexp to match NAME in description OID"
}
"-d" = {
value = "$snmp_interface_delta$"
description = "Make an average of <delta> seconds (default 300=5min)"
} }
"-d" = "$snmp_interface_delta$"
"-u" = { "-u" = {
set_if = "$snmp_interface_warncrit_percent$" set_if = "$snmp_interface_warncrit_percent$"
description = "Make the warning and critical levels in % of reported interface speed"
} }
"-N" = { "-N" = {
set_if = "$snmp_interface_ifname$" set_if = "$snmp_interface_ifname$"
@ -201,6 +247,7 @@ object CheckCommand "snmp-interface" {
} }
"-f" = { "-f" = {
set_if = "$snmp_perf$" set_if = "$snmp_perf$"
description = "Perfparse compatible output (no output when interface is down)"
} }
} }
@ -235,24 +282,26 @@ object CheckCommand "snmp-process" {
arguments += { arguments += {
"-n" = { "-n" = {
description = "Regex service name eg. ^apache2$"
value = "$snmp_process_name$" value = "$snmp_process_name$"
description = "Regex service name eg. ^apache2$"
} }
"-F" = { "-F" = {
set_if = "$snmp_perf$" set_if = "$snmp_perf$"
description = "Add performance output (outputs : memory_usage, num_process, cpu_usage)"
} }
"-A" = { "-A" = {
set_if = "$snmp_process_use_params$" set_if = "$snmp_process_use_params$"
description = "Add parameters to select processes (ex : 'named.*-t /var/named/chroot' will only select named process with this parameter)"
} }
"-m" = { "-m" = {
description = "Checks memory usage. Values warning and critical in Mb eg. 512,1024"
set_if = "$snmp_process_mem_usage$" set_if = "$snmp_process_mem_usage$"
value = "$snmp_process_mem_threshold$" value = "$snmp_process_mem_threshold$"
description = "Checks memory usage. Values warning and critical in Mb eg. 512,1024"
} }
"-u" = { "-u" = {
description = "Checks CPU usage. Values warning and critical in % (value can be > 100% : 100%=1 CPU) eg. 15,50"
set_if = "$snmp_process_cpu_usage$" set_if = "$snmp_process_cpu_usage$"
value = "$snmp_process_cpu_threshold$" value = "$snmp_process_cpu_threshold$"
description = "Checks CPU usage. Values warning and critical in % (value can be > 100% : 100%=1 CPU) eg. 15,50"
} }
} }

View File

@ -133,12 +133,10 @@ object CheckCommand "perfmon-windows" {
value = "$perfmon_win_syntax$" value = "$perfmon_win_syntax$"
description = "Use this instead of the counter name in the perfomance data" description = "Use this instead of the counter name in the perfomance data"
} }
} }
vars.performance_win_wait = 1000 vars.performance_win_wait = 1000
vars.perfmon_win_type = "double" vars.perfmon_win_type = "double"
//The default values
} }
@ -171,7 +169,6 @@ template CheckCommand "ping-common-windows" {
vars.ping_win_packets = "5" vars.ping_win_packets = "5"
vars.ping_win_timeout = "1000" vars.ping_win_timeout = "1000"
//The default values
} }
object CheckCommand "ping-windows" { object CheckCommand "ping-windows" {
@ -251,7 +248,6 @@ object CheckCommand "swap-windows" {
} }
vars.swap_win_unit = "mb" vars.swap_win_unit = "mb"
//The default
} }
object CheckCommand "update-windows" { object CheckCommand "update-windows" {
@ -294,7 +290,6 @@ object CheckCommand "uptime-windows" {
} }
vars.uptime_win_unit = "s" vars.uptime_win_unit = "s"
//The default
} }
object CheckCommand "users-windows" { object CheckCommand "users-windows" {

View File

@ -747,7 +747,7 @@ object CheckCommand "smtp" {
"-P" = { "-P" = {
value = "$smtp_authpass$" value = "$smtp_authpass$"
description = "SMTP AUTH password" description = "SMTP AUTH password"
} }
"-q" = { "-q" = {
value = "$smtp_ignore_quit$" value = "$smtp_ignore_quit$"
description = "Ignore failure when sending QUIT command to server" description = "Ignore failure when sending QUIT command to server"
@ -1382,138 +1382,113 @@ object CheckCommand "disk" {
required = true required = true
order = -3 order = -3
} }
"-c" = { "-c" = {
value = "$disk_cfree$" value = "$disk_cfree$"
description = "Exit with CRITICAL status if less than INTEGER units of disk are free or Exit with CRITCAL status if less than PERCENT of disk space is free" description = "Exit with CRITICAL status if less than INTEGER units of disk are free or Exit with CRITCAL status if less than PERCENT of disk space is free"
required = true required = true
order = -3 order = -3
} }
"-W" = { "-W" = {
value = "$disk_inode_wfree$" value = "$disk_inode_wfree$"
description = "Exit with WARNING status if less than PERCENT of inode space is free" description = "Exit with WARNING status if less than PERCENT of inode space is free"
} }
"-K" = { "-K" = {
value = "$disk_inode_cfree$" value = "$disk_inode_cfree$"
description = "Exit with CRITICAL status if less than PERCENT of inode space is free" description = "Exit with CRITICAL status if less than PERCENT of inode space is free"
} }
"-p" = { "-p" = {
value = "$disk_partitions$" value = "$disk_partitions$"
description = "Path or partition (may be repeated)" description = "Path or partition (may be repeated)"
repeat_key = true repeat_key = true
order = 1 order = 1
} }
"-p_old" = { "-p_old" = {
key = "-p" key = "-p"
value = "$disk_partition$" value = "$disk_partition$"
order = 1 order = 1
} }
"-x" = { "-x" = {
value = "$disk_partitions_excluded$" value = "$disk_partitions_excluded$"
description = "Ignore device (only works if -p unspecified)" description = "Ignore device (only works if -p unspecified)"
} }
"-x_old" = { "-x_old" = {
key = "-x" key = "-x"
value = "$disk_partition_excluded$" value = "$disk_partition_excluded$"
} }
"-C" = { "-C" = {
set_if = "$disk_clear$" set_if = "$disk_clear$"
description = "Clear thresholds" description = "Clear thresholds"
} }
"-E" = { "-E" = {
set_if = "$disk_exact_match$" set_if = "$disk_exact_match$"
description = "For paths or partitions specified with -p, only check for exact paths" description = "For paths or partitions specified with -p, only check for exact paths"
} }
"-e" = { "-e" = {
set_if = "$disk_errors_only$" set_if = "$disk_errors_only$"
description = "Display only devices/mountpoints with errors" description = "Display only devices/mountpoints with errors"
} }
"-f" = { "-f" = {
set_if = "$disk_ignore_reserved$" set_if = "$disk_ignore_reserved$"
description = "Don't account root-reserved blocks into freespace in perfdata" description = "Don't account root-reserved blocks into freespace in perfdata"
} }
"-g" = { "-g" = {
value = "$disk_group$" value = "$disk_group$"
description = "Group paths. Thresholds apply to (free-)space of all partitions together" description = "Group paths. Thresholds apply to (free-)space of all partitions together"
} }
"-k" = { "-k" = {
set_if = "$disk_kilobytes$" set_if = "$disk_kilobytes$"
description = "Same as --units kB" description = "Same as --units kB"
} }
"-l" = { "-l" = {
set_if = "$disk_local$" set_if = "$disk_local$"
description = " Only check local filesystems" description = " Only check local filesystems"
} }
"-L" = { "-L" = {
set_if = "$disk_stat_remote_fs$" set_if = "$disk_stat_remote_fs$"
description = "Only check local filesystems against thresholds. Yet call stat on remote filesystems to test if they are accessible (e.g. to detect Stale NFS Handles)" description = "Only check local filesystems against thresholds. Yet call stat on remote filesystems to test if they are accessible (e.g. to detect Stale NFS Handles)"
} }
"-M" = { "-M" = {
set_if = "$disk_mountpoint$" set_if = "$disk_mountpoint$"
description = "Display the mountpoint instead of the partition" description = "Display the mountpoint instead of the partition"
} }
"-m" = { "-m" = {
set_if = "$disk_megabytes$" set_if = "$disk_megabytes$"
description = "Same as --units MB" description = "Same as --units MB"
} }
"-A" = { "-A" = {
set_if = "$disk_all$" set_if = "$disk_all$"
description = "Explicitly select all paths. This is equivalent to -R .*" description = "Explicitly select all paths. This is equivalent to -R .*"
} }
"-R" = { "-R" = {
value = "$disk_eregi_path$" value = "$disk_eregi_path$"
description = "Case insensitive regular expression for path/partition (may be repeated)" description = "Case insensitive regular expression for path/partition (may be repeated)"
repeat_key = true repeat_key = true
} }
"-r" = { "-r" = {
value = "$disk_ereg_path$" value = "$disk_ereg_path$"
description = "Regular expression for path or partition (may be repeated)" description = "Regular expression for path or partition (may be repeated)"
repeat_key = true repeat_key = true
} }
"-I" = { "-I" = {
value = "$disk_ignore_eregi_path$" value = "$disk_ignore_eregi_path$"
description = "Regular expression to ignore selected path/partition (case insensitive) (may be repeated)" description = "Regular expression to ignore selected path/partition (case insensitive) (may be repeated)"
repeat_key = true repeat_key = true
order = 2 order = 2
} }
"-i" = { "-i" = {
value = "$disk_ignore_ereg_path$" value = "$disk_ignore_ereg_path$"
description = "Regular expression to ignore selected path or partition (may be repeated)" description = "Regular expression to ignore selected path or partition (may be repeated)"
repeat_key = true repeat_key = true
order = 2 order = 2
} }
"-t" = { "-t" = {
value = "$disk_timeout$" value = "$disk_timeout$"
description = "Seconds before connection times out (default: 10)" description = "Seconds before connection times out (default: 10)"
} }
"-u" = { "-u" = {
value = "$disk_units$" value = "$disk_units$"
description = "Choose bytes, kB, MB, GB, TB (default: MB)" description = "Choose bytes, kB, MB, GB, TB (default: MB)"
} }
"-X" = { "-X" = {
value = "$disk_exclude_type$" value = "$disk_exclude_type$"
description = "Ignore all filesystems of indicated type (may be repeated)" description = "Ignore all filesystems of indicated type (may be repeated)"
@ -2295,19 +2270,17 @@ object CheckCommand "nrpe" {
arguments = { arguments = {
"-H" = { "-H" = {
value = "$nrpe_address$" value = "$nrpe_address$"
description = "" description = "The address of the host running the NRPE daemon"
} }
"-p" = { "-p" = {
value = "$nrpe_port$" value = "$nrpe_port$"
description = ""
} }
"-c" = { "-c" = {
value = "$nrpe_command$" value = "$nrpe_command$"
description = ""
} }
"-n" = { "-n" = {
set_if = "$nrpe_no_ssl$" set_if = "$nrpe_no_ssl$"
description = "Do not use SSL." description = "Do not use SSL"
} }
"-u" = { "-u" = {
set_if = "$nrpe_timeout_unknown$" set_if = "$nrpe_timeout_unknown$"
@ -2315,7 +2288,7 @@ object CheckCommand "nrpe" {
} }
"-t" = { "-t" = {
value = "$nrpe_timeout$" value = "$nrpe_timeout$"
description = "" description = "<interval>:<state> = <Number of seconds before connection times out>:<Check state to exit with in the event of a timeout (default=CRITICAL)>"
} }
"-a" = { "-a" = {
value = "$nrpe_arguments$" value = "$nrpe_arguments$"
@ -2792,13 +2765,26 @@ object CheckCommand "negate" {
command = [ PluginDir + "/negate" ] command = [ PluginDir + "/negate" ]
arguments = { arguments = {
"-t" = "$negate_timeout$" "-t" = {
"-T" = "$negate_timeout_result$" value = "$negate_timeout$"
"-o" = "$negate_ok$" description = "Seconds before plugin times out (default: 11)"
"-w" = "$negate_warning$" }
"-c" = "$negate_critical$" "-T" = {
value = "$negate_timeout_result$"
description = "Custom result on Negate timeouts"
}
"-o" = {
value = "$negate_ok$"
}
"-w" = {
value = "$negate_warning$"
}
"-c" = {
value = "$negate_critical$"
}
"-s" = { "-s" = {
set_if = "$negate_substitute$" set_if = "$negate_substitute$"
description = "Substitute output text as well. Will only substitute text in CAPITALS"
} }
"--wrapped-plugin" = { "--wrapped-plugin" = {
value = {{ value = {{
@ -2971,16 +2957,46 @@ object CheckCommand "mysql_query" {
command = [ PluginDir + "/check_mysql_query" ] command = [ PluginDir + "/check_mysql_query" ]
arguments = { arguments = {
"-H" = "$mysql_query_hostname$" "-H" = {
"-P" = "$mysql_query_port$" value = "$mysql_query_hostname$"
"-u" = "$mysql_query_username$" description = "Host name, IP Address, or unix socket (must be an absolute path)"
"-p" = "$mysql_query_password$" }
"-d" = "$mysql_query_database$" "-P" = {
"-f" = "$mysql_query_file$" value = "$mysql_query_port$"
"-g" = "$mysql_query_group$" description = "Port number (default: 3306)"
"-q" = "$mysql_query_execute$" }
"-w" = "$mysql_query_warning$" "-u" = {
"-c" = "$mysql_query_critical$" value = "$mysql_query_username$"
description = "Username to login with"
}
"-p" = {
value = "$mysql_query_password$"
description = "Password to login with"
}
"-d" = {
value = "$mysql_query_database$"
description = "Database to check"
}
"-f" = {
value = "$mysql_query_file$"
description = "Read from the specified client options file"
}
"-g" = {
value = "$mysql_query_group$"
description = "Use a client options group"
}
"-q" = {
value = "$mysql_query_execute$"
description = "SQL query to run. Only first column in first row will be read"
}
"-w" = {
value = "$mysql_query_warning$"
description = "Warning range (format: start:end). Alert if outside this range"
}
"-c" = {
value = "$mysql_query_critical$"
description = "Critical range"
}
} }
vars.mysql_query_hostname = "$check_address$" vars.mysql_query_hostname = "$check_address$"
@ -2994,12 +3010,25 @@ object CheckCommand "radius" {
] ]
arguments = { arguments = {
"-H" = "$radius_address$", "-H" = {
"-F" = "$radius_config_file$", value = "$radius_address$",
"-u" = "$radius_username$", description = "Host name, IP Address, or unix socket (must be an absolute path)"
"-p" = "$radius_password$", }
"-F" = {
value = "$radius_config_file$",
description = "Configuration file"
}
"-u" = {
value = "$radius_username$",
description = "The user to authenticate"
}
"-p" = {
value = "$radius_password$",
description = "Password for authentication"
}
"-P" = { "-P" = {
value = "$radius_port$", value = "$radius_port$",
description = "Port number (default: 1645)"
}, },
"-n" = { "-n" = {
value = "$radius_nas_id$", value = "$radius_nas_id$",