[collectd] exec plugin never runs, no errors reported

Jacob Bisby Jacob.Bisby at uniscope.com.au
Mon Aug 6 02:32:04 CEST 2018

You can recompile collectd with debug logging (LogLevel debug) support - it's a little annoying having to do so (rather than just getting a deb/rpm with it already enabled) but the logs are extremely verbose and very helpful for tracking down issues like this. I would suggest doing that first and seeing what you can find.

- Jacob Bisby

-----Original Message-----
From: collectd <collectd-bounces at verplant.org> On Behalf Of Lonni J Friedman
Sent: Monday, 6 August 2018 12:18 AM
To: collectd at verplant.org
Subject: [collectd] exec plugin never runs, no errors reported

I'm running collectd-5.8.0 on a Linux server.  I recently added an Exec plugin which invokes a small python script that I wrote to capture weather data.  If I run the script manually, it behaves as expected, generating the following output over time:

$ /etc/collectd.d/get_weather.py
PUTVAL "hal/exec-weather/temperature-weather_level" interval=90 N:67.1 PUTVAL "hal/exec-weather/temperature-weather_level" interval=90 N:67.1 PUTVAL "hal/exec-weather/temperature-weather_level" interval=90 N:67.6

However, collectd never seems to run the plugin at all, and also isn't generating any errors.  I'm logging everything from collectd into its own dedicated log:

<Plugin logfile>
    LogLevel info
    File "/var/log/collectd.log"
    Timestamp true
    PrintSeverity true

I have the following configured for the exec plugin:
<Plugin exec>
    Exec "netllama" "/etc/collectd.d/get_weather.py"

When I (re)start collectd, I see the following in /var/log/collectd.log:

[2018-08-05 09:07:22] [info] plugin_load: plugin "exec" successfully loaded.

But no other messages related to the plugin, and the script itself is not running.  At this point, I'm at a loss how to debug further when nothing is being logged. Even if something was failing, shouldn't it log something somewhere?

Thanks for any suggestions.

collectd mailing list
collectd at verplant.org

More information about the collectd mailing list