Re: [Apcupsd-users] Error: Cannot open hosts file
Brought to you by:
adk0212
|
From: John M. A. <joh...@pe...> - 2015-07-03 01:39:28
|
AWESOME!!! You guys rock! A million thanks to all who replied and from all your replies I manged to make it work. What I did is simply copy the folder etc from "c:\apcupsd\etc" and save it directly to "c:\etc". I hope in the future release that multimon.cgi would be able to read the hosts.conf from c:\apcupsd\etc\apcupsd which is the default installation directory rather than creating a link like c:\etc\apcupsd. Again, thank you so much, guys. On Fri, Jul 3, 2015 at 1:08 AM, Chad <ch...@cr...> wrote: > An alternative would be to create a symbolic link to the "?:\apcupsd\etc" > folder as "?:\etc" using the mklink /D command (or sysinternals junction > cmd for XP) where ? is the install drive letter. This will allow the > multimon.cgi script to use the original hosts.conf file > > Thanks to Adam for the info!! > > Chad. > > At 10:52 AM 7/2/2015, you wrote: > > It seems that my issues are only with the multimon.cgi file linked to the > hosts.conf file. When I run the other cgi files i.e. upsstats.cgi or > upsfstats.cgi it works fine. So, since I only have one UPS I'm monitoring, > I'll skip using multimon.cgi as it only takes you back to the same sub cgi > files anyway. > > I used the link http://localhost/cgi-bin/upsstats.cgi > > > *From:* Adam Kropelin <ad...@kr...> > *To:* David Prater <dpr...@ya...>; Apcupsd Discussion List < > apc...@li...> > *Sent:* Thursday, July 2, 2015 10:13 AM > *Subject:* Re: [Apcupsd-users] Error: Cannot open hosts file > > It looks like on Windows apcupsd is expecting the hosts.conf to be in > "\etc\apcupsd" ... it is missing the installation directory prefix. If you > create that directory on the drive from which the web server will be > running the cgi scripts, it should work... > > The CGI scripts are rarely ever used on Windows. If you are looking to > monitor your UPSes from a Windows (or OS X) workstation, have you > considered just adding them to the tray applet? > > --Adam > > > > On Thu, Jul 2, 2015 at 7:54 AM, David Prater <dpr...@ya...> wrote: > I'm having the same issue, so it seems like it's not isolated. I've > changed all the permissions for the host.conf and both relocated the > host.conf file into the same web directory AND moved the web directory into > the same folder as aspupsd. > > I can connect to the UPS via apcupsd.exe and I'm receiving statuses from > the ups, so it's isolated to the CGI file. I'd love to get this to run. > > > > From: Jan Ceuleers < jan...@co...> > To: apc...@li... > Sent: Thursday, July 2, 2015 7:15 AM > Subject: Re: [Apcupsd-users] Error: Cannot open hosts file > > On 02/07/15 12:02, John Michael Alintano wrote: > > Thanks for the reply Jan. > > > > Yes, I have both hosts.conf and apcupsd.conf located on the same drive > > with my web page. These files are located on c:\apcupsd\etc\apcupds on > > my machine. I have also configured hosts.conf similar to what you've > > suggested but I'm still having the error. > > OK, so you've established that the file exists. > > But does the account under which the CGI script runs have read access to > it? > > > > > > > ------------------------------------------------------------------------------ > Don't Limit Your Business. Reach for the Cloud. > GigeNET's Cloud Solutions provide you with the tools and support that > you need to offload your IT needs and focus on growing your business. > Configured For All Businesses. Start Your Cloud Today. > https://www.gigenetcloud.com/ > _______________________________________________ > Apcupsd-users mailing list > Apc...@li... > https://lists.sourceforge.net/lists/listinfo/apcupsd-users > > > > ------------------------------------------------------------------------------ > Don't Limit Your Business. Reach for the Cloud. > GigeNET's Cloud Solutions provide you with the tools and support that > you need to offload your IT needs and focus on growing your business. > Configured For All Businesses. Start Your Cloud Today. > https://www.gigenetcloud.com/ > _______________________________________________ > Apcupsd-users mailing list > Apc...@li... > https://lists.sourceforge.net/lists/listinfo/apcupsd-users > > |