Hey Zabbix fans.
I'm trying out the new snmp agent walk[] in our newly upgraded Zabbix 7.0.
I've made a master walk item in a template i'm going to deploy to our newly bought Ricoh printers. I have tried following this blogpost:
https://blog.zabbix.com/improving-sn...lection/27231/
The master walker is a snmp agent and using this as SNMP OID: walk[.1.3.6.1.2.1.1,.1.3.6.1.2.1.43.8.2.1,.1.3.6.1.4.1. 367.3.2.1.6.1.1]
It gets these values: Other OID strings are removed for redundancy.
.1.3.6.1.2.1.1.6.0 = STRING: "room number 231"
.1.3.6.1.2.1.43.8.2.1.9.1.1 = INTEGER: 550
.1.3.6.1.2.1.43.8.2.1.9.1.2 = INTEGER: 550
.1.3.6.1.2.1.43.8.2.1.9.1.3 = INTEGER: 100
.1.3.6.1.2.1.43.8.2.1.10.1.1 = INTEGER: 55
.1.3.6.1.2.1.43.8.2.1.10.1.2 = INTEGER: 55
.1.3.6.1.2.1.43.8.2.1.10.1.3 = INTEGER: 0
.1.3.6.1.2.1.43.8.2.1.13.1.1 = STRING: "Tray 1"
.1.3.6.1.2.1.43.8.2.1.13.1.2 = STRING: "Tray 2"
.1.3.6.1.2.1.43.8.2.1.13.1.3 = STRING: "Bypass Tray"
.1.3.6.1.4.1.367.3.2.1.6.1.1.7.1 = STRING: "Printer Device name here"
I have then created a discovery rule as an dependent item to my master walker, with preprocessing: SNMP walk to JSON with all my macros and OID prefix. I need all for my item prototype.
Field name: OID:
{#TRAYNAME} 1.3.6.1.2.1.43.8.2.1.13.1
{#TRAYCURRENTVAL} 1.3.6.1.2.1.43.8.2.1.10.1
{#TRAYMAXVAL} 1.3.6.1.2.1.43.8.2.1.9.1
{#PRINTERNAME} 1.3.6.1.4.1.367.3.2.1.6.1.1.7.1
{#LOCATION} 1.3.6.1.2.1.1.6.0
In my item prototypes and trigger prototype(The item prototypes are also dependent on the master walker), i can get {#TRAYNAME} to work in the name field of the trigger. The {#TRAYCURRENTVAL} and {#TRAYMAXVAL} also work, as i get these values into my item prototypes as numeric, they are preprocessed in the item prototypes as SNMP walk value, and then the full OID: 1.3.6.1.2.1.43.8.2.1.10.1.{#SNMPINDEX}
Where my problem is, is that the value for {#PRINTERNAME} and {#LOCATION}, doesn't show in either prototypes. I can see in the master walk on the host i get the values. But on the host, my item prototypes are called:
Item prototype: Printer {#PRINTERNAME}, {#LOCATION}, {#TRAYNAME} Current Level
Item on host: Printer {#PRINTERNAME}, {#LOCATION}, Tray 1 Current Level
What could I have configured wrong, as i need the printer name and location values in my triggers. It's not necessary in the item prototypes, it's just me testing stuff. Only thing i can see that is different, is that the {#PRINTERNAME} and {#LOCATION} is not an index, but a single value.
I'm trying out the new snmp agent walk[] in our newly upgraded Zabbix 7.0.
I've made a master walk item in a template i'm going to deploy to our newly bought Ricoh printers. I have tried following this blogpost:
https://blog.zabbix.com/improving-sn...lection/27231/
The master walker is a snmp agent and using this as SNMP OID: walk[.1.3.6.1.2.1.1,.1.3.6.1.2.1.43.8.2.1,.1.3.6.1.4.1. 367.3.2.1.6.1.1]
It gets these values: Other OID strings are removed for redundancy.
.1.3.6.1.2.1.1.6.0 = STRING: "room number 231"
.1.3.6.1.2.1.43.8.2.1.9.1.1 = INTEGER: 550
.1.3.6.1.2.1.43.8.2.1.9.1.2 = INTEGER: 550
.1.3.6.1.2.1.43.8.2.1.9.1.3 = INTEGER: 100
.1.3.6.1.2.1.43.8.2.1.10.1.1 = INTEGER: 55
.1.3.6.1.2.1.43.8.2.1.10.1.2 = INTEGER: 55
.1.3.6.1.2.1.43.8.2.1.10.1.3 = INTEGER: 0
.1.3.6.1.2.1.43.8.2.1.13.1.1 = STRING: "Tray 1"
.1.3.6.1.2.1.43.8.2.1.13.1.2 = STRING: "Tray 2"
.1.3.6.1.2.1.43.8.2.1.13.1.3 = STRING: "Bypass Tray"
.1.3.6.1.4.1.367.3.2.1.6.1.1.7.1 = STRING: "Printer Device name here"
I have then created a discovery rule as an dependent item to my master walker, with preprocessing: SNMP walk to JSON with all my macros and OID prefix. I need all for my item prototype.
Field name: OID:
{#TRAYNAME} 1.3.6.1.2.1.43.8.2.1.13.1
{#TRAYCURRENTVAL} 1.3.6.1.2.1.43.8.2.1.10.1
{#TRAYMAXVAL} 1.3.6.1.2.1.43.8.2.1.9.1
{#PRINTERNAME} 1.3.6.1.4.1.367.3.2.1.6.1.1.7.1
{#LOCATION} 1.3.6.1.2.1.1.6.0
In my item prototypes and trigger prototype(The item prototypes are also dependent on the master walker), i can get {#TRAYNAME} to work in the name field of the trigger. The {#TRAYCURRENTVAL} and {#TRAYMAXVAL} also work, as i get these values into my item prototypes as numeric, they are preprocessed in the item prototypes as SNMP walk value, and then the full OID: 1.3.6.1.2.1.43.8.2.1.10.1.{#SNMPINDEX}
Where my problem is, is that the value for {#PRINTERNAME} and {#LOCATION}, doesn't show in either prototypes. I can see in the master walk on the host i get the values. But on the host, my item prototypes are called:
Item prototype: Printer {#PRINTERNAME}, {#LOCATION}, {#TRAYNAME} Current Level
Item on host: Printer {#PRINTERNAME}, {#LOCATION}, Tray 1 Current Level
What could I have configured wrong, as i need the printer name and location values in my triggers. It's not necessary in the item prototypes, it's just me testing stuff. Only thing i can see that is different, is that the {#PRINTERNAME} and {#LOCATION} is not an index, but a single value.