add battery current and time on battery
[upsgraph] / temperature.conf
index 168a77957ec4061d020f57fdd0261056a39a196c..919507b5c54d6b48446d40950c7f3f0a1075e94b 100644 (file)
@@ -8,20 +8,89 @@ $hosts = [
                'address' => "10.50.252.253",
                'name' => "usv1",
                'community' => "public",
-               'rrdfile' => "/var/www/temperature/.work/temp.rrd",
+               'rrdfile' => "/var/spool/upsgraph/temp.usv1.rrd",
        
-               'fields' => [ 'battT' ],
+               '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::iemStatusProbeCurrentTemp.1',
+                               'oid' => '1.3.6.1.4.1.318.1.1.10.2.3.2.1.4.1',
+                       },
+                       'ambH' => {
+                               'name' => 'Ambient Humidity',
+                               'oidtext' => 'PowerNet-MIB::iemStatusProbeCurrentHumid.1',
+                               'oid' => '1.3.6.1.4.1.318.1.1.10.2.3.2.1.6.1',
                        },
                },
-       }
+       },
+       {
+               'address' => "10.50.252.254",
+               'name' => "usv2",
+               'rrdfile' => "/var/spool/upsgraph/temp.usv2.rrd",
+               'community' => "public",
+
+               'fields' => [ 'battT' ],
+
+               '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',
+                       },
+               }
+       },
+       {
+               'address' => "192.168.50.245",
+               'name' => "prak",
+               'rrdfile' => "/var/spool/upsgraph/temp.prak.rrd",
+               'community' => "public",
+
+               'fields' => [ 'temp' ],
+
+               'vars' => {
+                       'temp' => {
+                               'name' => 'Internal Temperature',
+                               'oid' => '1.3.6.1.4.1.9.9.13.1.3.1.3.1004',
+                       },
+               }
+       },
+       {
+               'address' => "192.168.50.244",
+               'name' => "colin",
+               'rrdfile' => "/var/spool/upsgraph/temp.colin.rrd",
+               'community' => "public",
+
+               'fields' => [ 'temp' ],
+
+               'vars' => {
+                       'temp' => {
+                               'name' => 'Internal Temperature',
+                               'oid' => '1.3.6.1.4.1.9.9.13.1.3.1.3.1004',
+                       },
+               }
+       },
+       {
+               'address' => "217.173.147.33",
+               'name' => "effrafax",
+               'rrdfile' => "/var/spool/upsgraph/temp.effrafax.rrd",
+
+               'fields' => [ 'az' ],
+
+               'vars' => {
+                       'az' => {
+                               'name' => 'Arbeitszimmer',
+                               'port' => '31337',
+                               'proto' => 'tcp',
+                       },
+               }
+       },
 ];
 
 1;
Impressum, Datenschutz