object CheckCommand "check_storage_health" { import "ipv4-or-ipv6" command = [ PluginContribDir + "/check_storage_health" ] arguments = { "--timeout" = { value = "$storage_health_timeout$" description = "Seconds before plugin times out (default: 15)" } "--blacklist" = { value = "$storage_health_blacklist$" description = "Blacklist some (missing/failed) components" } "--hostname" = { value = "$storage_health_hostname$" description = "Hostname or IP-address of the switch or router" } "--port" = { value = "$storage_health_port$" description = "The SNMP port to use (default: 161)" } "--domain" = { value = "$storage_health_domain$" description = "The transport domain to use (default: udp/ipv4, other possible values: udp6, udp/ipv6, tcp, tcp4, tcp/ipv4, tcp6, tcp/ipv6)" } "--protocol" = { value = "$storage_health_protocol$" description = "The SNMP protocol to use (default: 2c, other possibilities: 1,3)" } "--community" = { value = "$storage_health_community$" description = "SNMP community of the server (SNMP v1/2 only)" } "--username" = { value = "$storage_health_username$" description = "The securityName for the USM security model (SNMPv3 only)" } "--authpassword" = { value = "$storage_health_authpassword$" description = "The authentication password for SNMPv3" } "--authprotocol" = { value = "$storage_health_authprotocol$" description = "The authentication protocol for SNMPv3 (md5|sha)" } "--privpassword" = { value = "$storage_health_privpassword$" description = "The password for authPriv security level" } "--privprotocol" = { value = "$storage_health_privprotocol$" description = "The private protocol for SNMPv3 (des|aes|aes128|3des|3desde)" } "--contextengineid" = { value = "$storage_health_contextengineid$" description = "The context engine id for SNMPv3 (10 to 64 hex characters)" } "--contextname" = { value = "$storage_health_contextname$" description = "The context name for SNMPv3 (empty represents the default context)" } "--community2" = { value = "$storage_health_community2$" description = "SNMP community which can be used to switch the context during runtime" } "--mode" = { value = "$storage_health_mode$" description = "Which mode should be executed. Available modes: hardware-health, supplies-status and uptime." } "--name" = { value = "$storage_health_name$" description = "The name of an interface (ifDescr)" } "--regexp" = { set_if = "$storage_health_regexp$" description = "A flag indicating that --name is a regular expression" } "--units" = { value = "$storage_health_units$" description = "One of %, B, KB, MB, GB, Bit, KBi, MBi, GBi. (used for e.g. mode interface-usage)" } "--name2" = { value = "$storage_health_name2$" description = "The secondary name of a component" } "--name3" = { value = "$storage_health_name3$" description = "The teritary name of a component" } "--report" = { value = "$storage_health_report$" description = "Can be used to shorten the output." } "--lookback" = { value = "$storage_health_lookback$" description = "The amount of time you want to look back when calculating average rates. Use it for mode interface-errors or interface-usage. Without --lookback the time between two runs of check_printer_health is the base for calculations. If you want your checkresult to be based for example on the past hour, use --lookback 3600." } "--critical" = { value = "$storage_health_critical$" description = "The critical threshold" } "--warning" = { value = "$storage_health_warning$" description = "The warning threshold" } "--warningx" = { value = "$storage_health_warningx$" repeat_key = true description = "The extended warning thresholds" } "--criticalx" = { value = "$storage_health_criticalx$" repeat_key = true description = "The extended critical thresholds" } "--mitigation" = { value = "$storage_health_mitigation$" description = "The parameter allows you to change a critical error to a warning." } "--selectedperfdata" = { value = "$storage_health_selectedperfdata$" description = "The parameter allows you to limit the list of performance data. It's a perl regexp. Only matching perfdata show up in the output." } "--morphperfdata" = { value = "$storage_health_morphperfdata$" description = "The parameter allows you to change performance data labels. It's a perl regexp and a substitution. --morphperfdata '(.*)ISATAP(.*)'='$1patasi$2'" } "--negate" = { value = "$storage_health_negate$" description = "The parameter allows you to map exit levels, such as warning=critical" } "--with-mymodules-dyn-dir" = { value = "$storage_health_mymodules-dyn-dir$" description = "A directory where own extensions can be found" } "--servertype" = { value = "$storage_health_servertype$" description = "The type of the network device: cisco (default). Use it if auto-detection is not possible" } "--statefilesdir" = { value = "$storage_health_statefilesdir$" description = "An alternate directory where the plugin can save files" } "--oids" = { value = "$storage_health_oids$" description = "A list of oids which are downloaded and written to a cache file. Use it together with --mode oidcache" } "--offline" = { value = "$storage_health_offline$" description = "The maximum number of seconds since the last update of cache file before it is considered too old" } "--multiline" = { set_if = "$storage_health_multiline$" description = "Multiline output" } "-v" = { set_if = "$storage_health_verbose$" description = "If we need extra output" } } vars.storage_health_hostname = "$check_address$" vars.storage_health_mode = "uptime" }