Fix the voc switches port statuses & add vocsw-B

This commit is contained in:
root 2019-10-29 18:14:56 +02:00
parent c350abdef9
commit ded9db7d71
4 changed files with 78 additions and 12 deletions

View File

@ -10,7 +10,6 @@ object Host "vocsw-A.openfest.org" {
# vars.extra_port_check = "" # vars.extra_port_check = ""
# vars.specification = "vocsw" # vars.specification = "vocsw"
# vars.net_interfaces = [ "eth0", "eth1" ]
vars.snmp_ifaces [ "gigabitEthernet 1/0/1" ] = { vars.snmp_ifaces [ "gigabitEthernet 1/0/1" ] = {
OID = "1.3.6.1.2.1.2.2.1.8.1" OID = "1.3.6.1.2.1.2.2.1.8.1"
value = "1" # UP - 1 , 2 - down value = "1" # UP - 1 , 2 - down
@ -37,12 +36,12 @@ object Host "vocsw-A.openfest.org" {
} }
vars.snmp_ifaces [ "gigabitEthernet 1/0/6" ] = { vars.snmp_ifaces [ "gigabitEthernet 1/0/6" ] = {
OID = "1.3.6.1.2.1.2.2.1.8.6" OID = "1.3.6.1.2.1.2.2.1.8.6"
value = "2" value = "1"
} }
vars.snmp_ifaces [ "gigabitEthernet 1/0/7" ] = { vars.snmp_ifaces [ "gigabitEthernet 1/0/7" ] = {
OID = "1.3.6.1.2.1.2.2.1.8.7" OID = "1.3.6.1.2.1.2.2.1.8.7"
value = "2" value = "1"
} }
vars.snmp_ifaces [ "gigabitEthernet 1/0/8" ] = { vars.snmp_ifaces [ "gigabitEthernet 1/0/8" ] = {
@ -51,7 +50,7 @@ object Host "vocsw-A.openfest.org" {
} }
vars.snmp_ifaces [ "gigabitEthernet 1/0/0" ] = { vars.snmp_ifaces [ "gigabitEthernet 1/0/9" ] = {
OID = "1.3.6.1.2.1.2.2.1.8.1" OID = "1.3.6.1.2.1.2.2.1.8.1"
value = "2" value = "2"
} }

View File

@ -0,0 +1,67 @@
object Host "vocsw-B.openfest.org" {
import "generic-host"
address = "vocsw-B"
vars.groups = [ "vocsw" ]
vars.parent = "coresw.openfest.org"
# check_command = "xxx_health"
# vars.extra_port_check = ""
# vars.specification = "vocsw"
vars.snmp_ifaces [ "gigabitEthernet 1/0/1" ] = {
OID = "1.3.6.1.2.1.2.2.1.8.1"
value = "1" # UP - 1 , 2 - down
}
vars.snmp_ifaces [ "gigabitEthernet 1/0/2" ] = {
OID = "1.3.6.1.2.1.2.2.1.8.2"
value = "1"
}
vars.snmp_ifaces [ "gigabitEthernet 1/0/3" ] = {
OID = "1.3.6.1.2.1.2.2.1.8.3"
value = "1"
}
vars.snmp_ifaces [ "gigabitEthernet 1/0/4" ] = {
OID = "1.3.6.1.2.1.2.2.1.8.4"
value = "1"
}
vars.snmp_ifaces [ "gigabitEthernet 1/0/5" ] = {
OID = "1.3.6.1.2.1.2.2.1.8.5"
value = "1"
}
vars.snmp_ifaces [ "gigabitEthernet 1/0/6" ] = {
OID = "1.3.6.1.2.1.2.2.1.8.6"
value = "1"
}
vars.snmp_ifaces [ "gigabitEthernet 1/0/7" ] = {
OID = "1.3.6.1.2.1.2.2.1.8.7"
value = "1"
}
vars.snmp_ifaces [ "gigabitEthernet 1/0/8" ] = {
OID = "1.3.6.1.2.1.2.2.1.8.8"
value = "1"
}
vars.snmp_ifaces [ "gigabitEthernet 1/0/9" ] = {
OID = "1.3.6.1.2.1.2.2.1.8.1"
value = "2"
}
vars.snmp_ifaces [ "gigabitEthernet 1/0/10" ] = {
OID = "1.3.6.1.2.1.2.2.1.8.10"
value = "2"
}
vars.notification["slack"] = {
groups = [ "icingaadmins" ]
}
}

View File

@ -23,7 +23,7 @@ object Host "vocsw-C.openfest.org" {
vars.snmp_ifaces [ "gigabitEthernet 1/0/3" ] = { vars.snmp_ifaces [ "gigabitEthernet 1/0/3" ] = {
OID = "1.3.6.1.2.1.2.2.1.8.3" OID = "1.3.6.1.2.1.2.2.1.8.3"
value = "2" value = "1"
} }
vars.snmp_ifaces [ "gigabitEthernet 1/0/4" ] = { vars.snmp_ifaces [ "gigabitEthernet 1/0/4" ] = {
@ -37,12 +37,12 @@ object Host "vocsw-C.openfest.org" {
} }
vars.snmp_ifaces [ "gigabitEthernet 1/0/6" ] = { vars.snmp_ifaces [ "gigabitEthernet 1/0/6" ] = {
OID = "1.3.6.1.2.1.2.2.1.8.6" OID = "1.3.6.1.2.1.2.2.1.8.6"
value = "2" value = "1"
} }
vars.snmp_ifaces [ "gigabitEthernet 1/0/7" ] = { vars.snmp_ifaces [ "gigabitEthernet 1/0/7" ] = {
OID = "1.3.6.1.2.1.2.2.1.8.7" OID = "1.3.6.1.2.1.2.2.1.8.7"
value = "2" value = "1"
} }
vars.snmp_ifaces [ "gigabitEthernet 1/0/8" ] = { vars.snmp_ifaces [ "gigabitEthernet 1/0/8" ] = {
@ -51,7 +51,7 @@ object Host "vocsw-C.openfest.org" {
} }
vars.snmp_ifaces [ "gigabitEthernet 1/0/0" ] = { vars.snmp_ifaces [ "gigabitEthernet 1/0/9" ] = {
OID = "1.3.6.1.2.1.2.2.1.8.1" OID = "1.3.6.1.2.1.2.2.1.8.1"
value = "2" value = "2"
} }

View File

@ -23,7 +23,7 @@ object Host "vocsw-D.openfest.org" {
vars.snmp_ifaces [ "gigabitEthernet 1/0/3" ] = { vars.snmp_ifaces [ "gigabitEthernet 1/0/3" ] = {
OID = "1.3.6.1.2.1.2.2.1.8.3" OID = "1.3.6.1.2.1.2.2.1.8.3"
value = "2" value = "1"
} }
vars.snmp_ifaces [ "gigabitEthernet 1/0/4" ] = { vars.snmp_ifaces [ "gigabitEthernet 1/0/4" ] = {
@ -37,12 +37,12 @@ object Host "vocsw-D.openfest.org" {
} }
vars.snmp_ifaces [ "gigabitEthernet 1/0/6" ] = { vars.snmp_ifaces [ "gigabitEthernet 1/0/6" ] = {
OID = "1.3.6.1.2.1.2.2.1.8.6" OID = "1.3.6.1.2.1.2.2.1.8.6"
value = "2" value = "1"
} }
vars.snmp_ifaces [ "gigabitEthernet 1/0/7" ] = { vars.snmp_ifaces [ "gigabitEthernet 1/0/7" ] = {
OID = "1.3.6.1.2.1.2.2.1.8.7" OID = "1.3.6.1.2.1.2.2.1.8.7"
value = "2" value = "1"
} }
vars.snmp_ifaces [ "gigabitEthernet 1/0/8" ] = { vars.snmp_ifaces [ "gigabitEthernet 1/0/8" ] = {
@ -51,7 +51,7 @@ object Host "vocsw-D.openfest.org" {
} }
vars.snmp_ifaces [ "gigabitEthernet 1/0/0" ] = { vars.snmp_ifaces [ "gigabitEthernet 1/0/9" ] = {
OID = "1.3.6.1.2.1.2.2.1.8.1" OID = "1.3.6.1.2.1.2.2.1.8.1"
value = "2" value = "2"
} }