Ad Widget

Collapse

Translation of a string SNMP OID to a integer before storage?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lbergman
    Junior Member
    • Feb 2005
    • 13

    #1

    Translation of a string SNMP OID to a integer before storage?

    I have an OID I need to graph. I would like to compare it to another integer on the same graph. The problem is whoever the nutcase is that designed the MIB made it a string. The format it outputs as is -> .1.3.6.1.4.1.161.19.3.2.2.8.0 = STRING: "-65 dBM" . So I need a way to get the "65" or even the "-65" out of the complete string. I haven't found anything built in zabbix at this point that would let me do this. Is there any thought to allowing more of a free form regexp type store value ability?
  • cooper
    Senior Member
    • Sep 2004
    • 110

    #2
    I am guessing this is a wireless AP you are querying, and as such you can't manipulate or script the info on the device and use zabbix_sender. The only way would be to use a script on the zabbix server to grab the snmp then cut/awk/sed/whatever you prefer, the value down to -65 and then use zabbix_sender to feed it to zabbix_server. I am pretty sure that zabbix will happily accept negative numbers.

    HTH

    cooper

    Comment

    • lbergman
      Junior Member
      • Feb 2005
      • 13

      #3
      Yes, it is an embedded wireless device. I am new to zabbix so I don't know anything about zabbix_sender. I'll have to learn a bit. Since then I have discovered the next release of the software on the device corrects the MIB mistake so at least for this purpose it won't be neccessary. I might need it in the future. Thanks..

      Comment

      Working...