Hi All
I wondering if zabbix is able to query all values within an OID Table. What I would like to do is check all the values within a table, and return the number of values that do not equal 2.
So the case at hand, the OID is 1.3.6.1.4.1.6527.3.1.2.8.5.1.6.1.0. This contains:
1.3.6.1.4.1.6527.3.1.2.8.5.1.6.1.0.172.16.0.1: 2
1.3.6.1.4.1.6527.3.1.2.8.5.1.6.1.0.172.16.0.3: 2
1.3.6.1.4.1.6527.3.1.2.8.5.1.6.1.0.172.16.0.4: 2
1.3.6.1.4.1.6527.3.1.2.8.5.1.6.1.0.172.16.0.5: 2
So in this case I would like 0 to be returned. However if say the data returned from SNMP was:
1.3.6.1.4.1.6527.3.1.2.8.5.1.6.1.0.172.16.0.1: 3
1.3.6.1.4.1.6527.3.1.2.8.5.1.6.1.0.172.16.0.3: 2
1.3.6.1.4.1.6527.3.1.2.8.5.1.6.1.0.172.16.0.4: 1
1.3.6.1.4.1.6527.3.1.2.8.5.1.6.1.0.172.16.0.5: 2
I would like 2 to be returned.
Any ideas how I can do such?
Thanks
David
I wondering if zabbix is able to query all values within an OID Table. What I would like to do is check all the values within a table, and return the number of values that do not equal 2.
So the case at hand, the OID is 1.3.6.1.4.1.6527.3.1.2.8.5.1.6.1.0. This contains:
1.3.6.1.4.1.6527.3.1.2.8.5.1.6.1.0.172.16.0.1: 2
1.3.6.1.4.1.6527.3.1.2.8.5.1.6.1.0.172.16.0.3: 2
1.3.6.1.4.1.6527.3.1.2.8.5.1.6.1.0.172.16.0.4: 2
1.3.6.1.4.1.6527.3.1.2.8.5.1.6.1.0.172.16.0.5: 2
So in this case I would like 0 to be returned. However if say the data returned from SNMP was:
1.3.6.1.4.1.6527.3.1.2.8.5.1.6.1.0.172.16.0.1: 3
1.3.6.1.4.1.6527.3.1.2.8.5.1.6.1.0.172.16.0.3: 2
1.3.6.1.4.1.6527.3.1.2.8.5.1.6.1.0.172.16.0.4: 1
1.3.6.1.4.1.6527.3.1.2.8.5.1.6.1.0.172.16.0.5: 2
I would like 2 to be returned.
Any ideas how I can do such?
Thanks
David
Comment