annotate muninplugin @ 31:39bf6dec0753

Add 5 year graphs
author Daniel O'Connor <darius@dons.net.au>
date Sat, 14 Nov 2020 14:10:50 +1030
parents 08cddcdb0db3
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
9
8b5958404f81 Add support for running as a munin plugin and a simple wrapper script.
Daniel O'Connor <darius@dons.net.au>
parents:
diff changeset
1 #!/bin/sh
8b5958404f81 Add support for running as a munin plugin and a simple wrapper script.
Daniel O'Connor <darius@dons.net.au>
parents:
diff changeset
2
8b5958404f81 Add support for running as a munin plugin and a simple wrapper script.
Daniel O'Connor <darius@dons.net.au>
parents:
diff changeset
3 # Create symlinks
8b5958404f81 Add support for running as a munin plugin and a simple wrapper script.
Daniel O'Connor <darius@dons.net.au>
parents:
diff changeset
4 # ln -fs /home/darius/projects/adslstats/muninplugin /usr/local/etc/munin/plugins/adslstats_signal
8b5958404f81 Add support for running as a munin plugin and a simple wrapper script.
Daniel O'Connor <darius@dons.net.au>
parents:
diff changeset
5 # ln -fs /home/darius/projects/adslstats/muninplugin /usr/local/etc/munin/plugins/adslstats_sync
8b5958404f81 Add support for running as a munin plugin and a simple wrapper script.
Daniel O'Connor <darius@dons.net.au>
parents:
diff changeset
6 #
8b5958404f81 Add support for running as a munin plugin and a simple wrapper script.
Daniel O'Connor <darius@dons.net.au>
parents:
diff changeset
7 # Add entry to /usr/local/etc/munin/plugin-conf.d/plugins.conf
8b5958404f81 Add support for running as a munin plugin and a simple wrapper script.
Daniel O'Connor <darius@dons.net.au>
parents:
diff changeset
8 # [adslstats_*]
8b5958404f81 Add support for running as a munin plugin and a simple wrapper script.
Daniel O'Connor <darius@dons.net.au>
parents:
diff changeset
9 # user darius
30
08cddcdb0db3 fix Munin plugin
Daniel O'Connor <darius@dons.net.au>
parents: 11
diff changeset
10 # env.HOME /home/darius
9
8b5958404f81 Add support for running as a munin plugin and a simple wrapper script.
Daniel O'Connor <darius@dons.net.au>
parents:
diff changeset
11
11
0e1399e48678 Don't point at dev dir
Daniel O'Connor <darius@dons.net.au>
parents: 9
diff changeset
12 /usr/local/bin/python2 /home/darius/projects/adslstats/adslstats.py -m $0 $1
30
08cddcdb0db3 fix Munin plugin
Daniel O'Connor <darius@dons.net.au>
parents: 11
diff changeset
13