as it is impossible to register single oid for mib polling I decided to run script on localhost and use snmp extend and then graph it, but unfortunately oids made by extend are string and even if I register them in os definitions file they will not graph.
is it possible to convert these values to integer so I can graph them?
as you can see value is string, and I have no idea how I can force netsnmp to make it integer.
NET-SNMP-EXTEND-MIB::nsExtendOutLine.“xrate”.6 = STRING: 2.7800
my final target is to graph these two values
NET-SNMP-EXTEND-MIB::nsExtendOutput1Line.“activ” = STRING: 15430
NET-SNMP-EXTEND-MIB::nsExtendOutput1Line.“xrate” = STRING: 2.7800
I have the same issue but not found how to solve it.
The device SNMP server send me textual information for temperature and i want to convert it to numerical value to graph it and implement alerting.
Information received : 1.3.6.1.4.1.30586.20.0.9.0 = “32.437000” [ASN_OCTET_STR]
poller Debug : Warning: A non-numeric value encountered in /opt/librenms/includes/polling/functions.inc.php on line 167
Is there a predefined “user_func” to be declared in yaml file or do i have to implement the discovery & polling in php with my own conversion ?