Ad Widget

Collapse

Howto convert string to integer

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ctyler2621
    Junior Member
    • Sep 2007
    • 3

    #1

    Howto convert string to integer

    I need to convert some strings from my radio equipment into integers but am not sure how to go about doing this and then getting that data into zabbix.

    Here are some of the values that I am trying to graph with the exact return that is given from net-snmp:

    $ snmpwalk -v2c -c xxxxxx xxx.xxx.xxx.xxx satellitesTracked
    CMM3-MIB::satellitesTracked.0 = STRING: 8

    $ snmpwalk -v2c -c xxxxxx xxx.xxx.xxx.xxx radioDbm
    WHISP-SM-MIB::radioDbm.0 = STRING: -50 dBm

    I really like zabbix and the way it works so far and If someone could help me get this straight, I think I'm golden. If not, I'll have to scrap the zabbix install and figure out something else to use.
Working...