Skip to content

Instantly share code, notes, and snippets.

@rhwood
rhwood / collectd-notify.py
Created August 4, 2021 19:42
Simple python script to send a collectd notification from the command line.
#!/usr/bin/python
#-*- coding: ISO-8859-1 -*-
# collectd-notify: send notifications to collectd from the command line
#
# Requires collectd to be configured with the unixsock plugin, like so:
#
# LoadPlugin unixsock
# <Plugin unixsock>
# SocketFile "/var/run/collectd-unixsock"
# SocketPerms "0775"