mirror of
https://github.com/shakemid/pcsensor-temper.git
synced 2025-01-21 09:08:17 +01:00
Add document for munin-plugin
This commit is contained in:
parent
5bff0d64d2
commit
04ebf0e6f4
1 changed files with 76 additions and 1 deletions
|
@ -1,7 +1,82 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# -*- sh -*-
|
# -*- sh -*-
|
||||||
|
|
||||||
# Munin plugin for TEMPer
|
: << =cut
|
||||||
|
|
||||||
|
=head1 NAME
|
||||||
|
|
||||||
|
temper - Munin plugin to monitor temperature with PCsensor/TEMPer
|
||||||
|
|
||||||
|
=head1 CONFIGURATION
|
||||||
|
|
||||||
|
Install pcsensor command:
|
||||||
|
git clone https://github.com/shakemid/pcsensor-temper
|
||||||
|
cd pcsensor-temper
|
||||||
|
make
|
||||||
|
cp pcsensor /usr/local/bin/
|
||||||
|
|
||||||
|
Make symlink:
|
||||||
|
cp munin-plugin/temper /path/to/munin/lib/plugins/
|
||||||
|
cd /path/to/munin/etc/plugins/
|
||||||
|
ln -s /path/to/munin/lib/plugins/temper .
|
||||||
|
|
||||||
|
=head1 ENVIRONMENT VARIABLES
|
||||||
|
|
||||||
|
env.pcsensor - path to pcsensor command
|
||||||
|
example: env.pcsensor /usr/bin/pcsensor
|
||||||
|
default: /usr/local/bin/pcsensor
|
||||||
|
|
||||||
|
env.device - device number to monitor
|
||||||
|
example: env.device 1
|
||||||
|
default: 0
|
||||||
|
|
||||||
|
env.cdef - formula for calibration
|
||||||
|
example: env.cdef temperature,1.0287,*,0.85,-
|
||||||
|
default: none
|
||||||
|
|
||||||
|
The formula means temperature * 1.0287 - 0.85
|
||||||
|
For more information about CDEF, see https://oss.oetiker.ch/rrdtool/tut/cdeftutorial.en.html
|
||||||
|
|
||||||
|
=head1 EXAMPLE
|
||||||
|
|
||||||
|
Example setting for aggregate multiple temper graphs into one graph,
|
||||||
|
|
||||||
|
[TEMPer]
|
||||||
|
update no
|
||||||
|
|
||||||
|
temper.update no
|
||||||
|
temper.graph_category sensor
|
||||||
|
temper.graph_args --base 1000
|
||||||
|
temper.graph_scale no
|
||||||
|
temper.graph_title TEMPer
|
||||||
|
temper.graph_vlabel Temp C
|
||||||
|
|
||||||
|
temper.graph_order \
|
||||||
|
temperature_1=group;host1:temper.temperature \
|
||||||
|
temperature_2=group;host2:temper.temperature \
|
||||||
|
temperature_3=group;host3:temper.temperature
|
||||||
|
|
||||||
|
temper.temperature_1.cdef temperature_1,1.02,*,0.38,-
|
||||||
|
temper.temperature_2.cdef temperature_2,0.97,*,1.22,-
|
||||||
|
temper.temperature_3.cdef temperature_3,0.93,*,0.55,-
|
||||||
|
|
||||||
|
For more information about graph aggregation,
|
||||||
|
see http://guide.munin-monitoring.org/en/latest/example/graph/aggregate.html
|
||||||
|
|
||||||
|
=head1 AUTHOR
|
||||||
|
|
||||||
|
K.Cima https://github.com/shakemid
|
||||||
|
|
||||||
|
=head1 LICENSE
|
||||||
|
|
||||||
|
GPLv2
|
||||||
|
|
||||||
|
=head1 Magic markers
|
||||||
|
|
||||||
|
#%# family=contrib
|
||||||
|
#%# capabilities=
|
||||||
|
|
||||||
|
=cut
|
||||||
|
|
||||||
. "${MUNIN_LIBDIR}/plugins/plugin.sh"
|
. "${MUNIN_LIBDIR}/plugins/plugin.sh"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue