From f9633bcdaeee1bf2a2aaa972a39be4cf8e1c19d7 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 1 Nov 2019 22:47:18 +0200 Subject: [PATCH] Uplink switch 2 config revisited --- .../conf.d/hosts/switches/uplink-gkc.conf | 139 +++++++++++++----- 1 file changed, 99 insertions(+), 40 deletions(-) diff --git a/monitoring/icinga2/conf.d/hosts/switches/uplink-gkc.conf b/monitoring/icinga2/conf.d/hosts/switches/uplink-gkc.conf index d0829b9..0b1dca3 100644 --- a/monitoring/icinga2/conf.d/hosts/switches/uplink-gkc.conf +++ b/monitoring/icinga2/conf.d/hosts/switches/uplink-gkc.conf @@ -11,55 +11,114 @@ object Host "uplink-gkc.openfest.org" { # vars.specification = "vocsw" # debug - vars.snmp_ifaces [ "gigabitEthernet 1/0/1" ] = { - OID = "1.3.6.1.2.1.2.2.1.8.1" - value = "2" # UP - 1 , 2 - down + vars.snmp_ifaces [ "FastEthernet0/1" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10001" + value = "1|2" # UP - 1 , 2 - down } # down - vars.snmp_ifaces [ "gigabitEthernet 1/0/2" ] = { - OID = "1.3.6.1.2.1.2.2.1.8.2" + vars.snmp_ifaces [ "FastEthernet0/2" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10002" + value = "2" + } + vars.snmp_ifaces [ "FastEthernet0/3" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10003" + value = "2" + } + vars.snmp_ifaces [ "FastEthernet0/4" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10004" + value = "2" + } + vars.snmp_ifaces [ "FastEthernet0/5" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10005" + value = "2" + } + vars.snmp_ifaces [ "FastEthernet0/6" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10006" + value = "2" + } + vars.snmp_ifaces [ "FastEthernet0/7" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10007" + value = "2" + } + vars.snmp_ifaces [ "FastEthernet0/8" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10008" + value = "2" + } + vars.snmp_ifaces [ "FastEthernet0/9" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10009" + value = "2" + } + vars.snmp_ifaces [ "FastEthernet0/10" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10010" + value = "2" + } + vars.snmp_ifaces [ "FastEthernet0/11" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10011" + value = "2" + } + vars.snmp_ifaces [ "FastEthernet0/12" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10012" + value = "2" + } + vars.snmp_ifaces [ "FastEthernet0/13" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10013" + value = "2" + } + vars.snmp_ifaces [ "FastEthernet0/14" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10014" + value = "2" + } + vars.snmp_ifaces [ "FastEthernet0/15" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10015" + value = "2" + } + vars.snmp_ifaces [ "FastEthernet0/16" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10016" + value = "2" + } + vars.snmp_ifaces [ "FastEthernet0/17" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10017" + value = "2" + } + vars.snmp_ifaces [ "FastEthernet0/18" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10018" + value = "2" + } + vars.snmp_ifaces [ "FastEthernet0/19" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10019" + value = "2" + } + vars.snmp_ifaces [ "FastEthernet0/20" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10020" + value = "2" + } + vars.snmp_ifaces [ "FastEthernet0/21" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10021" + value = "2" + } + vars.snmp_ifaces [ "FastEthernet0/22" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10022" + value = "2" + } + vars.snmp_ifaces [ "FastEthernet0/23" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10023" + value = "2" + } + vars.snmp_ifaces [ "FastEthernet0/24" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10024" value = "2" } - vars.snmp_ifaces [ "gigabitEthernet 1/0/3" ] = { - OID = "1.3.6.1.2.1.2.2.1.8.3" - value = "2" - } - - vars.snmp_ifaces [ "gigabitEthernet 1/0/4" ] = { - OID = "1.3.6.1.2.1.2.2.1.8.4" - value = "2" - } - - vars.snmp_ifaces [ "gigabitEthernet 1/0/5" ] = { - OID = "1.3.6.1.2.1.2.2.1.8.5" - value = "2" - } - vars.snmp_ifaces [ "gigabitEthernet 1/0/6" ] = { - OID = "1.3.6.1.2.1.2.2.1.8.6" - value = "2" - } - - vars.snmp_ifaces [ "gigabitEthernet 1/0/7" ] = { - OID = "1.3.6.1.2.1.2.2.1.8.7" - value = "2" - } - - vars.snmp_ifaces [ "gigabitEthernet 1/0/8" ] = { - OID = "1.3.6.1.2.1.2.2.1.8.8" - value = "2" - } - - # uplink - ipacct - vars.snmp_ifaces [ "gigabitEthernet 1/0/9" ] = { - OID = "1.3.6.1.2.1.2.2.1.8.9" + # to gkc - switchboard + vars.snmp_ifaces [ "GigabitEthernet0/1" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10101" value = "1" } - # to gkc - vars.snmp_ifaces [ "gigabitEthernet 1/0/10" ] = { - OID = "1.3.6.1.2.1.2.2.1.8.10" + # hall + vars.snmp_ifaces [ "GigabitEthernet0/2" ] = { + OID = "1.3.6.1.2.1.2.2.1.8.10102" value = "1" }