Some SNMP devices return boolean values as a TruthValue textual convention, 
where 1 means true and 2 means false.  This is confusing to me, because 
with most other devices I usually use 0 to mean false.  I tried using regex 
to change 2 to 0 (shown below) but this didn't work.  How do other folks 
handle TruthValues with snmp-exporter?

      cdcp4415RgbIlsInstalled:
        regex_extracts:
          '':
            - regex: '2'
              value: 1

This is how the value looks with net-snmp:

% snmpwalk -v2c -c public 10.37.154.146 
CDS-PJTR-CP4415RGB::cdcp4415RgbIlsInstalled

CDS-PJTR-CP4415RGB::cdcp4415RgbIlsInstalled.0 = INTEGER: true(1)

-- 
You received this message because you are subscribed to the Google Groups 
"Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/prometheus-users/5c5cc8e4-2353-44b4-b41c-05208835800fn%40googlegroups.com.

Reply via email to