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

Sergey a_s_y at sama.ru
Sun Nov 28 14:55:30 CET 2021


On Sunday 28 November 2021, Sergey wrote:
> 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:

Hm. I did it:

<Chain "PostCache">
    <Rule "replace_space in_name_file">
        <Target "replace">
            typeinstance " " "_"
        </Target>
    </Rule>

    # Default target
    Target "write"
</Chain>

-- 
Regards,
Sergey



More information about the collectd mailing list