networkupstools / nut

The Network UPS Tools repository. UPS management protocol Informational RFC 9271 published by IETF at https://www.rfc-editor.org/info/rfc9271 Please star NUT on GitHub, this helps with sponsorships!
https://networkupstools.org/
Other
2.03k stars 349 forks source link

User defined variables in upsstats.html #106

Open clepple opened 10 years ago

clepple commented 10 years ago

From http://article.gmane.org/gmane.comp.monitoring.nut.user/8363

Is there any way to set and consume user defined variables in upsstats.html

I would like to set lower thresholds for temperature than are set in the UPSes for my web page but I cannot figure out how to pass a value that is not a variable into IFBETWEEN.

Is there a way to say:

   @IFBETWEEN 15 25 ambient.temperature@
   <td BGCOLOR="#00FF00">
   @ELSE@
   <td BGCOLOR="#FF0000">
   @ENDIF@
clepple commented 6 years ago

Alternate URL: http://lists.alioth.debian.org/pipermail/nut-upsuser/2014-February/008920.html