Index: trunk/tools/torrus/power.xml |
— | — | @@ -0,0 +1,151 @@ |
| 2 | +<?xml version="1.0" encoding="UTF-8"?> |
| 3 | + |
| 4 | +<configuration> |
| 5 | + <creator-info> |
| 6 | + Written by Mark Bergsma <mark@nedworks.org> |
| 7 | + </creator-info> |
| 8 | + <include filename="servertech-mib.xml"/> |
| 9 | + <include filename="snmp-defs.xml"/> |
| 10 | + |
| 11 | + <datasources> |
| 12 | + <subtree name="Power_strips"> |
| 13 | + <subtree name="ps1-a4-pmtpa"> |
| 14 | + <param name="system-id" value="ps1-a4-pmtpa"/> |
| 15 | + <param name="data-dir" value="/var/lib/torrus/collector_rrd"/> |
| 16 | + <apply-template name="snmp-defaults"/> |
| 17 | + <param name="legend"> |
| 18 | + Location:Rack A4, pmtpa, Tampa, USA; |
| 19 | + Contact:noc@wikimedia.org; |
| 20 | + Uptime:4 days since 20-09-2008 23{COLON}15; |
| 21 | + Description:Sentry Smart CDU; |
| 22 | + </param> |
| 23 | + <param name="snmp-check-sysuptime" value="yes"/> |
| 24 | + <param name="snmp-host" value="10.1.3.3"/> |
| 25 | + <param name="snmp-version" value="2c"/> |
| 26 | + |
| 27 | + <subtree name="System"> |
| 28 | + <apply-template name="servertech-systemgroup"/> |
| 29 | + </subtree> |
| 30 | + |
| 31 | + <subtree name="Tower_A_Infeed_A"> |
| 32 | + <param name="tower" value="1"/> |
| 33 | + <param name="infeed" value="1"/> |
| 34 | + <apply-template name="servertech-infeed"/> |
| 35 | + <param name="tokenset-member" value="ps1-a4-pmtpa_Tower_A"/> |
| 36 | + </subtree> |
| 37 | + <subtree name="Tower_A_Infeed_B"> |
| 38 | + <param name="tower" value="1"/> |
| 39 | + <param name="infeed" value="2"/> |
| 40 | + <apply-template name="servertech-infeed"/> |
| 41 | + <param name="tokenset-member" value="ps1-a4-pmtpa_Tower_A"/> |
| 42 | + </subtree> |
| 43 | + <subtree name="Tower_A_Infeed_C"> |
| 44 | + <param name="tower" value="1"/> |
| 45 | + <param name="infeed" value="3"/> |
| 46 | + <apply-template name="servertech-infeed"/> |
| 47 | + <param name="tokenset-member" value="ps1-a4-pmtpa_Tower_A"/> |
| 48 | + </subtree> |
| 49 | + |
| 50 | + <subtree name="Tower_B_Infeed_A"> |
| 51 | + <param name="tower" value="2"/> |
| 52 | + <param name="infeed" value="1"/> |
| 53 | + <apply-template name="servertech-infeed"/> |
| 54 | + <param name="tokenset-member" value="ps1-a4-pmtpa_Tower_B"/> |
| 55 | + </subtree> |
| 56 | + <subtree name="Tower_B_Infeed_B"> |
| 57 | + <param name="tower" value="2"/> |
| 58 | + <param name="infeed" value="2"/> |
| 59 | + <apply-template name="servertech-infeed"/> |
| 60 | + <param name="tokenset-member" value="ps1-a4-pmtpa_Tower_B"/> |
| 61 | + </subtree> |
| 62 | + <subtree name="Tower_B_Infeed_C"> |
| 63 | + <param name="tower" value="2"/> |
| 64 | + <param name="infeed" value="3"/> |
| 65 | + <apply-template name="servertech-infeed"/> |
| 66 | + <param name="tokenset-member" value="ps1-a4-pmtpa_Tower_B"/> |
| 67 | + </subtree> |
| 68 | + |
| 69 | + <!-- Aggregates --> |
| 70 | + <subtree name="Tower_A"> |
| 71 | + <param name="aggregate-id" value="tower1"/> |
| 72 | + <param name="aggregate-name" value="Tower A"/> |
| 73 | + <param name="tower" value="1"/> |
| 74 | + <param name="precedence" value="60"/> |
| 75 | + |
| 76 | + <apply-template name="servertech-infeed-aggr"/> |
| 77 | + |
| 78 | + <!-- Define the RPN expressions for all leaves --> |
| 79 | + <param name="tower-path" value="../Tower_A"/> |
| 80 | + <apply-template name="servertech-tower-aggregate-expressions"/> |
| 81 | + </subtree> |
| 82 | + <subtree name="Tower_B"> |
| 83 | + <param name="aggregate-id" value="tower2"/> |
| 84 | + <param name="aggregate-name" value="Tower B"/> |
| 85 | + <param name="tower" value="2"/> |
| 86 | + <param name="precedence" value="60"/> |
| 87 | + |
| 88 | + <apply-template name="servertech-infeed-aggr"/> |
| 89 | + |
| 90 | + <!-- Define the RPN expressions for all leaves --> |
| 91 | + <param name="tower-path" value="../Tower_B"/> |
| 92 | + <apply-template name="servertech-tower-aggregate-expressions"/> |
| 93 | + </subtree> |
| 94 | + |
| 95 | + <subtree name="Sensor_1"> |
| 96 | + <param name="envmon" value="1"/> |
| 97 | + <param name="th" value="1"/> |
| 98 | + <apply-template name="servertech-temphumidity"/> |
| 99 | + </subtree> |
| 100 | + </subtree> |
| 101 | + </subtree> |
| 102 | + |
| 103 | + <template name="servertech-tower-aggregate-expressions"> |
| 104 | + <param name="expr-Load_value" value="{%tower-path%_Infeed_A/Load_value},{%tower-path%_Infeed_B/Load_value},{%tower-path%_Infeed_C/Load_value},+,+"/> |
| 105 | + <param name="expr-Load_high_threshold" value="{%tower-path%_Infeed_A/Load_high_threshold},{%tower-path%_Infeed_B/Load_high_threshold},{%tower-path%_Infeed_C/Load_high_threshold},MAX,MAX"/> |
| 106 | + <param name="expr-Outlet_count" value="{%tower-path%_Infeed_A/Outlet_count},{%tower-path%_Infeed_B/Outlet_count},{%tower-path%_Infeed_C/Outlet_count},+,+"/> |
| 107 | + <param name="expr-Capacity" value="{%tower-path%_Infeed_A/Capacity},{%tower-path%_Infeed_B/Capacity},{%tower-path%_Infeed_C/Capacity},MIN,MIN"/> |
| 108 | + <param name="expr-Voltage" value="{%tower-path%_Infeed_A/Voltage},{%tower-path%_Infeed_B/Voltage},{%tower-path%_Infeed_C/Voltage},MAX,MAX"/> |
| 109 | + <param name="expr-Power_value" value="{%tower-path%_Infeed_A/Power_value},{%tower-path%_Infeed_B/Power_value},{%tower-path%_Infeed_C/Power_value},+,+"/> |
| 110 | + |
| 111 | + <leaf name="Load_value"> |
| 112 | + <param name="rpn-expr" value="%expr-Load_value%"/> |
| 113 | + </leaf> |
| 114 | + <leaf name="Load_high_threshold"> |
| 115 | + <param name="rpn-expr" value="%expr-Load_high_threshold%"/> |
| 116 | + </leaf> |
| 117 | + <leaf name="Outlet_count"> |
| 118 | + <param name="rpn-expr" value="%expr-Outlet_count%"/> |
| 119 | + </leaf> |
| 120 | + <leaf name="Capacity"> |
| 121 | + <param name="rpn-expr" value="%expr-Capacity%"/> |
| 122 | + </leaf> |
| 123 | + <leaf name="Voltage"> |
| 124 | + <param name="rpn-expr" value="%expr-Voltage%"/> |
| 125 | + </leaf> |
| 126 | + <leaf name="Power_value"> |
| 127 | + <param name="rpn-expr" value="%expr-Power_value%"/> |
| 128 | + </leaf> |
| 129 | + |
| 130 | + <leaf name="Load"> |
| 131 | + <param name="ds-expr-Load" value="%expr-Load_value%"/> |
| 132 | + <param name="ds-expr-HighThresh" value="%expr-Load_high_threshold%"/> |
| 133 | + <param name="ds-expr-Capacity" value="%expr-Capacity%"/> |
| 134 | + </leaf> |
| 135 | + <leaf name="Power"> |
| 136 | + <param name="ds-expr-Power" value="%expr-Power_value%"/> |
| 137 | + <param name="ds-expr-Capacity" value="%expr-Voltage%,%expr-Capacity%,*"/> |
| 138 | + </leaf> |
| 139 | + </template> |
| 140 | + |
| 141 | + </datasources> |
| 142 | + |
| 143 | + <token-sets> |
| 144 | + <token-set name="ps1-a4-pmtpa_Tower_A"> |
| 145 | + <param name="comment" value="ps1-a4-pmtpa Tower A"/> |
| 146 | + </token-set> |
| 147 | + <token-set name="ps1-a4-pmtpa_Tower_B"> |
| 148 | + <param name="comment" value="ps1-a4-pmtpa Tower B"/> |
| 149 | + </token-set> |
| 150 | + </token-sets> |
| 151 | +</configuration> |
| 152 | + |
\ No newline at end of file |
Index: trunk/tools/torrus/servertech-mib.xml |
— | — | @@ -0,0 +1,653 @@ |
| 2 | +<?xml version="1.0" encoding="UTF-8"?> |
| 3 | +<!-- |
| 4 | + Written by Mark Bergsma <mark@nedworks.org> |
| 5 | + |
| 6 | + $Id$ |
| 7 | +--> |
| 8 | + |
| 9 | +<configuration> |
| 10 | + <definitions> |
| 11 | + <def name="servertech" value="1.3.6.1.4.1.1718"/> |
| 12 | + |
| 13 | + <!-- systemGroup (1) --> |
| 14 | + <def name="systemTowerCount" value="3.1.4.0"/> |
| 15 | + <def name="systemEnvMonCount" value="3.1.5.0"/> |
| 16 | + <def name="systemTotalPower" value="3.1.6.0"/> |
| 17 | + <def name="systemArea" value="3.1.7.0"/> |
| 18 | + <def name="systemWattsPerAreaUnit" value="3.1.8.0"/> |
| 19 | + <def name="systemAreaUnit" value="3.1.9.0"/> |
| 20 | + <def name="systemPowerFactor" value="3.1.10.0"/> |
| 21 | + |
| 22 | + <!-- systemTables (2) infeedTable (2) --> |
| 23 | + <def name="infeedStatus" value="3.2.2.1.5"/> |
| 24 | + <def name="infeedLoadStatus" value="3.2.2.1.6"/> |
| 25 | + <def name="infeedLoadValue" value="3.2.2.1.7"/> |
| 26 | + <def name="infeedLoadHighThresh" value="3.2.2.1.8"/> |
| 27 | + <def name="infeedOutletCount" value="3.2.2.1.9"/> |
| 28 | + <def name="infeedCapacity" value="3.2.2.1.10"/> |
| 29 | + <def name="infeedVoltage" value="3.2.2.1.11"/> |
| 30 | + <def name="infeedPower" value="3.2.2.1.12"/> |
| 31 | + |
| 32 | + <!-- systemTables(2) tempHumidSensorTable (5) --> |
| 33 | + <def name="tempHumidSensorStatus" value="3.2.5.1.4"/> |
| 34 | + <def name="tempHumidSensorTempStatus" value="3.2.5.1.5"/> |
| 35 | + <def name="tempHumidSensorTempValue" value="3.2.5.1.6"/> |
| 36 | + <def name="tempHumidSensorTempLowThresh" value="3.2.5.1.7"/> |
| 37 | + <def name="tempHumidSensorTempHighThresh" value="3.2.5.1.8"/> |
| 38 | + <def name="tempHumidSensorHumidStatus" value="3.2.5.1.9"/> |
| 39 | + <def name="tempHumidSensorHumidValue" value="3.2.5.1.10"/> |
| 40 | + <def name="tempHumidSensorHumidLowThresh" value="3.2.5.1.11"/> |
| 41 | + <def name="tempHumidSensorHumidHighThresh" value="3.2.5.1.12"/> |
| 42 | + <def name="tempHumidSensorTempScale" value="3.2.5.1.13"/> |
| 43 | + </definitions> |
| 44 | + |
| 45 | + <datasources> |
| 46 | + <template name="servertech-systemgroup"> |
| 47 | + <param name="comment" value="System parameters"/> |
| 48 | + |
| 49 | + <param name="descriptive-nickname" value="%system-id%"/> |
| 50 | + <param name="data-file" value="%system-id%_systemgroup.rrd"/> |
| 51 | + <param name="graph-title" value="%descriptive-nickname%"/> |
| 52 | + <param name="rrd-create-dstype" value="GAUGE"/> |
| 53 | + <param name="precedence" value="100" /> |
| 54 | + |
| 55 | + <!-- View parameters --> |
| 56 | + <param name="default-subtree-view" value="expanded-dir-html"/> |
| 57 | + |
| 58 | + <leaf name="Tower_count"> |
| 59 | + <param name="snmp-object" value="$servertech.$systemTowerCount"/> |
| 60 | + <param name="rrd-ds" value="TowerCount"/> |
| 61 | + <param name="rrd-create-min" value="0"/> |
| 62 | + <param name="rrd-create-max" value="4"/> |
| 63 | + <param name="comment" value="Number of towers in the system"/> |
| 64 | + <param name="graph-legend" value="Towers"/> |
| 65 | + <param name="vertical-label" value="Count"/> |
| 66 | + <param name="graph-lower-limit" value="0"/> |
| 67 | + <param name="hidden" value="yes"/> |
| 68 | + </leaf> |
| 69 | + |
| 70 | + <leaf name="EnvMon_count"> |
| 71 | + <param name="snmp-object" value="$servertech.$systemEnvMonCount"/> |
| 72 | + <param name="rrd-ds" value="EnvMonCount"/> |
| 73 | + <param name="rrd-create-min" value="0"/> |
| 74 | + <param name="rrd-create-max" value="4"/> |
| 75 | + <param name="comment" value="Number of environmental monitors in the system"/> |
| 76 | + <param name="graph-legend" value="Environmental monitors"/> |
| 77 | + <param name="vertical-label" value="Count"/> |
| 78 | + <param name="graph-lower-limit" value="0"/> |
| 79 | + <param name="hidden" value="yes"/> |
| 80 | + </leaf> |
| 81 | + |
| 82 | + <leaf name="Total_power"> |
| 83 | + <param name="snmp-object" value="$servertech.$systemTotalPower"/> |
| 84 | + <param name="rrd-ds" value="TotalPower"/> |
| 85 | + <param name="rrd-create-min" value="0"/> |
| 86 | + <param name="rrd-create-max" value="150000"/> |
| 87 | + <param name="comment" value="Total power consumption"/> |
| 88 | + <param name="graph-legend" value="Total power"/> |
| 89 | + <param name="vertical-label" value="Watt"/> |
| 90 | + <param name="graph-lower-limit" value="0"/> |
| 91 | + <param name="hidden" value="yes"/> |
| 92 | + </leaf> |
| 93 | + |
| 94 | + <leaf name="Area"> |
| 95 | + <param name="snmp-object" value="$servertech.$systemArea"/> |
| 96 | + <param name="rrd-ds" value="Area"/> |
| 97 | + <param name="rrd-create-min" value="0"/> |
| 98 | + <param name="rrd-create-max" value="1000"/> |
| 99 | + <param name="comment" value="System footprint (m²)"/> |
| 100 | + <param name="graph-legend" value="Area"/> |
| 101 | + <param name="vertical-label" value="m^2"/> |
| 102 | + <param name="graph-lower-limit" value="0"/> |
| 103 | + <param name="collector-scale" value="10,/"/> |
| 104 | + <param name="hidden" value="yes"/> |
| 105 | + </leaf> |
| 106 | + |
| 107 | + <leaf name="Watts_per_area_unit"> |
| 108 | + <param name="snmp-object" value="$servertech.$systemWattsPerAreaUnit"/> |
| 109 | + <param name="rrd-ds" value="WattsPerArea"/> |
| 110 | + <param name="rrd-create-min" value="0"/> |
| 111 | + <param name="rrd-create-max" value="1500000"/> |
| 112 | + <param name="comment" value="Watt per area unit"/> |
| 113 | + <param name="graph-legend" value="Watt per m^2"/> |
| 114 | + <param name="vertical-label" value="W / m^2"/> |
| 115 | + <param name="graph-lower-limit" value="0"/> |
| 116 | + <param name="hidden" value="yes"/> |
| 117 | + </leaf> |
| 118 | + |
| 119 | + <leaf name="Area_unit"> |
| 120 | + <param name="snmp-object" value="$servertech.$systemAreaUnit"/> |
| 121 | + <param name="rrd-ds" value="AreaUnit"/> |
| 122 | + <param name="rrd-create-min" value="0"/> |
| 123 | + <param name="rrd-create-max" value="1"/> |
| 124 | + <param name="comment" value="Area unit"/> |
| 125 | + <param name="graph-legend" value="Area unit"/> |
| 126 | + <param name="vertical-label" value="0 = m^2, 1 = ft^2"/> |
| 127 | + <param name="hidden" value="yes"/> |
| 128 | + </leaf> |
| 129 | + |
| 130 | + <leaf name="Power_factor"> |
| 131 | + <param name="snmp-object" value="$servertech.$systemPowerFactor"/> |
| 132 | + <param name="rrd-ds" value="PowerFactor"/> |
| 133 | + <param name="rrd-create-min" value="0"/> |
| 134 | + <param name="rrd-create-max" value="1"/> |
| 135 | + <param name="comment" value="Power factor used in power calculations"/> |
| 136 | + <param name="graph-legend" value="Power factor"/> |
| 137 | + <param name="vertical-label" value="Factor"/> |
| 138 | + <param name="collector-scale" value="100,/"/> |
| 139 | + <param name="precedence" value="20"/> |
| 140 | + </leaf> |
| 141 | + |
| 142 | + <!-- Multigraph leaves --> |
| 143 | + <leaf name="Components"> |
| 144 | + <param name="ds-type" value="rrd-multigraph"/> |
| 145 | + <param name="ds-names" value="Tower,EnvMon"/> |
| 146 | + <param name="comment" value="System components"/> |
| 147 | + <param name="vertical-label" value="Count"/> |
| 148 | + <param name="precedence" value="10"/> |
| 149 | + |
| 150 | + <param name="ds-expr-Tower" value="{Tower_count}"/> |
| 151 | + <param name="graph-legend-Tower" value="Tower count"/> |
| 152 | + <param name="line-style-Tower" value="LINE1"/> |
| 153 | + <param name="line-color-Tower" value="##green"/> |
| 154 | + <param name="line-order-Tower" value="1"/> |
| 155 | + |
| 156 | + <param name="ds-expr-EnvMon" value="{EnvMon_count}"/> |
| 157 | + <param name="graph-legend-EnvMon" value="Environmental monitor count"/> |
| 158 | + <param name="line-style-EnvMon" value="LINE1"/> |
| 159 | + <param name="line-color-EnvMon" value="##blue"/> |
| 160 | + <param name="line-order-EnvMon" value="2"/> |
| 161 | + </leaf> |
| 162 | + |
| 163 | + <leaf name="Power_density"> |
| 164 | + <param name="ds-type" value="rrd-multigraph"/> |
| 165 | + <param name="ds-names" value="Total,Density"/> |
| 166 | + <param name="comment" value="Total power and density"/> |
| 167 | + <param name="graph-lower-limit" value="0"/> |
| 168 | + <param name="vertical-label" value="Watt"/> |
| 169 | + <param name="precedence" value="100"/> |
| 170 | + |
| 171 | + <param name="ds-expr-Total" value="{Total_power}"/> |
| 172 | + <param name="graph-legend-Total" value="Total power"/> |
| 173 | + <param name="line-style-Total" value="AREA"/> |
| 174 | + <param name="line-color-Total" value="##green"/> |
| 175 | + <param name="line-order-Total" value="1"/> |
| 176 | + |
| 177 | + <param name="ds-expr-Density" value="{Watts_per_area_unit}"/> |
| 178 | + <param name="graph-legend-Density" value="Watt per m^2"/> |
| 179 | + <param name="line-style-Density" value="LINE2"/> |
| 180 | + <param name="line-color-Density" value="##blue"/> |
| 181 | + <param name="line-order-Density" value="2"/> |
| 182 | + </leaf> |
| 183 | + </template> |
| 184 | + |
| 185 | + <template name="servertech-infeed-Infeed_status"> |
| 186 | + <leaf name="Infeed_status"> |
| 187 | + <param name="snmp-object" value="$servertech.$infeedStatus.%tower%.%infeed%"/> |
| 188 | + <param name="rrd-ds" value="Status"/> |
| 189 | + <param name="rrd-create-min" value="0"/> |
| 190 | + <param name="rrd-create-max" value="6"/> |
| 191 | + <param name="comment" value="Infeed status"/> |
| 192 | + <param name="graph-legend" value="Status"/> |
| 193 | + <param name="vertical-label" value="(enumeration)"/> |
| 194 | + <param name="hidden" value="yes"/> |
| 195 | + <param name="precedence" value="10"/> |
| 196 | + </leaf> |
| 197 | + </template> |
| 198 | + |
| 199 | + <template name="servertech-infeed-Load_status"> |
| 200 | + <leaf name="Load_status"> |
| 201 | + <param name="snmp-object" value="$servertech.$infeedLoadStatus.%tower%.%infeed%"/> |
| 202 | + <param name="rrd-ds" value="LoadStatus"/> |
| 203 | + <param name="rrd-create-min" value="0"/> |
| 204 | + <param name="rrd-create-max" value="7"/> |
| 205 | + <param name="comment" value="Infeed load status"/> |
| 206 | + <param name="graph-legend" value="Load status"/> |
| 207 | + <param name="vertical-label" value="(enumeration)"/> |
| 208 | + <param name="hidden" value="yes"/> |
| 209 | + <param name="precedence" value="10"/> |
| 210 | + </leaf> |
| 211 | + </template> |
| 212 | + |
| 213 | + <template name="servertech-infeed-Load_value"> |
| 214 | + <leaf name="Load_value"> |
| 215 | + <param name="snmp-object" value="$servertech.$infeedLoadValue.%tower%.%infeed%"/> |
| 216 | + <param name="rrd-ds" value="LoadValue"/> |
| 217 | + <param name="rrd-create-min" value="0"/> |
| 218 | + <param name="rrd-create-max" value="255"/> |
| 219 | + <param name="collector-scale" value="100,/"/> |
| 220 | + <param name="comment" value="Infeed load (A)"/> |
| 221 | + <param name="graph-legend" value="Load"/> |
| 222 | + <param name="vertical-label" value="Amp"/> |
| 223 | + <param name="hidden" value="yes"/> |
| 224 | + <param name="precedence" value="100"/> |
| 225 | + |
| 226 | + <!-- Monitoring --> |
| 227 | + <param name="monitors" value="overloaded-circuit"/> |
| 228 | + </leaf> |
| 229 | + </template> |
| 230 | + |
| 231 | + <template name="servertech-infeed-Load_high_threshold"> |
| 232 | + <leaf name="Load_high_threshold"> |
| 233 | + <param name="snmp-object" value="$servertech.$infeedLoadHighThresh.%tower%.%infeed%"/> |
| 234 | + <param name="rrd-ds" value="LoadHighThresh"/> |
| 235 | + <param name="rrd-ds-create-min" value="0"/> |
| 236 | + <param name="rrd-ds-create-max" value="255"/> |
| 237 | + <param name="comment" value="High load threshold (A)"/> |
| 238 | + <param name="graph-legend" value="High threshold"/> |
| 239 | + <param name="vertical-label" value="Amp"/> |
| 240 | + <param name="hidden" value="yes"/> |
| 241 | + <param name="precedence" value="50"/> |
| 242 | + </leaf> |
| 243 | + </template> |
| 244 | + |
| 245 | + <template name="servertech-infeed-Outlet_count"> |
| 246 | + <leaf name="Outlet_count"> |
| 247 | + <param name="snmp-object" value="$servertech.$infeedOutletCount.%tower%.%infeed%"/> |
| 248 | + <param name="rrd-ds" value="OutletCount"/> |
| 249 | + <param name="rrd-ds-create-min" value="0"/> |
| 250 | + <param name="rrd-ds-create-max" value="1000"/> |
| 251 | + <param name="comment" value="Number of outlets"/> |
| 252 | + <param name="graph-legend" value="Outlet count"/> |
| 253 | + <param name="vertical-label" value="Count"/> |
| 254 | + <param name="precedence" value="20"/> |
| 255 | + </leaf> |
| 256 | + </template> |
| 257 | + |
| 258 | + <template name="servertech-infeed-Capacity"> |
| 259 | + <leaf name="Capacity"> |
| 260 | + <param name="snmp-object" value="$servertech.$infeedCapacity.%tower%.%infeed%"/> |
| 261 | + <param name="rrd-ds" value="Capacity"/> |
| 262 | + <param name="rrd-ds-create-min" value="0"/> |
| 263 | + <param name="rrd-ds-create-max" value="255"/> |
| 264 | + <param name="comment" value="Infeed capacity (A)"/> |
| 265 | + <param name="graph-legend" value="Capacity"/> |
| 266 | + <param name="vertical-label" value="Amp"/> |
| 267 | + <param name="hidden" value="yes"/> |
| 268 | + <param name="precedence" value="50"/> |
| 269 | + </leaf> |
| 270 | + </template> |
| 271 | + |
| 272 | + <template name="servertech-infeed-Voltage"> |
| 273 | + <leaf name="Voltage"> |
| 274 | + <param name="snmp-object" value="$servertech.$infeedVoltage.%tower%.%infeed%"/> |
| 275 | + <param name="rrd-ds" value="Voltage"/> |
| 276 | + <param name="rrd-ds-create-min" value="0"/> |
| 277 | + <param name="rrd-ds-create-max" value="260"/> |
| 278 | + <param name="collector-scale" value="10,/"/> |
| 279 | + <param name="comment" value="Voltage (V)"/> |
| 280 | + <param name="graph-legend" value="Voltage"/> |
| 281 | + <param name="vertical-label" value="Volt"/> |
| 282 | + <param name="graph-lower-limit" value="0"/> |
| 283 | + <param name="precedence" value="40"/> |
| 284 | + </leaf> |
| 285 | + </template> |
| 286 | + |
| 287 | + <template name="servertech-infeed-Power_value"> |
| 288 | + <leaf name="Power_value"> |
| 289 | + <param name="snmp-object" value="$servertech.$infeedPower.%tower%.%infeed%"/> |
| 290 | + <param name="rrd-ds" value="Power"/> |
| 291 | + <param name="rrd-ds-create-min" value="0"/> |
| 292 | + <param name="rrd-ds-create-max" value="15000"/> |
| 293 | + <param name="comment" value="Power (W)"/> |
| 294 | + <param name="graph-legend" value="Power usage"/> |
| 295 | + <param name="vertical-label" value="Watt"/> |
| 296 | + <param name="graph-lower-limit" value="0"/> |
| 297 | + <param name="precedence" value="90"/> |
| 298 | + <param name="hidden" value="yes"/> |
| 299 | + </leaf> |
| 300 | + </template> |
| 301 | + |
| 302 | + <template name="servertech-infeed-multigraph-aggregatable"> |
| 303 | + <leaf name="Load"> |
| 304 | + <param name="ds-type" value="rrd-multigraph"/> |
| 305 | + <param name="ds-names" value="Load,HighThresh,Capacity"/> |
| 306 | + <param name="comment" value="Infeed load"/> |
| 307 | + <param name="graph-lower-limit" value="0"/> |
| 308 | + <param name="vertical-label" value="Amp"/> |
| 309 | + <param name="precedence" value="100"/> |
| 310 | + |
| 311 | + <param name="ds-expr-Load" value="{Load_value}"/> |
| 312 | + <param name="graph-legend-Load" value="Amperage"/> |
| 313 | + <param name="line-style-Load" value="AREA"/> |
| 314 | + <param name="line-color-Load" value="##blue"/> |
| 315 | + <param name="line-order-Load" value="1"/> |
| 316 | + |
| 317 | + <param name="ds-expr-HighThresh" value="{Load_high_threshold}"/> |
| 318 | + <param name="graph-legend-HighThresh" value="High threshold"/> |
| 319 | + <param name="line-style-HighThresh" value="LINE1"/> |
| 320 | + <param name="line-color-HighThresh" value="##orange"/> |
| 321 | + <param name="line-order-HighThresh" value="2"/> |
| 322 | + |
| 323 | + <param name="ds-expr-Capacity" value="{Capacity}"/> |
| 324 | + <param name="graph-legend-Capacity" value="Capacity"/> |
| 325 | + <param name="line-style-Capacity" value="LINE2"/> |
| 326 | + <param name="line-color-Capacity" value="##red"/> |
| 327 | + <param name="line-order-Capacity" value="3"/> |
| 328 | + </leaf> |
| 329 | + |
| 330 | + <leaf name="Power"> |
| 331 | + <param name="ds-type" value="rrd-multigraph"/> |
| 332 | + <param name="ds-names" value="Power,Capacity"/> |
| 333 | + <param name="comment" value="Power usage (W)"/> |
| 334 | + <param name="graph-lower-limit" value="0"/> |
| 335 | + <param name="vertical-label" value="Watt"/> |
| 336 | + <param name="graph-lower-limit" value="0"/> |
| 337 | + <param name="precedence" value="90"/> |
| 338 | + |
| 339 | + <param name="ds-expr-Power" value="{Power_value}"/> |
| 340 | + <param name="graph-legend-Power" value="Power usage"/> |
| 341 | + <param name="line-style-Power" value="AREA"/> |
| 342 | + <param name="line-color-Power" value="##green"/> |
| 343 | + <param name="line-order-Power" value="1"/> |
| 344 | + |
| 345 | + <param name="ds-expr-Capacity" value="{Voltage},{Capacity},*"/> |
| 346 | + <param name="graph-legend-Capacity" value="Circuit capacity"/> |
| 347 | + <param name="line-style-Capacity" value="LINE2"/> |
| 348 | + <param name="line-color-Capacity" value="##red"/> |
| 349 | + <param name="line-order-Capacity" value="2"/> |
| 350 | + </leaf> |
| 351 | + </template> |
| 352 | + |
| 353 | + <template name="servertech-infeed-multigraph-not-aggregatable"> |
| 354 | + <leaf name="Status"> |
| 355 | + <param name="ds-type" value="rrd-multigraph"/> |
| 356 | + <param name="ds-names" value="Infeed,Load"/> |
| 357 | + <param name="comment" value="Infeed and load status"/> |
| 358 | + <param name="vertical-label" value="(enumeration)"/> |
| 359 | + <param name="precedence" value="10"/> |
| 360 | + |
| 361 | + <param name="ds-expr-Infeed" value="{Infeed_status}"/> |
| 362 | + <param name="graph-legend-Infeed" value="Infeed status"/> |
| 363 | + <param name="line-style-Infeed" value="LINE2"/> |
| 364 | + <param name="line-color-Infeed" value="##green"/> |
| 365 | + <param name="line-order-Infeed" value="1"/> |
| 366 | + |
| 367 | + <param name="ds-expr-Load" value="{Load_status}"/> |
| 368 | + <param name="graph-legend-Load" value="Load status"/> |
| 369 | + <param name="line-style-Load" value="LINE2"/> |
| 370 | + <param name="line-color-Load" value="##blue"/> |
| 371 | + <param name="line-order-Load" value="2"/> |
| 372 | + </leaf> |
| 373 | + </template> |
| 374 | + |
| 375 | + <template name="servertech-infeed"> |
| 376 | + <param name="comment" value="Input feed (Infeed) statistics"/> |
| 377 | + |
| 378 | + <param name="descriptive-nickname" value="%system-id%:%tower%:%infeed%"/> |
| 379 | + <param name="data-file" value="%system-id%_infeed_%tower%_%infeed%.rrd"/> |
| 380 | + <param name="graph-title" value="%system-id% %tower%/%infeed%"/> |
| 381 | + <param name="rrd-create-dstype" value="GAUGE"/> |
| 382 | + <param name="precedence" value="50" /> |
| 383 | + |
| 384 | + <!-- View parameters --> |
| 385 | + <param name="default-subtree-view" value="expanded-dir-html"/> |
| 386 | + |
| 387 | + <!-- Regular datasource leaves --> |
| 388 | + <apply-template name="servertech-infeed-Infeed_status"/> |
| 389 | + <apply-template name="servertech-infeed-Load_status"/> |
| 390 | + <apply-template name="servertech-infeed-Load_value"/> |
| 391 | + <apply-template name="servertech-infeed-Load_high_threshold"/> |
| 392 | + <apply-template name="servertech-infeed-Outlet_count"/> |
| 393 | + <apply-template name="servertech-infeed-Capacity"/> |
| 394 | + <apply-template name="servertech-infeed-Voltage"/> |
| 395 | + <apply-template name="servertech-infeed-Power_value"/> |
| 396 | + |
| 397 | + <!-- Multigraph leaves --> |
| 398 | + <apply-template name="servertech-infeed-multigraph-aggregatable"/> |
| 399 | + <apply-template name="servertech-infeed-multigraph-not-aggregatable"/> |
| 400 | + </template> |
| 401 | + |
| 402 | + <template name="servertech-infeed-aggr"> |
| 403 | + <param name="descriptive-nickname" value="%system-id%:%aggregate-id%"/> |
| 404 | + <param name="ds-type" value="rrd-file"/> |
| 405 | + <param name="leaf-type" value="rrd-cdef"/> |
| 406 | + <param name="graph-title" value="%system-id% %aggregate-name%"/> |
| 407 | + <param name="comment" value="Aggregated infeeds %aggregate-name%"/> |
| 408 | + |
| 409 | + <!-- Dummy parameters --> |
| 410 | + <param name="tower" value=""/> |
| 411 | + <param name="infeed" value=""/> |
| 412 | + |
| 413 | + <!-- View parameters --> |
| 414 | + <param name="default-subtree-view" value="expanded-dir-html"/> |
| 415 | + |
| 416 | + <apply-template name="servertech-infeed-Load_value"/> |
| 417 | + <apply-template name="servertech-infeed-Load_high_threshold"/> |
| 418 | + <apply-template name="servertech-infeed-Outlet_count"/> |
| 419 | + <apply-template name="servertech-infeed-Capacity"/> |
| 420 | + <apply-template name="servertech-infeed-Voltage"/> |
| 421 | + <apply-template name="servertech-infeed-Power_value"/> |
| 422 | + |
| 423 | + <!-- Multigraph leaves --> |
| 424 | + <apply-template name="servertech-infeed-multigraph-aggregatable"/> |
| 425 | + </template> |
| 426 | + |
| 427 | + <template name="servertech-temphumidity"> |
| 428 | + <param name="comment" value="Temperature/humidity sensor %th%"/> |
| 429 | + |
| 430 | + <param name="descriptive-nickname" value="%system-id%:th%envmon%:%th%"/> |
| 431 | + <param name="data-file" value="%system-id%_temphumid_%envmon%_%th%.rrd"/> |
| 432 | + <param name="graph-title" value="%descriptive-nickname%"/> |
| 433 | + <param name="rrd-create-dstype" value="GAUGE"/> |
| 434 | + <param name="precedence" value="10" /> |
| 435 | + |
| 436 | + <!-- View parameters --> |
| 437 | + <param name="default-subtree-view" value="expanded-dir-html"/> |
| 438 | + |
| 439 | + <leaf name="Sensor_status"> |
| 440 | + <param name="snmp-object" value="$servertech.$tempHumidSensorStatus.%envmon%.%th%"/> |
| 441 | + <param name="rrd-ds" value="Status"/> |
| 442 | + <param name="rrd-create-min" value="0"/> |
| 443 | + <param name="rrd-create-max" value="3"/> |
| 444 | + <param name="comment" value="Temperature/Humid sensor status"/> |
| 445 | + <param name="graph-legend" value="Sensor status"/> |
| 446 | + <param name="vertical-label" value="(enumeration)"/> |
| 447 | + <param name="hidden" value="yes"/> |
| 448 | + </leaf> |
| 449 | + |
| 450 | + <leaf name="Temperature_sensor_status"> |
| 451 | + <param name="snmp-object" value="$servertech.$tempHumidSensorTempStatus.%envmon%.%th%"/> |
| 452 | + <param name="rrd-ds" value="TempStatus"/> |
| 453 | + <param name="rrd-create-min" value="0"/> |
| 454 | + <param name="rrd-create-max" value="7"/> |
| 455 | + <param name="comment" value="Temperature sensor status"/> |
| 456 | + <param name="graph-legend" value="Temperature status"/> |
| 457 | + <param name="vertical-label" value="(enumeration)"/> |
| 458 | + <param name="hidden" value="yes"/> |
| 459 | + </leaf> |
| 460 | + |
| 461 | + <leaf name="Temperature_value"> |
| 462 | + <param name="snmp-object" value="$servertech.$tempHumidSensorTempValue.%envmon%.%th%"/> |
| 463 | + <param name="rrd-ds" value="TempValue"/> |
| 464 | + <param name="rrd-create-min" value="0"/> |
| 465 | + <param name="rrd-create-max" value="254"/> |
| 466 | + <param name="collector-scale" value="10,/"/> |
| 467 | + <param name="comment" value="Temperature (deg. C)"/> |
| 468 | + <param name="graph-legend" value="Temperature"/> |
| 469 | + <param name="vertical-label" value="deg. C"/> |
| 470 | + <param name="hidden" value="yes"/> |
| 471 | + </leaf> |
| 472 | + |
| 473 | + <leaf name="Temperature_low_threshold"> |
| 474 | + <param name="snmp-object" value="$servertech.$tempHumidSensorTempLowThresh.%envmon%.%th%"/> |
| 475 | + <param name="rrd-ds" value="TempLowThresh"/> |
| 476 | + <param name="rrd-ds-create-min" value="0"/> |
| 477 | + <param name="rrd-ds-create-max" value="254"/> |
| 478 | + <param name="comment" value="Temperature low threshhold (deg. C)"/> |
| 479 | + <param name="graph-legend" value="Temperature low threshold"/> |
| 480 | + <param name="vertical-label" value="deg. C"/> |
| 481 | + <param name="hidden" value="yes"/> |
| 482 | + </leaf> |
| 483 | + |
| 484 | + <leaf name="Temperature_high_threshold"> |
| 485 | + <param name="snmp-object" value="$servertech.$tempHumidSensorTempHighThresh.%envmon%.%th%"/> |
| 486 | + <param name="rrd-ds" value="TempHighThresh"/> |
| 487 | + <param name="rrd-ds-create-min" value="0"/> |
| 488 | + <param name="rrd-ds-create-max" value="254"/> |
| 489 | + <param name="comment" value="Temperature high threshhold (deg. C)"/> |
| 490 | + <param name="graph-legend" value="Temperature high threshold"/> |
| 491 | + <param name="vertical-label" value="deg. C"/> |
| 492 | + <param name="hidden" value="yes"/> |
| 493 | + </leaf> |
| 494 | + |
| 495 | + <leaf name="Humidity_sensor_status"> |
| 496 | + <param name="snmp-object" value="$servertech.$tempHumidSensorHumidStatus.%envmon%.%th%"/> |
| 497 | + <param name="rrd-ds" value="HumidStatus"/> |
| 498 | + <param name="rrd-create-min" value="0"/> |
| 499 | + <param name="rrd-create-max" value="7"/> |
| 500 | + <param name="comment" value="Humidity sensor status"/> |
| 501 | + <param name="graph-legend" value="Humidity status"/> |
| 502 | + <param name="vertical-label" value="(enumeration)"/> |
| 503 | + <param name="hidden" value="yes"/> |
| 504 | + </leaf> |
| 505 | + |
| 506 | + <leaf name="Relative_humidity_value"> |
| 507 | + <param name="snmp-object" value="$servertech.$tempHumidSensorHumidValue.%envmon%.%th%"/> |
| 508 | + <param name="rrd-ds" value="HumidValue"/> |
| 509 | + <param name="rrd-create-min" value="0"/> |
| 510 | + <param name="rrd-create-max" value="100"/> |
| 511 | + <param name="comment" value="Relative humidity (%)"/> |
| 512 | + <param name="graph-legend" value="Relative humidity"/> |
| 513 | + <param name="vertical-label" value="%"/> |
| 514 | + <param name="hidden" value="yes"/> |
| 515 | + </leaf> |
| 516 | + |
| 517 | + <leaf name="Humidity_low_threshold"> |
| 518 | + <param name="snmp-object" value="$servertech.$tempHumidSensorHumidLowThresh.%envmon%.%th%"/> |
| 519 | + <param name="rrd-ds" value="HumidLowThresh"/> |
| 520 | + <param name="rrd-ds-create-min" value="0"/> |
| 521 | + <param name="rrd-ds-create-max" value="100"/> |
| 522 | + <param name="comment" value="Humidity low threshhold (%)"/> |
| 523 | + <param name="graph-legend" value="Humidity low threshold"/> |
| 524 | + <param name="vertical-label" value="%"/> |
| 525 | + <param name="hidden" value="yes"/> |
| 526 | + </leaf> |
| 527 | + |
| 528 | + <leaf name="Humidity_high_threshold"> |
| 529 | + <param name="snmp-object" value="$servertech.$tempHumidSensorHumidHighThresh.%envmon%.%th%"/> |
| 530 | + <param name="rrd-ds" value="HumidHighThresh"/> |
| 531 | + <param name="rrd-ds-create-min" value="0"/> |
| 532 | + <param name="rrd-ds-create-max" value="100"/> |
| 533 | + <param name="comment" value="Humidity high threshhold (%)"/> |
| 534 | + <param name="graph-legend" value="Humidity high threshold"/> |
| 535 | + <param name="vertical-label" value="%"/> |
| 536 | + <param name="hidden" value="yes"/> |
| 537 | + </leaf> |
| 538 | + |
| 539 | + <leaf name="Temperature_scale"> |
| 540 | + <param name="snmp-object" value="$servertech.$tempHumidSensorTempScale.%envmon%.%th%"/> |
| 541 | + <param name="rrd-ds" value="TempScale"/> |
| 542 | + <param name="rrd-ds-create-min" value="0"/> |
| 543 | + <param name="rrd-ds-create-max" value="1"/> |
| 544 | + <param name="comment" value="Temperature scale (Celsius / Fahrenheit)"/> |
| 545 | + <param name="graph-legend" value="Temperature scale"/> |
| 546 | + <param name="vertical-label" value="0 = Celsius, 1 = Fahrenheit"/> |
| 547 | + <param name="precedence" value="10"/> |
| 548 | + <param name="hidden" value="yes"/> |
| 549 | + </leaf> |
| 550 | + |
| 551 | + <!-- Multigraph leaves --> |
| 552 | + <leaf name="Temperature"> |
| 553 | + <param name="ds-type" value="rrd-multigraph"/> |
| 554 | + <param name="ds-names" value="Temp,LowThresh,HighThresh"/> |
| 555 | + <param name="comment" value="Temperature (deg. C)"/> |
| 556 | + <param name="vertical-label" value="deg. C"/> |
| 557 | + <param name="precedence" value="100"/> |
| 558 | + |
| 559 | + <param name="ds-expr-Temp" value="{Temperature_value}"/> |
| 560 | + <param name="graph-legend-Temp" value="Temperature"/> |
| 561 | + <param name="line-style-Temp" value="LINE2"/> |
| 562 | + <param name="line-color-Temp" value="##green"/> |
| 563 | + <param name="line-order-Temp" value="1"/> |
| 564 | + |
| 565 | + <param name="ds-expr-LowThresh" value="{Temperature_low_threshold}"/> |
| 566 | + <param name="graph-legend-LowThresh" value="Low threshold"/> |
| 567 | + <param name="line-style-LowThresh" value="LINE1"/> |
| 568 | + <param name="line-color-LowThresh" value="##blue"/> |
| 569 | + <param name="line-order-LowThresh" value="2"/> |
| 570 | + |
| 571 | + <param name="ds-expr-HighThresh" value="{Temperature_high_threshold}"/> |
| 572 | + <param name="graph-legend-HighThresh" value="High threshold"/> |
| 573 | + <param name="line-style-HighThresh" value="LINE1"/> |
| 574 | + <param name="line-color-HighThresh" value="##red"/> |
| 575 | + <param name="line-order-HighThresh" value="3"/> |
| 576 | + </leaf> |
| 577 | + |
| 578 | + <leaf name="Relative_humidity"> |
| 579 | + <param name="ds-type" value="rrd-multigraph"/> |
| 580 | + <param name="ds-names" value="Humid,LowThresh,HighThresh"/> |
| 581 | + <param name="comment" value="Relative humidity (%)"/> |
| 582 | + <param name="vertical-label" value="%"/> |
| 583 | + <param name="precedence" value="90"/> |
| 584 | + |
| 585 | + <param name="ds-expr-Humid" value="{Relative_humidity_value}"/> |
| 586 | + <param name="graph-legend-Humid" value="Relative humidity"/> |
| 587 | + <param name="line-style-Humid" value="LINE2"/> |
| 588 | + <param name="line-color-Humid" value="##green"/> |
| 589 | + <param name="line-order-Humid" value="1"/> |
| 590 | + |
| 591 | + <param name="ds-expr-LowThresh" value="{Humidity_low_threshold}"/> |
| 592 | + <param name="graph-legend-LowThresh" value="Low threshold"/> |
| 593 | + <param name="line-style-LowThresh" value="LINE1"/> |
| 594 | + <param name="line-color-LowThresh" value="##blue"/> |
| 595 | + <param name="line-order-LowThresh" value="2"/> |
| 596 | + |
| 597 | + <param name="ds-expr-HighThresh" value="{Humidity_high_threshold}"/> |
| 598 | + <param name="graph-legend-HighThresh" value="High threshold"/> |
| 599 | + <param name="line-style-HighThresh" value="LINE1"/> |
| 600 | + <param name="line-color-HighThresh" value="##red"/> |
| 601 | + <param name="line-order-HighThresh" value="3"/> |
| 602 | + </leaf> |
| 603 | + |
| 604 | + <leaf name="Status"> |
| 605 | + <param name="ds-type" value="rrd-multigraph"/> |
| 606 | + <param name="ds-names" value="Sensor,Temp,Humid"/> |
| 607 | + <param name="comment" value="Sensor status"/> |
| 608 | + <param name="vertical-label" value="Status (enumeration)"/> |
| 609 | + <param name="precedence" value="10"/> |
| 610 | + |
| 611 | + <param name="ds-expr-Sensor" value="{Sensor_status}"/> |
| 612 | + <param name="graph-legend-Sensor" value="Sensor status"/> |
| 613 | + <param name="line-style-Sensor" value="LINE2"/> |
| 614 | + <param name="line-color-Sensor" value="##green"/> |
| 615 | + <param name="line-order-Sensor" value="1"/> |
| 616 | + |
| 617 | + <param name="ds-expr-Temp" value="{Temperature_sensor_status}"/> |
| 618 | + <param name="graph-legend-Temp" value="Temperature sensor status"/> |
| 619 | + <param name="line-style-Temp" value="LINE2"/> |
| 620 | + <param name="line-color-Temp" value="##blue"/> |
| 621 | + <param name="line-order-Temp" value="2"/> |
| 622 | + |
| 623 | + <param name="ds-expr-Humid" value="{Humidity_sensor_status}"/> |
| 624 | + <param name="graph-legend-Humid" value="Humidity sensor status"/> |
| 625 | + <param name="line-style-Humid" value="LINE2"/> |
| 626 | + <param name="line-color-Humid" value="##yellow"/> |
| 627 | + <param name="line-order-Humid" value="3"/> |
| 628 | + </leaf> |
| 629 | + </template> |
| 630 | + </datasources> |
| 631 | + |
| 632 | + <monitors> |
| 633 | + <!-- The actions --> |
| 634 | + <action name="over-threshold"> |
| 635 | + <param name="action-type" value="tset"/> |
| 636 | + <param name="tset-name" value="Overloaded_circuits"/> |
| 637 | + </action> |
| 638 | + |
| 639 | + <!-- The monitors --> |
| 640 | + <monitor name="overloaded-circuit"> |
| 641 | + <param name="monitor-type" value="expression"/> |
| 642 | + <param name="rpn-expr" value="{LAST@Load_value},{LAST@Load_high_threshold},3,/,GT"/> |
| 643 | + <param name="action" value="over-threshold"/> |
| 644 | + <param name="expires" value="3600"/> |
| 645 | + <param name="comment" value="Overloaded circuit"/> |
| 646 | + </monitor> |
| 647 | + </monitors> |
| 648 | + |
| 649 | + <token-sets> |
| 650 | + <token-set name="Overloaded_circuits"> |
| 651 | + <param name="comment" value="Power circuits which are crossing the load thresholds"/> |
| 652 | + </token-set> |
| 653 | + </token-sets> |
| 654 | +</configuration> |
\ No newline at end of file |