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

_______________________________________________
collectd mailing list
collectd@verplant.org
https://mailman.verplant.org/listinfo/collectd

Reply via email to