From: Benjamin Oechslein Date: Mon, 8 Dec 2014 22:52:27 +0000 (+0100) Subject: Add test configuration using configurable graphs X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/upsgraph/commitdiff_plain/ff676c3d5fb3d5128647639bbcc04ab6face7656?ds=sidebyside Add test configuration using configurable graphs --- diff --git a/test.conf b/test.conf new file mode 100644 index 0000000..c4e7955 --- /dev/null +++ b/test.conf @@ -0,0 +1,45 @@ +package UPSGRAPH; + +$outdir="/home/benjamin/scratchpad/upsgraph/out/"; +$step=60; + +$hosts = [ + { + 'address' => "faui40d.informatik.uni-erlangen.de", + 'name' => "I4", + 'rrdfile' => "/home/benjamin/scratchpad/upsgraph/out/50.rrd", + + 'fields' => [ '0050-raum' ], + + 'vars' => { + '0050-raum' => { + 'name' => 'Raum 0.050', + 'port' => '1337', + 'proto' => 'tcp', + }, + } + }, + { + 'address' => "phony.informatik.uni-erlangen.de", + 'name' => "I4", + 'rrdfile' => "/home/benjamin/scratchpad/upsgraph/out/out.rrd", + + 'fields' => [ 'out' ], + + 'vars' => { + 'out' => { + 'name' => 'Außentemperatur', + 'port' => '31338', + 'proto' => 'tcp', + 'max' => '50', + 'graph' => { + 'day' => [ 'avg' ], + 'week' => [ 'avg', 'day-max', 'day-min' ], + 'year' => [ 'day-max', 'day-min' ], + }, + }, + } + }, +]; + +1;