Custom OID : test Value different from Graph


Following Checkpoint Tip ( ), I’ve created a custom OID returning the number of connected VPN users. It returns a string, as follow:

$ snmpwalk -v2c -c comunity
iso. = STRING: “102”

After that, I’ve added in LibreNMS, a custom OID to my device.

If I “Test OID” the response is correct. (values between 20 and 100)

But when I go to Graphs - Custom OID, the values shown are incorrected!

What am I doing wrong???

    Component | Version
    --------- | -------
    LibreNMS  | 1.67-29-ge0a076455
    DB Schema | 2020_08_28_212054_drop_uptime_column_outages (173)
    PHP       | 7.2.24-0ubuntu0.18.04.7
    Python    | 3.6.9
    MySQL     | 10.1.47-MariaDB-0ubuntu0.18.04.1
    RRDTool   | 1.7.0
    SNMP      | NET-SNMP 5.7.3

After updating to 1.69… the same occurs.

Different values in Test OID" and Graphs

I don’t think it’s going to work with a string value. You’d probably have to somehow modify that .sh file spit out an numeric data type at the OID instead.