Hi,
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):
[[inputs.snmp]]
agents = [ “XXX.X.X.X:161” ]
timeout = “5s”
retries = 3
version = 2
community = “public”
name = “test”
[[inputs.snmp.field]]
name = “memTotalFree”
oid = “.1.3.6.1.4.1.2021.4.11.0”
[[inputs.snmp.field]]
name = “cpu_percent”
oid = “.1.3.6.1.4.1.2021.11.9.0”
[[inputs.snmp.field]]
name = “Ram_Used”
oid = “.1.3.6.1.4.1.2021.4.6.0”
[[inputs.snmp.table]]
#measurement name
name = “la_Table_I”
#inherit_tags = [ “” ]
oid = “.1.3.6.1.4.1.2021.10”
#[[inputs.snmp.table.field]]
#name = “load1-float”
#oid = “.1.3.6.1.4.1.2021.10.1.6.1”
#[[inputs.snmp.table.field]]
#name = “load5-float”
#oid = “.1.3.6.1.4.1.2021.10.1.6.2”
#[[inputs.snmp.table.field]]
#name = “load15-float”
#oid = “.1.3.6.1.4.1.2021.10.1.6.3”
#is_tag = true
2- Explanation :
I’ve declared the laTable “.1.3.6.1.4.1.2021.10” :
[[inputs.snmp.table]]
name = “la_Table_I”
oid = “.1.3.6.1.4.1.2021.10”
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 !