Skip to content

Windows and NUT CGI Web Pages #3219

@aarnold-sd68

Description

@aarnold-sd68

I'm taking a look at the web interface for Nut, Nut-cgi I believe it's called, but I'm not having any luck :(. Is it even possible to get it working on windows? I can get the main page working, Network UPS Tools with the statistics and settings links. But clicking the links gets me a page not found error. If I run https://serverip/cgi-bin/upsstats.cgi.exe I get this error :Error: can't open template file (upsstats.html) upsstats: Can't open
\?\C:\mingw64\cgi-bin..\etc/upsstats.html: Invalid argument. Which I'm assuming has something to do with it :). The file does exist in etc directory but that is a weird way of displaying the path. If I type in the path to the upstats.html file I do get the page all be it with no data, which I believe makes sense as it needs to come from the upstats.cgi.exe. If I add ?json to the end I do get some data.

oh and I also uncommented the "I_HAVE_SECURED_MY_CGI_DIRECTORY" in upsset.conf

Metadata

Metadata

Assignees

No one assigned

    Labels

    CGIWindowsbugimpacts-release-2.8.4Issues reported against NUT release 2.8.4 (maybe vanilla or with minor packaging tweaks)

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions