Check supervisor status for collectd
Find a file
2026-10-03 23:53:16 -05:00
collectd_supervisor.py consider a program "not running" until it's been up for 10 seconds 2026-10-03 23:53:16 -05:00
README.md initial commit, basic 'running' check for multiple programs 2026-10-03 22:39:14 -05:00

collectd-supervisor

This module is designed be ran by collectd, via its python plugin interface.

It is largely inspired by https://github.com/mbachry/collectd-systemd/

Example usage:

LoadPlugin "python"

<Plugin "python">
    ModulePath "/usr/local/src/collectd-supervisor"
    Import "collectd_supervisor"

    # can enable this for debugging
    #LogTraces false

    <Module collectd_supervisor>

        # specify one or more programs to monitor
        Program "group1:application"
        Program "group1:task_runner"
        Program "group2:something"

        # can specify URL with credentials
        #ServerURL "http://username:password@localhost:9001/RPC2"

        # (but this is the default)
        #ServerURL "http://localhost:9001/RPC2"

        #Interval 60.0
        #Verbose false
    </Module>
</Plugin>