collectd custom configuration

  • Hi everyone,

    I would like to configure collectd to export data (which is already collected as part of the monitoring features of OMV) to an external instance.


    In particular I'd like to modify /etc/collectd/collectd.conf

    Code
    PIDFile "/run/collectd.pid"
    Hostname "localhost"
    FQDNLookup true
    
    
    <Include "/etc/collectd/collectd.conf.d">
    Filter "*.conf"
    </Include>

    adding the network plugin:


    Code
    <Plugin network>
      <Server "Server IP" "port"> </Server>
      ReportStats true
    </Plugin>


    My question is wether or not should I modify /etc/collectd/collectd.conf or it will be overwritten at the next OMV update or salt run.


    Any hint?

    • Offizieller Beitrag

    My question is wether or not should I modify /etc/collectd/collectd.conf or it will be overwritten at the next OMV update or salt run.

    Because collectd.conf is just a run-parts config file, if you want something to persist, just put it in a new file in /etc/collectd/collectd.conf.d/

    omv 7.0.5-1 sandworm | 64 bit | 6.8 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.13 | compose 7.2 | k8s 7.1.0-3 | cputemp 7.0.1 | mergerfs 7.0.4 | scripts 7.0.1


    omv-extras.org plugins source code and issue tracker - github - changelogs


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • ok so if I ad a new .conf file in /etc/collectd/collectd.conf.d/ it will persist? Or at somepoint some update will rewrite everything?

    OMV shouldn't touch anything you added into that folder.

    --
    Google is your friend and Bob's your uncle!


    OMV AMD64 7.x on headless Chenbro NR12000 1U 1x 8m Quad Core E3-1220 3.1GHz 32GB ECC RAM.

  • votdev

    Hat das Label gelöst hinzugefügt.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!