Cannot pull values from check_snmp service to GRAPHITE

I just added some services that gives me some values of an UPS using snmp oids; check_snmp.

The problem comes when I try to implement Graphite on those services, the problem goes when specifying what values will Graphite take:
$service_name_template$.perfdata.$check_snmp$.value

Due to the $check_snmp$ variable the real command looks like this:

icinga2.my-ups.services.TempUPS.UPS_Temp.perfdata.iso.3.6.1.2.1.33.1.2.7.0.value

Since graphite uses the POINT CHARACTER (.) as separation marker when it reads the last value, it reads a null.

I’ve seen a parameter inside check_snmp value snmp_perf_oids that uses OIDS as labels but I don’t know how to implement it.

Thanks in advance.

AB

I think what you want/need is not using the OID as the perdata label.
Try using the -l / --label parameter of check_snmp, so you replace the OID with a text as perfdata label.

1 Like