collectd errors

  • I have just grown my raid5 array and also installed a bunch of updates. My syslog file is filled with collectd errors, the graphs all seem to be generating ok. OMV Version is 3.0.99


    Here is a snip from the syslog file


    Jun 19 09:24:07openmediavault monit[2340]: 'collectd' failed to start (exit status 0) -- nooutput
    Jun 19 09:24:37 openmediavault monit[2340]: 'collectd' process is notrunning
    Jun 19 09:24:37 openmediavault monit[2340]: 'collectd' trying to restart
    Jun 19 09:24:37 openmediavault monit[2340]: 'collectd' start:/bin/systemctl
    Jun 19 09:25:07 openmediavault monit[2340]: 'collectd' failed to start (exitstatus 0) -- no output
    Jun 19 09:25:38 openmediavault monit[2340]: 'collectd' process is notrunning
    Jun 19 09:25:38 openmediavault monit[2340]: 'collectd' trying to restart
    Jun 19 09:25:38 openmediavault monit[2340]: 'collectd' start:/bin/systemctl
    Jun 19 09:26:08 openmediavault monit[2340]: 'collectd' failed to start (exitstatus 0) -- no output
    Jun 19 09:26:38 openmediavault monit[2340]: 'collectd' process is notrunning
    Jun 19 09:26:38 openmediavault monit[2340]: 'collectd' trying to restart




    Here is the contents of the collectd.conf file


    root@openmediavault:~# cat /etc/collectd/collectd.conf
    PIDFile "/var/run/collectd.pid"
    Hostname "localhost"
    FQDNLookup true
    LoadPlugin syslog
    <Plugin syslog>
    LogLevel info
    </Plugin>
    LoadPlugin rrdcached
    <Plugin rrdcached>
    DaemonAddress "unix:/var/run/rrdcached.sock"
    DataDir "/var/lib/rrdcached/db/"
    CreateFiles true
    CollectStatistics true
    </Plugin>
    LoadPlugin unixsock
    <Plugin unixsock>
    SocketFile "/var/run/collectd.socket"
    SocketGroup "root"
    SocketPerms "0660"
    </Plugin>
    LoadPlugin cpu
    LoadPlugin df
    <Plugin df>
    MountPoint "/"
    MountPoint "/srv/dev-disk-by-label-Vol0"
    IgnoreSelected false
    </Plugin>
    LoadPlugin interface
    <Plugin interface>
    Interface "eth0"
    IgnoreSelected false
    </Plugin>
    LoadPlugin load
    LoadPlugin memory
    root@openmediavault:~#


    Can I please get some assistance to stop those logs? Many Thanks

  • Hello Thanks very much for your support


    root@openmediavault:~# systemctl restart collectd
    root@openmediavault:~# systemctl status collectd
    ● collectd.service - Statistics collection and monitoring daemon
    Loaded: loaded (/lib/systemd/system/collectd.service; enabled; vendor preset: enabled)
    Active: active (running) since Tue 2018-06-19 20:26:10 AEST; 15s ago
    Docs: man:collectd(1)
    man:collectd.conf(5)
    https://collectd.org
    Process: 1446 ExecStartPre=/usr/sbin/collectd -t (code=exited, status=0/SUCCESS)
    Main PID: 1449 (collectd)
    CGroup: /system.slice/collectd.service
    └─1449 /usr/sbin/collectd


    Jun 19 20:26:10 openmediavault collectd[1449]: plugin_load: plugin "rrdcached" successfully loaded.
    Jun 19 20:26:10 openmediavault collectd[1449]: plugin_load: plugin "unixsock" successfully loaded.
    Jun 19 20:26:10 openmediavault collectd[1449]: plugin_load: plugin "cpu" successfully loaded.
    Jun 19 20:26:10 openmediavault collectd[1449]: plugin_load: plugin "df" successfully loaded.
    Jun 19 20:26:10 openmediavault collectd[1449]: plugin_load: plugin "interface" successfully loaded.
    Jun 19 20:26:10 openmediavault collectd[1449]: plugin_load: plugin "load" successfully loaded.
    Jun 19 20:26:10 openmediavault collectd[1449]: plugin_load: plugin "memory" successfully loaded.
    Jun 19 20:26:10 openmediavault collectd[1449]: Systemd detected, trying to signal readyness.
    Jun 19 20:26:10 openmediavault systemd[1]: Started Statistics collection and monitoring daemon.
    Jun 19 20:26:10 openmediavault collectd[1449]: Initialization complete, entering read-loop.
    root@openmediavault:~#

  • The contents of /etc/monit/conf.d/openmediavault-collectd.conf are below.

    Code
    # cat /etc/monit/conf.d/openmediavault-collectd.conf
    check process collectd with pidfile /var/run/collectd.pid
    start program = "/bin/systemctl start collectd"
    stop program = "/bin/systemctl stop collectd"
    mode active

    Contents of /var/run/ shown below.



    Code
    root@openmediavault:/etc/monit/conf.d# ls /var/run/*.pid
    /var/run/acpid.pid  /var/run/monit.pid  /var/run/omv-engined.pid  /var/run/rpcbind.pid    /var/run/rsyslogd.pid
    /var/run/crond.pid  /var/run/nginx.pid  /var/run/php5-fpm.pid     /var/run/rrdcached.pid  /var/run/sshd.pid



    There is no /var/run/collectd.pid file, which seems to cause monit to restart collectd over and over. There is however, a /var/run/collectd.socket file.


    I quickly changed /etc/monit/conf.d/openmediavault-collectd.conf to the following

    Code
    check file collectd path /var/run/collectd.socket
    start program = "/bin/systemctl start collectd"
    stop program = "/bin/systemctl stop collectd"
    mode active


    Which has stopped the error messages in the logs but I'm not sure this is the correct way to solve the problem. Is collectd supposed to be creating the .pid file?

  • Code
    root@openmediavault:~# dpkg -l | grep collect
    ii  bsdmainutils                    9.0.6                            amd64        collection of more utilities from FreeBSD
    ii  collectd                        5.7.0-3~bpo8+1                   amd64        statistics collection and monitoring daemon
    ii  collectd-core                   5.7.0-3~bpo8+1                   amd64        statistics collection and monitoring daemon (core system)
    ii  libtimedate-perl                2.3000-2                         all          collection of modules to manipulate date/time information

    hi here is the output

Jetzt mitmachen!

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