Failed to connect to RRDCacheD and Syntax Error in monit configuration

  • Hello,


    after upgrading, I see these errors in the log:

    Code
    Failed to connect to RRDCacheD


    I understand, that this can be fixed by deactivating and activating monitoring in the Web-Interface (source).
    But when doing that, I get:




    Code
    Failed to execute command 'export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin; export LANG=C; monit -t 2>&1' with exit code '1': /etc/monit/conf.d/openmediavault-filesystem.conf:3: syntax error '93OMV_SHAREDFOLDERS_DIR=/sharedfolders'


    The content of that file:


    Code
    root@homeserver:~# head  /etc/monit/conf.d/openmediavault-filesystem.conf
    # Alert if disk space of root filesystem gets low
    check filesystem rootfs with path /
      if space usage > 93OMV_SHAREDFOLDERS_DIR=/sharedfolders% for 5 times within 15 cycles
        then alert else if succeeded for 10 cycles then alert

    I think, here a variable is not being resolved, when writing the file?



    Greetings,
    Hendrik

  • same trouble for me after update omv3 to omv4 last week end, i solved it by replace collectd.conf in /etc/collectd/ by the new version of conf file and do (i have seen dpkg reconfigure error during update for this packet)
    rm -r /var/lib/rrdcached/db/localhost
    rm /var/lib/rrdcached/journal/*
    service collectd restart
    service rrdcached restart


    make sure you have no error when u launch service collectd status


    my conf file


    root@NAS:/etc/collectd# cat collectd.conf
    PIDFile "/var/run/collectd.pid"
    Hostname "localhost"
    FQDNLookup true


    <Include "/etc/collectd/collectd.conf.d">
    Filter "*.conf"
    </Include>

Jetzt mitmachen!

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