[collectd] snmp, replace the space by the _ in filenames when write rrd

Sergey a_s_y at sama.ru
Sun Nov 28 12:16:13 CET 2021


Hello.

Some hardware have the space in ifDescr:

IF-MIB::ifDescr.1 = STRING: gigabitethernet 1/0/1

Can I replace it by the _ ? I seems what the target "replace"
can help me but I can't do it. For example, I tried this:

<Plugin snmp>
    <Data "std_sw_traffic64">
        <Target "replace">
            Instance " " "_"
        </Target>
        Type "if_octets"
        Table true
        Instance "IF-MIB::ifDescr"
        Values "IF-MIB::ifHCInOctets" "IF-MIB::ifHCOutOctets"
    </Data>
</Plugin>

-- 
Regards,
Sergey



More information about the collectd mailing list