Re: [Nut-upsuser] Accessing: upsstats.cgi Error: no hosts to monitor (check hosts.conf)
Jim Klimov writes: > Not fully true about example configs in docs: man pages for CGI bits have > some :) > > https://github.com/networkupstools/nut/blob/master/docs/man/upsset.conf.txt > https://github.com/networkupstools/nut/blob/master/docs/man/upsstats.cgi.txt > https://github.com/networkupstools/nut/blob/master/docs/man/hosts.conf.txt > etc. Fair enough, but I didn't find them when looking quickly. What I was hoping was to find a httpd-nut.conf file that would be installed to $prefix/share/examples/nut and that would have paths substituted so it could just be included. I have lost track of apache config changes, but at this point I would say 2.4 is normal and and <= 2.2 is so old that all mention of it should be purged. Maybe the text should say "in apache 2.4, blah blah" just so people on really old laggard term stable won't be misled. Is anyone still using apache 2.2? ___ Nut-upsuser mailing list Nut-upsuser@alioth-lists.debian.net https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser
Re: [Nut-upsuser] Accessing: upsstats.cgi Error: no hosts to monitor (check hosts.conf)
Not fully true about example configs in docs: man pages for CGI bits have some :) https://github.com/networkupstools/nut/blob/master/docs/man/upsset.conf.txt https://github.com/networkupstools/nut/blob/master/docs/man/upsstats.cgi.txt https://github.com/networkupstools/nut/blob/master/docs/man/hosts.conf.txt etc. Other than that, check permissions - e.g. OTOH if Apache user may read your /etc/nut/hosts.conf (and the /etc/nut directory - may be inaccessible to non-nut accounts completely, at least in packaging) Hope this helps, Jim On Thu, Jun 15, 2023 at 12:38 AM Greg Troxel wrote: > Dan Grostick via Nut-upsuser > writes: > > > When Apache starts is complains about not finding the fully qualified > domain name. > > That seems normal > > > In the past, upsstats.cgi would just load. I didn’t have to do any > Apache2 configuration. I don’t know what has changed. > > in general this does need configuration. read the apache config file. > read the apache logs. > > > I’ve build NUT 2.8.0 from source, autogened, configured, make, make > > install, and it is running. Is there something I’m missing that isn’t > > getting updated when I do the make install? > > I would not expect that to adjust apache configs. > > > Upsstats.cgi and the others are located in the cgi-bin/nut/ folder. > > generally one needs a config stanza that says for this web path execute > this binary. Both ScriptAlias and Directory. > > > I can get to http://192.168.123.49/ and the Apache page loads. > > > > Any suggestions? > > Read the apache manual about to configure cgi. (I'm actually serious.) > > I don't see any example config files in the sources. > > > ___ > Nut-upsuser mailing list > Nut-upsuser@alioth-lists.debian.net > https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser > ___ Nut-upsuser mailing list Nut-upsuser@alioth-lists.debian.net https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser
Re: [Nut-upsuser] Accessing: upsstats.cgi Error: no hosts to monitor (check hosts.conf)
Dan Grostick via Nut-upsuser writes: > When Apache starts is complains about not finding the fully qualified domain > name. That seems normal > In the past, upsstats.cgi would just load. I didn’t have to do any Apache2 > configuration. I don’t know what has changed. in general this does need configuration. read the apache config file. read the apache logs. > I’ve build NUT 2.8.0 from source, autogened, configured, make, make > install, and it is running. Is there something I’m missing that isn’t > getting updated when I do the make install? I would not expect that to adjust apache configs. > Upsstats.cgi and the others are located in the cgi-bin/nut/ folder. generally one needs a config stanza that says for this web path execute this binary. Both ScriptAlias and Directory. > I can get to http://192.168.123.49/ and the Apache page loads. > > Any suggestions? Read the apache manual about to configure cgi. (I'm actually serious.) I don't see any example config files in the sources. ___ Nut-upsuser mailing list Nut-upsuser@alioth-lists.debian.net https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/nut-upsuser