-
-
Notifications
You must be signed in to change notification settings - Fork 427
Add new templates options #2524
Copy link
Copy link
Closed
Labels
CGIenhancementimpacts-release-2.8.0Issues reported against NUT release 2.8.0 (maybe vanilla or with minor packaging tweaks)Issues reported against NUT release 2.8.0 (maybe vanilla or with minor packaging tweaks)impacts-release-2.8.2Issues reported against NUT release 2.8.2 (maybe vanilla or with minor packaging tweaks)Issues reported against NUT release 2.8.2 (maybe vanilla or with minor packaging tweaks)
Milestone
Metadata
Metadata
Assignees
Labels
CGIenhancementimpacts-release-2.8.0Issues reported against NUT release 2.8.0 (maybe vanilla or with minor packaging tweaks)Issues reported against NUT release 2.8.0 (maybe vanilla or with minor packaging tweaks)impacts-release-2.8.2Issues reported against NUT release 2.8.2 (maybe vanilla or with minor packaging tweaks)Issues reported against NUT release 2.8.2 (maybe vanilla or with minor packaging tweaks)
I'd like an option to select a template at runtime when running UPSSTATS.CGI.
Something like a query string element
upsstats.cgi?template=mytemplate.html,or possibly even
upsstats.cgi?template=/path/to/mytemplate.htmlIt would be good to allow the use of
jsonorxmlas an extension instead ofhtml, as inupsstats.cgi?template=mytemplate.json,The specific use case is to emit data in JSON format to import into PRTG for monitoring while leaving the friendlier HTML version alone for those wanting to query NUT directly in a browser.