View Full Version : Monitoring Load Average with SNMP
chocho63
27-10-2005, 16:17
I would like to monitor load average with Net-SNMP, but the SNMP variable is STRING and I can't graph it.
UCD-SNMP-MIB::laLoad.2 = STRING: 0.48
Could it be possible to graph a string or to use a function in Zabbix to convert it to a numeric without using an external script ?
James Wells
27-10-2005, 16:26
Greetings,
I am not sure if this would work, but I believe you can configure the system to treat the data as numeric. The DB doesn't care what format the data is in as long as it fits within the field limitations, nor does the server, unless you have a trigger associated with it.
chocho63
27-10-2005, 16:46
It doesn't work; I've always tried it. I've got this error :
Cannot store SNMP string value (ASN_OCTET_STR) in item having numeric type
UCD-SNMP-MIB::laLoadInt.2 = INTEGER: 12
but be aware that the load is an integer! That means that your actual load value is multiplied by 100. There's also a laLoad for floats but I didn't get it to work with zabbix.
UCD-SNMP-MIB::laLoadFloat.2 = Opaque: Float: 0.170000
Regards,
Frank.
chocho63
28-10-2005, 09:20
Thanks, it works well. I had not seen it with a snmpwalk.
Just because I'm curious. Do you use snmpv3 or v2c?
Regards,
Frank.
chocho63
28-10-2005, 13:20
I use SNMP v2c