From: Michael Gernoth Date: Thu, 17 Jan 2013 11:50:12 +0000 (+0100) Subject: modified i4 temperature config X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/upsgraph/commitdiff_plain/2ce46592475b7148e6aeb6e298b11eac5a26d8d6 modified i4 temperature config --- diff --git a/i4-temperature.conf b/i4-temperature.conf new file mode 100644 index 0000000..08debcc --- /dev/null +++ b/i4-temperature.conf @@ -0,0 +1,101 @@ +package UPSGRAPH; + +$outdir="/var/www/temperature/"; +$step=60; + +$hosts = [ + { + 'address' => "131.188.42.24", + 'name' => "klimaschrank", + 'rrdfile' => "/var/www/temperature/.work/klimaschrank.rrd", + + 'fields' => [ 'kaltw', 'vorlauf', 'ruecklauf', 'abluft', 'raum' ], + + 'vars' => { + 'kaltw' => { + 'name' => 'Kaltwasser', + 'port' => '1337', + 'proto' => 'tcp_multi', + 'multi_id' => '6328', + 'multi_delimiter' => " ", + }, + 'vorlauf' => { + 'name' => 'Vorlauftemperatur', + 'port' => '1337', + 'proto' => 'tcp_multi', + 'multi_id' => '2d28', + 'multi_delimiter' => " ", + }, + 'ruecklauf' => { + 'name' => 'Ruecklauftemperatur', + 'port' => '1337', + 'proto' => 'tcp_multi', + 'multi_id' => '5228', + 'multi_delimiter' => " ", + }, + 'abluft' => { + 'name' => 'Ablufttemperatur', + 'port' => '1337', + 'proto' => 'tcp_multi', + 'multi_id' => 'f528', + 'multi_delimiter' => " ", + }, + 'raum' => { + 'name' => 'Raumtemperatur', + 'port' => '1337', + 'proto' => 'tcp_multi', + 'multi_id' => '9028', + 'multi_delimiter' => " ", + }, + } + }, + { + 'address' => "192.168.34.253", + 'name' => "faui4usv", + 'rrdfile' => "/var/www/temperature/.work/ups.rrd", + 'community' => "public", + + 'fields' => [ 'battT', 'ambT', 'ambH' ], + + 'vars' => { + 'battT' => { + 'name' => 'Battery Temperature', + 'oidtext' => 'PowerNet-MIB::upsAdvBatteryTemperature.0', + 'oid' => '1.3.6.1.4.1.318.1.1.1.2.2.2.0', + 'min' => '0', + 'max' => '100', + }, + 'ambT' => { + 'name' => 'Ambient Temperature', + 'oidtext' => 'PowerNet-MIB::mUpsEnvironAmbientTemperature.0', + 'oid' => '1.3.6.1.4.1.318.1.1.2.1.1.0', + 'min' => '0', + 'max' => '60', + }, + 'ambH' => { + 'name' => 'Ambient Humidity', + 'oidtext' => 'PowerNet-MIB::mUpsEnvironRelativeHumidity.0', + 'oid' => '1.3.6.1.4.1.318.1.1.2.1.2.0', + 'min' => '0', + 'max' => '100', + }, + } + }, + { + 'address' => "131.188.34.37", + 'name' => "0.057", + 'rrdfile' => "/var/www/temperature/.work/0057.rrd", + + 'fields' => [ '0057-raum' ], + + 'vars' => { + '0057-raum' => { + 'name' => 'I4 Serverraum 0.057 Raumtemperatur', + 'port' => '1337', + 'proto' => 'tcp', + }, + } + }, +]; + +1; diff --git a/klimaschrank.conf b/klimaschrank.conf deleted file mode 100644 index 8acd1c2..0000000 --- a/klimaschrank.conf +++ /dev/null @@ -1,54 +0,0 @@ -package UPSGRAPH; - -$outdir="/var/www/klimaschrank/"; -$step=60; - -$hosts = [ - { - 'address' => "131.188.42.24", - 'name' => "klimaschrank", - 'rrdfile' => "/var/www/klimaschrank/.work/klimaschrank.rrd", - - 'fields' => [ 'kaltw', 'vorlauf', 'ruecklauf', 'abluft', 'raum' ], - - 'vars' => { - 'kaltw' => { - 'name' => 'Kaltwasser', - 'port' => '1337', - 'proto' => 'tcp_multi', - 'multi_id' => '6328', - 'multi_delimiter' => " ", - }, - 'vorlauf' => { - 'name' => 'Vorlauftemperatur', - 'port' => '1337', - 'proto' => 'tcp_multi', - 'multi_id' => '2d28', - 'multi_delimiter' => " ", - }, - 'ruecklauf' => { - 'name' => 'Ruecklauftemperatur', - 'port' => '1337', - 'proto' => 'tcp_multi', - 'multi_id' => '5228', - 'multi_delimiter' => " ", - }, - 'abluft' => { - 'name' => 'Ablufttemperatur', - 'port' => '1337', - 'proto' => 'tcp_multi', - 'multi_id' => 'f528', - 'multi_delimiter' => " ", - }, - 'raum' => { - 'name' => 'Raumtemperatur', - 'port' => '1337', - 'proto' => 'tcp_multi', - 'multi_id' => '9028', - 'multi_delimiter' => " ", - }, - } - }, -]; - -1;