mirror of https://github.com/Icinga/icinga2.git
Merge pull request #7602 from MichalMMac/snmp-interface-extendedchecks
Add extended checks options to snmp-interface command template
This commit is contained in:
commit
381c454d38
|
@ -2135,6 +2135,7 @@ snmp_interface_kbits | **Optional.** Make the warning and critical levels
|
|||
snmp_interface_megabytes | **Optional.** Make the warning and critical levels in Mbps or MBps. **Depends** on snmp_interface_kbits set to true. Defaults to true.
|
||||
snmp_interface_64bit | **Optional.** Use 64 bits counters instead of the standard counters when checking bandwidth & performance data for interface >= 1Gbps. Defaults to false.
|
||||
snmp_interface_errors | **Optional.** Add error & discard to Perfparse output. Defaults to true.
|
||||
snmp_interface_extended_checks | **Optional.** Also check the error and discard input/output. When enabled format of `snmp_warn` and `snmp_crit` changes to <In bytes>,<Out bytes>,<In error>,<Out error>,<In disc>,<Out disc>. More options available in the [snmp interface](http://nagios.manubulon.com/snmp_int.html) documentation. Defaults to false.
|
||||
snmp_interface_noregexp | **Optional.** Do not use regexp to match interface name in description OID. Defaults to false.
|
||||
snmp_interface_delta | **Optional.** Delta time of perfcheck. Defaults to "300" (5 min).
|
||||
snmp_interface_warncrit_percent | **Optional.** Make the warning and critical levels in % of reported interface speed. If set, **snmp_interface_megabytes** needs to be set to false. Defaults to false.
|
||||
|
|
|
@ -263,6 +263,10 @@ object CheckCommand "snmp-interface" {
|
|||
set_if = "$snmp_interface_errors$"
|
||||
description = "Add error & discard to Perfparse output"
|
||||
}
|
||||
"-q" = {
|
||||
set_if = "$snmp_interface_extended_checks$"
|
||||
description = "Also check the error and discard input/output. When enabled format of snmp_warn and snmp_crit changes to <In bytes>,<Out bytes>,<In error>,<Out error>,<In disc>,<Out disc>"
|
||||
}
|
||||
"-i" = {
|
||||
set_if = "$snmp_interface_inverse$"
|
||||
description = "Make critical when up"
|
||||
|
@ -303,6 +307,7 @@ object CheckCommand "snmp-interface" {
|
|||
vars.snmp_interface_megabytes = true
|
||||
vars.snmp_interface_64bit = false
|
||||
vars.snmp_interface_errors = true
|
||||
vars.snmp_interface_extended_checks = false
|
||||
vars.snmp_interface_noregexp = false
|
||||
vars.snmp_interface_delta = 300
|
||||
vars.snmp_interface_warncrit_percent = false
|
||||
|
|
Loading…
Reference in New Issue