How to exploit the UCD-SNMP-MIB laLoad table with the TIG stack?

I use the Telegraf InfluxDB Grafana Stack.
I work with the UCD-SNMP-MIB and I can Exploit almost each OID except the Load Average.
In the MIB this metrics “loadaverage” are under the laTable (. with the laLoad OID (.
The problem is that this oid returns the three values (1, 5, 15 minutes load average). So I tried the three OID :

Load 1 : .
Load 5 : .
Load 15 :
I can see these values in InfluxDB but I can’t display them (no data) on Grafana.
So I thought "may be it is because we have a table in a table and we can’t manage this case) …

Did someone tried to exploit load average with snmp ?

Thank you for your help !

If you have the data in influxdb you can query it from. Grafana, what does your influxdb query look like and what is the response from influxdb?

1 Like

Hi, thank you for answering,

Yes, in InfluxDB I have 3 columns with the load average (1, 5, 15) (I don’t know how to send screenshot there).

In Grafana I can see the names I choosed for them (load1 ,load5, load15) in Telegraf.

But when I configure Grafana it is written “no data”.

I don’t have the problem with other OID from this MIB if they are not grouped in a table.

Edit :

I can show the MIB and the OID (highlights) in the screen below. You can see this OID “.” gives the 3 loads.

Or May be it is the format (string) ?

Must be something with your query or maybe the data. Open query inspector and inspect the response from InfluxDB:

I have some news that I’ll try to explain.

Now I can get the load average from the UCD-SNMP-MIB, but only the Int values (percentage).

What I did for that :

1- My Telegraf conf (input SNMP):

agents = [ “XXX.X.X.X:161” ]

timeout = “5s”
retries = 3
version = 2
community = “public”

name = “test”

name = “memTotalFree”
oid = “.”

name = “cpu_percent”
oid = “.”

name = “Ram_Used”
oid = “.”

#measurement name
name = “la_Table_I”
#inherit_tags = [ “” ]
oid = “.”

#name = “load1-float”
#oid = “.”
#name = “load5-float”
#oid = “.”
#name = “load15-float”
#oid = “.”
#is_tag = true

2- Explanation :

I’ve declared the laTable “.” :

name = “la_Table_I”
oid = “.”

3- In Grafana I have the measurement “la_Table_I” and I can choose laindexes 1, 2, 3 wich refers to load1, load5 and load15 :


I can choose the values in the table (laConfig …laLoad, laLoadInt …) :


Some remarks :

  • I only can graph the laLoadInt, no other field from this table…

  • Furthermore, some fields are missing from this table if you compare to what the UCD-SNMP-MIB offers (look at the screenshot in my first) for instance, laLoadFloat doesn’t appear.

  • I just had to add the snmp table, I tried with other OID as you can see in commentaries at the end of the telegraf conf, but this didn’t work.

Does anybody can explain why ?

Thank your for your time !