2010-03-25 23:20:59 +00:00
|
|
|
<!-- upsstats template file -->
|
|
|
|
|
2022-06-29 10:37:36 +00:00
|
|
|
<!--
|
2010-03-25 23:20:59 +00:00
|
|
|
This (upsstats.html) is the default template file which is used
|
|
|
|
when upsstats.cgi is loaded with no arguments.
|
|
|
|
|
|
|
|
It usually contains a FOREACHUPS block to iterate through every
|
|
|
|
UPS in the hosts.conf.
|
|
|
|
|
|
|
|
See upsstats.html(5) for more information on template files.
|
|
|
|
-->
|
|
|
|
|
|
|
|
<!-- change this to TEMPF if you don't like Celsius. -->
|
|
|
|
|
|
|
|
@TEMPC@
|
|
|
|
@UPSSTATSPATH upsstats.cgi@
|
|
|
|
@UPSIMAGEPATH upsimage.cgi@
|
|
|
|
|
2022-06-29 10:37:36 +00:00
|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
|
|
|
"http://www.w3.org/TR/html4/strict.dtd">
|
2010-03-25 23:20:59 +00:00
|
|
|
<html>
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
|
|
@REFRESH@
|
|
|
|
<title>
|
2022-06-29 10:37:36 +00:00
|
|
|
Network UPS Tools upsstats
|
2010-03-25 23:20:59 +00:00
|
|
|
@VERSION@
|
|
|
|
: UPS Status
|
|
|
|
</title>
|
2022-06-29 10:37:36 +00:00
|
|
|
<style type="text/css">
|
|
|
|
body{font-family:"Times New Roman", Times, serif;}
|
|
|
|
a:link{color:#00e;}
|
|
|
|
a:visited{color:#551a8b;}
|
|
|
|
th, td{padding:0.5ex;}
|
|
|
|
.t1{background:#0ff;}
|
|
|
|
.t2{background:#0f0;}
|
|
|
|
</style>
|
2010-03-25 23:20:59 +00:00
|
|
|
<!-- link rel="stylesheet" type="text/css" href="nut.css" / -->
|
|
|
|
@REFRESH@
|
|
|
|
</head>
|
2022-06-29 10:37:36 +00:00
|
|
|
<body>
|
2010-03-25 23:20:59 +00:00
|
|
|
|
2022-06-29 10:37:36 +00:00
|
|
|
<table style="margin:auto; background:#50A0A0; text-align:center;">
|
2010-03-25 23:20:59 +00:00
|
|
|
<tr><td>
|
|
|
|
|
2022-06-29 10:37:36 +00:00
|
|
|
<table>
|
2010-03-25 23:20:59 +00:00
|
|
|
<tr>
|
2022-06-29 10:37:36 +00:00
|
|
|
<th COLSPAN="10" style="background:#60B0B0;">
|
2010-03-25 23:20:59 +00:00
|
|
|
|
2022-06-29 10:37:36 +00:00
|
|
|
<span style="font-size:1.5em">Network UPS Tools upsstats
|
2010-03-25 23:20:59 +00:00
|
|
|
@VERSION@
|
2022-06-29 10:37:36 +00:00
|
|
|
</span>
|
2010-03-25 23:20:59 +00:00
|
|
|
|
|
|
|
<br>
|
|
|
|
@DATE %a %b %d %X %Z %Y@
|
|
|
|
</th>
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
2022-06-29 10:37:36 +00:00
|
|
|
<tr style="background:#60B0B0;">
|
2010-03-25 23:20:59 +00:00
|
|
|
<th COLSPAN="1">System</th>
|
|
|
|
<th COLSPAN="1">Model</th>
|
|
|
|
<th COLSPAN="1">Status</th>
|
|
|
|
<th COLSPAN="1">Battery</th>
|
|
|
|
<th COLSPAN="1">Input (VAC)</th>
|
|
|
|
<th COLSPAN="1">Output (VAC)</th>
|
|
|
|
<th COLSPAN="1">Load (%)</th>
|
|
|
|
<th COLSPAN="1">UPS<br>Temp</th>
|
|
|
|
<th COLSPAN="1">Battery<br>Runtime</th>
|
|
|
|
<th COLSPAN="1">Data<br>Tree</th>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
@FOREACHUPS@
|
|
|
|
|
2022-06-29 10:37:36 +00:00
|
|
|
<tr>
|
|
|
|
<td class="t1">
|
2010-03-25 23:20:59 +00:00
|
|
|
@HOSTLINK@
|
|
|
|
</td>
|
|
|
|
|
2022-06-29 10:37:36 +00:00
|
|
|
<td class="t1">
|
2010-03-25 23:20:59 +00:00
|
|
|
@VAR ups.model@
|
|
|
|
</td>
|
|
|
|
|
2022-06-29 10:37:36 +00:00
|
|
|
<td style="background:@STATUSCOLOR@">
|
2010-03-25 23:20:59 +00:00
|
|
|
@STATUS@
|
|
|
|
</td>
|
|
|
|
|
2022-06-29 10:37:36 +00:00
|
|
|
<td class="t2">
|
2010-03-25 23:20:59 +00:00
|
|
|
@IFSUPP battery.charge@
|
|
|
|
@VAR battery.charge@
|
|
|
|
%
|
|
|
|
@ENDIF@
|
|
|
|
</td>
|
|
|
|
|
|
|
|
@IFSUPP input.L2-L3.voltage@
|
|
|
|
@IFBETWEEN input.transfer.low input.transfer.high input.L1-L2.voltage@
|
|
|
|
@IFBETWEEN input.transfer.low input.transfer.high input.L2-L3.voltage@
|
|
|
|
@IFBETWEEN input.transfer.low input.transfer.high input.L3-L1.voltage@
|
2022-06-29 10:37:36 +00:00
|
|
|
<td class="t2">
|
2010-03-25 23:20:59 +00:00
|
|
|
@ELSE@
|
|
|
|
@IFSUPP input.L2-N.voltage@
|
|
|
|
@IFBETWEEN input.transfer.low input.transfer.high input.L1-N.voltage@
|
|
|
|
@IFBETWEEN input.transfer.low input.transfer.high input.L2-N.voltage@
|
|
|
|
@IFBETWEEN input.transfer.low input.transfer.high input.L3-N.voltage@
|
2022-06-29 10:37:36 +00:00
|
|
|
<td class="t2">
|
2010-03-25 23:20:59 +00:00
|
|
|
@ELSE@
|
|
|
|
@IFBETWEEN input.transfer.low input.transfer.high input.voltage@
|
2022-06-29 10:37:36 +00:00
|
|
|
<td class="t2">
|
2010-03-25 23:20:59 +00:00
|
|
|
@ELSE@
|
2022-06-29 10:37:36 +00:00
|
|
|
<td style="background:red;">
|
2010-03-25 23:20:59 +00:00
|
|
|
@ENDIF@
|
|
|
|
|
|
|
|
@IFSUPP input.L2-L3.voltage@
|
|
|
|
@VAR input.L1-L2.voltage@
|
|
|
|
@VAR input.L2-L3.voltage@
|
|
|
|
@VAR input.L3-L1.voltage@
|
|
|
|
@ELSE@
|
|
|
|
@IFSUPP input.L2-N.voltage@
|
|
|
|
@VAR input.L1-N.voltage@
|
|
|
|
@VAR input.L2-N.voltage@
|
|
|
|
@VAR input.L3-N.voltage@
|
|
|
|
@ELSE@
|
|
|
|
@IFSUPP input.voltage@
|
|
|
|
@VAR input.voltage@
|
|
|
|
@ENDIF@
|
|
|
|
</td>
|
|
|
|
|
2022-06-29 10:37:36 +00:00
|
|
|
<td class="t2">
|
2010-03-25 23:20:59 +00:00
|
|
|
@IFSUPP output.L2-L3.voltage@
|
|
|
|
@VAR output.L1-L2.voltage@
|
|
|
|
@VAR output.L2-L3.voltage@
|
|
|
|
@VAR output.L3-L1.voltage@
|
|
|
|
@ELSE@
|
|
|
|
@IFSUPP output.L2-N.voltage@
|
|
|
|
@VAR output.L1-N.voltage@
|
|
|
|
@VAR output.L2-N.voltage@
|
|
|
|
@VAR output.L3-N.voltage@
|
|
|
|
@ELSE@
|
|
|
|
@IFSUPP output.voltage@
|
|
|
|
@VAR output.voltage@
|
|
|
|
@ENDIF@
|
|
|
|
</td>
|
|
|
|
|
2022-06-29 10:37:36 +00:00
|
|
|
<td class="t2">
|
2010-03-25 23:20:59 +00:00
|
|
|
@IFSUPP output.L2.power.percent@
|
|
|
|
@VAR output.L1.power.percent@
|
|
|
|
@VAR output.L2.power.percent@
|
|
|
|
@VAR output.L3.power.percent@
|
|
|
|
@ELSE@
|
|
|
|
@IFSUPP output.L2.realpower.percent@
|
|
|
|
@VAR output.L1.realpower.percent@
|
|
|
|
@VAR output.L2.realpower.percent@
|
|
|
|
@VAR output.L3.realpower.percent@
|
|
|
|
@ELSE@
|
|
|
|
@IFSUPP ups.load@
|
|
|
|
@VAR ups.load@
|
|
|
|
%
|
|
|
|
@ENDIF@
|
|
|
|
</td>
|
|
|
|
|
2022-06-29 10:37:36 +00:00
|
|
|
<td class="t2">
|
2010-03-25 23:20:59 +00:00
|
|
|
@IFSUPP ups.temperature@
|
|
|
|
@UPSTEMP@
|
|
|
|
@DEGREES@
|
|
|
|
@ELSE@
|
|
|
|
@IFSUPP battery.temperature@
|
|
|
|
@BATTTEMP@
|
|
|
|
@DEGREES@
|
|
|
|
@ENDIF@
|
|
|
|
</td>
|
|
|
|
|
2022-06-29 10:37:36 +00:00
|
|
|
<td class="t2">
|
2010-03-25 23:20:59 +00:00
|
|
|
@IFSUPP battery.runtime@
|
|
|
|
@RUNTIME@
|
|
|
|
@ENDIF@
|
|
|
|
</td>
|
|
|
|
|
2022-06-29 10:37:36 +00:00
|
|
|
<td class="t2">
|
2010-03-25 23:20:59 +00:00
|
|
|
@TREELINK@
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
|
|
@ENDFOR@
|
|
|
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
</td></tr>
|
|
|
|
</table>
|
|
|
|
|
2022-06-29 10:37:36 +00:00
|
|
|
<hr><div><small>
|
|
|
|
<a href="https://jigsaw.w3.org/css-validator/check/referer"><img style="float:right" src="https://jigsaw.w3.org/css-validator/images/vcss" alt="Valid CSS!" height="31" width="88"></a>
|
|
|
|
<a href="https://validator.w3.org/check?uri=referer"><img style="float:right" src="https://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01 Strict" height="31" width="88"></a>
|
2010-03-25 23:20:59 +00:00
|
|
|
</small></div>
|
|
|
|
|
|
|
|
</body></html>
|