Mercurial > ~darius > hgwebdir.cgi > adslstats
diff muninplugin @ 9:8b5958404f81
Add support for running as a munin plugin and a simple wrapper script.
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Thu, 08 Jan 2015 11:17:40 +1030 |
parents | |
children | 0e1399e48678 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/muninplugin Thu Jan 08 11:17:40 2015 +1030 @@ -0,0 +1,11 @@ +#!/bin/sh + +# Create symlinks +# ln -fs /home/darius/projects/adslstats/muninplugin /usr/local/etc/munin/plugins/adslstats_signal +# ln -fs /home/darius/projects/adslstats/muninplugin /usr/local/etc/munin/plugins/adslstats_sync +# +# Add entry to /usr/local/etc/munin/plugin-conf.d/plugins.conf +# [adslstats_*] +# user darius + +/usr/local/bin/python2 /home/darius/projects/adslstats.dev/adslstats.py -m $0 $1