add example for tr7432
[upsgraph] / temperature.conf
1 package UPSGRAPH;
2
3 $outdir="/var/www/temperature/";
4 $step=60;
5
6 $hosts = [
7 {
8 'address' => "10.50.252.253",
9 'name' => "usv1",
10 'community' => "public",
11 'rrdfile' => "/var/spool/upsgraph/temp.usv1.rrd",
12
13 'fields' => [ 'battT', 'ambT', 'ambH' ],
14
15 'vars' => {
16 'battT' => {
17 'name' => 'Battery Temperature',
18 'oidtext' => 'PowerNet-MIB::upsAdvBatteryTemperature.0',
19 'oid' => '1.3.6.1.4.1.318.1.1.1.2.2.2.0',
20 },
21 'ambT' => {
22 'name' => 'Ambient Temperature',
23 'oidtext' => 'PowerNet-MIB::iemStatusProbeCurrentTemp.1',
24 'oid' => '1.3.6.1.4.1.318.1.1.10.2.3.2.1.4.1',
25 },
26 'ambH' => {
27 'name' => 'Ambient Humidity',
28 'oidtext' => 'PowerNet-MIB::iemStatusProbeCurrentHumid.1',
29 'oid' => '1.3.6.1.4.1.318.1.1.10.2.3.2.1.6.1',
30 },
31 },
32 },
33 {
34 'address' => "10.50.252.254",
35 'name' => "usv2",
36 'rrdfile' => "/var/spool/upsgraph/temp.usv2.rrd",
37 'community' => "public",
38
39 'fields' => [ 'battT' ],
40
41 'vars' => {
42 'battT' => {
43 'name' => 'Battery Temperature',
44 'oidtext' => 'PowerNet-MIB::upsAdvBatteryTemperature.0',
45 'oid' => '1.3.6.1.4.1.318.1.1.1.2.2.2.0',
46 },
47 }
48 },
49 {
50 'address' => "192.168.50.245",
51 'name' => "prak",
52 'rrdfile' => "/var/spool/upsgraph/temp.prak.rrd",
53 'community' => "public",
54
55 'fields' => [ 'temp' ],
56
57 'vars' => {
58 'temp' => {
59 'name' => 'Internal Temperature',
60 'oid' => '1.3.6.1.4.1.9.9.13.1.3.1.3.1004',
61 },
62 }
63 },
64 {
65 'address' => "192.168.50.244",
66 'name' => "colin",
67 'rrdfile' => "/var/spool/upsgraph/temp.colin.rrd",
68 'community' => "public",
69
70 'fields' => [ 'temp' ],
71
72 'vars' => {
73 'temp' => {
74 'name' => 'Internal Temperature',
75 'oid' => '1.3.6.1.4.1.9.9.13.1.3.1.3.1004',
76 },
77 }
78 },
79 {
80 'address' => "217.173.147.33",
81 'name' => "effrafax",
82 'rrdfile' => "/var/spool/upsgraph/temp.effrafax.rrd",
83
84 'fields' => [ 'az' ],
85
86 'vars' => {
87 'az' => {
88 'name' => 'Arbeitszimmer',
89 'port' => '31337',
90 'proto' => 'tcp',
91 },
92 }
93 },
94 ];
95
96 1;
Impressum, Datenschutz