More user-friendly names for the SNMP checks

This commit is contained in:
root 2019-10-29 11:14:53 +02:00
parent dc1cfab052
commit b88753cc14
2 changed files with 3 additions and 3 deletions

View File

@ -43,7 +43,7 @@ object CheckCommand "check_bandwidth" {
#######################################################################################
object CheckCommand "check_operstatus" {
import "plugin-check-command"
command = PluginDir + "/check_snmp -H $host$ -C openfest --oid $OID$ -s $value$"
command = PluginDir + "/check_snmp -H $host$ -C openfest --oid $OID$ --miblist=IF-MIB -r $value$"
vars.host=""
vars.OID=""
vars.value=""

View File

@ -28,7 +28,7 @@ apply Service "network_open_ports" {
apply Service for (iface => config in host.vars.ifaces) {
import "generic-service"
display_name = "check_bandwidth"
display_name = "bandwidth_" + iface
check_command = "check_bandwidth"
@ -39,7 +39,7 @@ apply Service for (iface => config in host.vars.ifaces) {
apply Service for (iface => config in host.vars.snmp_ifaces) {
import "generic-service"
display_name = "check_operstatus"
display_name = "operstatus_" + iface
check_command = "check_operstatus"