295 lines
6.5 KiB
Plaintext
295 lines
6.5 KiB
Plaintext
<!-- upsstats template file -->
|
|
|
|
<!--
|
|
This is upsstats-single.html, a template for monitoring a single
|
|
host. This mode is selected by adding "host=<host>" to the
|
|
upsstats.cgi URL.
|
|
|
|
Such URLs are generated automatically when using the HOSTLINK
|
|
command.
|
|
|
|
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@
|
|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
|
|
"http://www.w3.org/TR/REC-html40/loose.dtd">
|
|
<html>
|
|
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
|
@REFRESH@
|
|
<title>@HOSTDESC@ : @VAR ups.model@ on @HOST@</title>
|
|
<!-- LINK REL="stylesheet" TYPE="text/css" HREF="http://localhost/nut/nut.css" / -->
|
|
</head>
|
|
<body BGCOLOR="#808080" TEXT="#00FC00" LINK="#0000EE" VLINK="#551A8B">
|
|
|
|
<table BORDER="1" ALIGN="CENTER" CELLSPACING="0" CELLPADDING="10" BGCOLOR="#000000">
|
|
|
|
<tr>
|
|
<th COLSPAN="20">Network UPS Tools upsstats @VERSION@ - @HOSTDESC@ - @VAR ups.model@ on @HOST@</th>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th>@DATE %a %b %d %X %Z %Y@</th>
|
|
@IFSUPP ambient.temperature@
|
|
<th>Ambient</th>
|
|
@ELSE@
|
|
@IFSUPP ambient.humidity@
|
|
<th>Ambient</th>
|
|
@ENDIF@
|
|
<th>Battery</th>
|
|
<th>Input</th>
|
|
<th>Output</th>
|
|
<th>Load</th>
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td BGCOLOR="#000000" VALIGN="TOP">
|
|
|
|
<table BORDER="0"> <!-- table 2 -->
|
|
|
|
<tr>
|
|
<th ALIGN="RIGHT">UPS Model:</th>
|
|
<td>@VAR ups.model@</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<th ALIGN="RIGHT">Status:</th>
|
|
<td>@STATUS@</td>
|
|
</tr>
|
|
|
|
@IFSUPP battery.runtime@
|
|
<tr>
|
|
<th ALIGN="RIGHT">Runtime:</th>
|
|
<td>@RUNTIME@</td>
|
|
</tr>
|
|
@ENDIF@
|
|
|
|
@IFSUPP ups.temperature@
|
|
<tr>
|
|
<th ALIGN="RIGHT">UPS temp:</th>
|
|
<td>@UPSTEMP@ @DEGREES@</td>
|
|
</tr>
|
|
@ENDIF@
|
|
|
|
@IFSUPP battery.voltage@
|
|
<tr>
|
|
<th ALIGN="RIGHT">Battery: </th>
|
|
<td>@VAR battery.voltage@ V@IFSUPP battery.current@, @VAR battery.current@ A</td>
|
|
@ENDIF@
|
|
|
|
<tr>
|
|
<th VALIGN="TOP" ALIGN="RIGHT">Input: </th>
|
|
|
|
<td>
|
|
|
|
@IFSUPP input.L2-L3.voltage@
|
|
@VAR input.L1-L2.voltage@ V<br>
|
|
@VAR input.L2-L3.voltage@ V<br>
|
|
@VAR input.L3-L1.voltage@ V<br>
|
|
</td>
|
|
</tr>
|
|
@ELSE@
|
|
@IFSUPP input.L2-N.voltage@
|
|
@VAR input.L1-N.voltage@ V<br>
|
|
@VAR input.L2-N.voltage@ V<br>
|
|
@VAR input.L3-N.voltage@ V<br>
|
|
</td>
|
|
</tr>
|
|
@ELSE@
|
|
@IFSUPP input.voltage@
|
|
@VAR input.voltage@ V<br>
|
|
</td>
|
|
</tr>
|
|
@ENDIF@
|
|
|
|
@IFSUPP input.L2.current@
|
|
<tr>
|
|
<th>
|
|
<td>
|
|
@VAR input.L1.current@ A<br>
|
|
@VAR input.L2.current@ A<br>
|
|
@VAR input.L3.current@ A<br>
|
|
</td>
|
|
</tr>
|
|
@ELSE@
|
|
@IFSUPP input.current@
|
|
<tr>
|
|
<th>
|
|
<td>
|
|
@VAR input.current@ A
|
|
</td>
|
|
</tr>
|
|
@ENDIF@
|
|
|
|
@IFSUPP input.frequency@
|
|
<tr>
|
|
<th>
|
|
<td>
|
|
@VAR input.frequency@ Hz
|
|
</td>
|
|
</tr>
|
|
@ENDIF@
|
|
|
|
<tr>
|
|
<th VALIGN="TOP" ALIGN="RIGHT">Output: </th>
|
|
<td>
|
|
|
|
@IFSUPP output.L2-L3.voltage@
|
|
@VAR output.L1-L2.voltage@ V<br>
|
|
@VAR output.L2-L3.voltage@ V<br>
|
|
@VAR output.L3-L1.voltage@ V<br>
|
|
</td>
|
|
</tr>
|
|
@ELSE@
|
|
@IFSUPP output.L2-N.voltage@
|
|
@VAR output.L1-N.voltage@ V<br>
|
|
@VAR output.L2-N.voltage@ V<br>
|
|
@VAR output.L3-N.voltage@ V<br>
|
|
</td>
|
|
</tr>
|
|
@ELSE@
|
|
@IFSUPP output.voltage@
|
|
@VAR output.voltage@ V
|
|
</td>
|
|
</tr>
|
|
@ENDIF@
|
|
|
|
@IFSUPP output.L2.current@
|
|
<tr>
|
|
<th>
|
|
<td>
|
|
@VAR output.L1.current@ A<br>
|
|
@VAR output.L2.current@ A<br>
|
|
@VAR output.L3.current@ A<br>
|
|
</td>
|
|
</tr>
|
|
@ELSE@
|
|
@IFSUPP output.current@
|
|
<tr>
|
|
<th>
|
|
<td>
|
|
@VAR output.current@ A
|
|
</td>
|
|
</tr>
|
|
@ENDIF@
|
|
|
|
@IFSUPP output.frequency@
|
|
<tr>
|
|
<th>
|
|
<td>
|
|
@VAR output.frequency@ Hz
|
|
</td>
|
|
</tr>
|
|
@ENDIF@
|
|
|
|
</table> <!-- table 2 -->
|
|
</td>
|
|
|
|
@IFSUPP ambient.temperature@
|
|
@IFSUPP ambient.humidity@
|
|
<td ALIGN="CENTER" VALIGN="TOP" BGCOLOR="#000000">
|
|
<table BORDER="0"><tr>
|
|
<td ALIGN="CENTER">Temperature<br>@IMG ambient.temperature tempmin=0 tempmax=50 width=90@</td>
|
|
<td ALIGN="CENTER">Humidity<br>@IMG ambient.humidity width=90@</td>
|
|
</tr></table>
|
|
</td>
|
|
@ELSE@
|
|
@IFSUPP ambient.temperature@
|
|
<td ALIGN="CENTER" VALIGN="TOP" BGCOLOR="#000000">
|
|
<table BORDER="0"><tr>
|
|
<td ALIGN="CENTER">Temperature<br>@IMG ambient.temperature tempmin=0 tempmax=50@</td>
|
|
</tr></table>
|
|
</td>
|
|
@ELSE@
|
|
@IFSUPP ambient.humidity@
|
|
<td ALIGN="CENTER" VALIGN="TOP" BGCOLOR="#000000">
|
|
<table BORDER="0"><tr>
|
|
<td ALIGN="CENTER">Humidity<br>@IMG ambient.humidity@</td>
|
|
</tr></table>
|
|
</td>
|
|
@ENDIF@
|
|
|
|
<td ALIGN="CENTER" VALIGN="TOP" BGCOLOR="#000000">
|
|
<table BORDER="0"><tr>
|
|
@IFSUPP battery.charge@
|
|
@IFSUPP battery.voltage@
|
|
<td ALIGN="CENTER">Charge<br>@IMG battery.charge width=90@</td>
|
|
<td ALIGN="CENTER">Voltage<br>@IMG battery.voltage width=90@</td>
|
|
@ELSE@
|
|
@IFSUPP battery.charge@
|
|
<td ALIGN="CENTER">Charge<br>@IMG battery.charge@</td>
|
|
@ELSE@
|
|
<td ALIGN="CENTER">Voltage<br>@IMG battery.voltage@</td>
|
|
@ENDIF@
|
|
</tr></table>
|
|
</td>
|
|
|
|
<td ALIGN="CENTER" VALIGN="TOP" BGCOLOR="#000000">
|
|
<table BORDER="0"><tr>
|
|
@IFSUPP input.L2-L3.voltage@
|
|
<td ALIGN="CENTER">L1-L2<br>@IMG input.L1-L2.voltage width=68@</td>
|
|
<td ALIGN="CENTER">L2-L3<br>@IMG input.L2-L3.voltage width=68@</td>
|
|
<td ALIGN="CENTER">L3-L1<br>@IMG input.L3-L1.voltage width=68@</td>
|
|
@ELSE@
|
|
@IFSUPP input.L2-N.voltage@
|
|
<td ALIGN="CENTER">L1-N<br>@IMG input.L1-N.voltage width=68@</td>
|
|
<td ALIGN="CENTER">L2-N<br>@IMG input.L2-N.voltage width=68@</td>
|
|
<td ALIGN="CENTER">L3-N<br>@IMG input.L3-N.voltage width=68@</td>
|
|
@ELSE@
|
|
<td ALIGN="CENTER"><br>@IMG input.voltage@</td>
|
|
@ENDIF@
|
|
</tr></table>
|
|
</td>
|
|
|
|
<td ALIGN="CENTER" VALIGN="TOP" BGCOLOR="#000000">
|
|
<table BORDER="0"><tr>
|
|
@IFSUPP output.L2-L3.voltage@
|
|
<td ALIGN="CENTER">L1-L2<br>@IMG output.L1-L2.voltage width=68@</td>
|
|
<td ALIGN="CENTER">L2-L3<br>@IMG output.L2-L3.voltage width=68@</td>
|
|
<td ALIGN="CENTER">L3-L1<br>@IMG output.L3-L1.voltage width=68@</td>
|
|
@ELSE@
|
|
@IFSUPP output.L2-N.voltage@
|
|
<td ALIGN="CENTER">L1-N<br>@IMG output.L1-N.voltage width=68@</td>
|
|
<td ALIGN="CENTER">L2-N<br>@IMG output.L2-N.voltage width=68@</td>
|
|
<td ALIGN="CENTER">L3-N<br>@IMG output.L3-N.voltage width=68@</td>
|
|
@ELSE@
|
|
<td ALIGN="CENTER"><br>@IMG output.voltage@</td>
|
|
@ENDIF@
|
|
</tr></table>
|
|
</td>
|
|
|
|
<td ALIGN="CENTER" VALIGN="TOP" BGCOLOR="#000000">
|
|
<table BORDER="0"><tr>
|
|
@IFSUPP output.L2.power.percent@
|
|
<td ALIGN="CENTER">L1<br>@IMG output.L1.power.percent width=68@</td>
|
|
<td ALIGN="CENTER">L2<br>@IMG output.L2.power.percent width=68@</td>
|
|
<td ALIGN="CENTER">L3<br>@IMG output.L3.power.percent width=68@</td>
|
|
@ELSE@
|
|
@IFSUPP output.L2.realpower.percent@
|
|
<td ALIGN="CENTER">L1<br>@IMG output.L1.realpower.percent width=68@</td>
|
|
<td ALIGN="CENTER">L2<br>@IMG output.L2.realpower.percent width=68@</td>
|
|
<td ALIGN="CENTER">L3<br>@IMG output.L3.realpower.percent width=68@</td>
|
|
@ELSE@
|
|
<td ALIGN="CENTER"><br>@IMG ups.load@</td>
|
|
@ENDIF@
|
|
</tr></table>
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
<a href="http://validator.w3.org/check?uri=referer"><img style="float:right"
|
|
src="http://www.w3.org/Icons/valid-html40"
|
|
alt="Valid HTML 4.0 Transitional" height="31" width="88"></a>
|
|
|
|
</body>
|
|
</html>
|