Hello Zabbix forums
I'm creating a new discovery rule that looks like this:
discover[{#WLANNAME},1.3.6.1.4.1.9.9.512.1.1.1.1.3,{#NUMBER OFCLIENTS},1.3.6.1.4.1.14179.2.1.1.1.38]
The {#WLANNAME},1.3.6.1.4.1.9.9.512.1.1.1.1.3 gives me an output of a string:
snmpwalk -v 2c -c public <IP> 1.3.6.1.4.1.9.9.512.1.1.1.1.3
SNMPv2-SMI::enterprises.9.9.512.1.1.1.1.3.1 = STRING: "WLAN1"
SNMPv2-SMI::enterprises.9.9.512.1.1.1.1.3.3 = STRING: "WLAN2"
SNMPv2-SMI::enterprises.9.9.512.1.1.1.1.3.7 = STRING: "WLAN3"
In my discovery rule i need to get for each WLAN the count of connected users on the WLAN.Thats why i have: {#NUMBER OFCLIENTS},1.3.6.1.4.1.14179.2.1.1.1.38:
snmpwalk -v 2c -c public <IP> 1.3.6.1.4.1.14179.2.1.1.1.38.1
SNMPv2-SMI::enterprises.14179.2.1.1.1.38.1 = Counter32: 47
I need to somehow get the number after the OID: 1.3.6.1.4.1.9.9.512.1.1.1.1.3.X and would like it to be "stored" in a macro called {#WLANID}, eg in an item prototype: 1.3.6.1.4.1.14179.2.1.1.1.38.{WLANID}. How can i do this the best way?
I'm on Zabbix 6.0
I'm creating a new discovery rule that looks like this:
discover[{#WLANNAME},1.3.6.1.4.1.9.9.512.1.1.1.1.3,{#NUMBER OFCLIENTS},1.3.6.1.4.1.14179.2.1.1.1.38]
The {#WLANNAME},1.3.6.1.4.1.9.9.512.1.1.1.1.3 gives me an output of a string:
snmpwalk -v 2c -c public <IP> 1.3.6.1.4.1.9.9.512.1.1.1.1.3
SNMPv2-SMI::enterprises.9.9.512.1.1.1.1.3.1 = STRING: "WLAN1"
SNMPv2-SMI::enterprises.9.9.512.1.1.1.1.3.3 = STRING: "WLAN2"
SNMPv2-SMI::enterprises.9.9.512.1.1.1.1.3.7 = STRING: "WLAN3"
In my discovery rule i need to get for each WLAN the count of connected users on the WLAN.Thats why i have: {#NUMBER OFCLIENTS},1.3.6.1.4.1.14179.2.1.1.1.38:
snmpwalk -v 2c -c public <IP> 1.3.6.1.4.1.14179.2.1.1.1.38.1
SNMPv2-SMI::enterprises.14179.2.1.1.1.38.1 = Counter32: 47
I need to somehow get the number after the OID: 1.3.6.1.4.1.9.9.512.1.1.1.1.3.X and would like it to be "stored" in a macro called {#WLANID}, eg in an item prototype: 1.3.6.1.4.1.14179.2.1.1.1.38.{WLANID}. How can i do this the best way?
I'm on Zabbix 6.0
Comment