Re: Were is gapcmon?
On 21/02/18 08:03, Marc Auslander wrote: > "Juan R. de Silva" writes: > >> I've been using gapcmon GUI to control my APC UPS backup units for years. >> I cannot find it in Debian Stretch repos. Was the package removed? For >> what reason? What can I use in its stead? >> >> Thanks. > > I've always use apcupsd which still works in stretch. My use is pretty > trivial - just reports - I don't do anything automatic on power fail > since I can't figure out how to do anything that will always wind up > with my machine running when the power comes back! I think you can usually set the power-on behaviour in the BIOS (or EFI, presumably) - independently of the OS or any shutdown process. Richard signature.asc Description: OpenPGP digital signature
Re: Were is gapcmon?
On Thu, Feb 22, 2018 at 03:19:36PM +, Juan R. de Silva wrote: > On Wed, 21 Feb 2018 21:38:55 -0500, Roberto C. Sánchez wrote: > > > That is a choice you have to make. If you run a firewall on your machine > > and you do not expose the ports (3551 for apcupsd and 80 for httpd), > > then there is no real concern. That said, if you do not want to worry > > about a webserver, you can probably script something that retrieves that > > data from the apcupsd process on port 3551. It should not require very > > much effort at all. > > Thanks, Roberto. > I went poking around on my machine and found that if you install the apcupsd-doc package, then you end with a bunch of examples in /usr/share/doc/apcupsd/examples/. There appear to be examples at least in C, Tcl, and shell. You might find something helpful there. Regards, -Roberto -- Roberto C. Sánchez
Re: Were is gapcmon?
On Wed, 21 Feb 2018 21:38:55 -0500, Roberto C. Sánchez wrote: > On Thu, Feb 22, 2018 at 02:04:12AM +, Juan R. de Silva wrote: >> >> Ups, I've totaly missed that Marc said 'apcupsd'. In this case here are >> my deep appologies to Marc and everybody Being over busy last couple of >> days I was quite hasty in this case. Sorry. >> > No problem. I certainly was not offended. It was an honest mistake. > >> BTW. about apcupsd-cgi. I found that in order to use it I need to >> install appache2. I never needed to run a server on my home desktop >> before. Wouldn't it be a little overkill to install appache server only >> to use apcupsd web interface? >> > The dependency is 'apache2 | httpd', so you can use just about any web > server since they all support CGI. You might find lighttpd simpler than > apache2. > >> I'm realy not sure I want to spend a lot of time on securing and then >> maintaning the server. However I'm not realy familiar with the matter. >> Is it over complicated or I'd rather use CLI to control apcuspd daemon? >> > That is a choice you have to make. If you run a firewall on your machine > and you do not expose the ports (3551 for apcupsd and 80 for httpd), > then there is no real concern. That said, if you do not want to worry > about a webserver, you can probably script something that retrieves that > data from the apcupsd process on port 3551. It should not require very > much effort at all. Thanks, Roberto.
Re: Were is gapcmon?
On Thu, Feb 22, 2018 at 02:04:12AM +, Juan R. de Silva wrote: > > Ups, I've totaly missed that Marc said 'apcupsd'. In this case here are > my deep appologies to Marc and everybody Being over busy last couple of > days I was quite hasty in this case. Sorry. > No problem. I certainly was not offended. It was an honest mistake. > BTW. about apcupsd-cgi. I found that in order to use it I need to install > appache2. I never needed to run a server on my home desktop before. > Wouldn't it be a little overkill to install appache server only to use > apcupsd web interface? > The dependency is 'apache2 | httpd', so you can use just about any web server since they all support CGI. You might find lighttpd simpler than apache2. > I'm realy not sure I want to spend a lot of time on securing and then > maintaning the server. However I'm not realy familiar with the matter. Is > it over complicated or I'd rather use CLI to control apcuspd daemon? > That is a choice you have to make. If you run a firewall on your machine and you do not expose the ports (3551 for apcupsd and 80 for httpd), then there is no real concern. That said, if you do not want to worry about a webserver, you can probably script something that retrieves that data from the apcupsd process on port 3551. It should not require very much effort at all. Regards, -Roberto -- Roberto C. Sánchez
Re: Were is gapcmon?
On Wed, 21 Feb 2018 20:36:03 -0500, Roberto C. Sánchez wrote: > On Thu, Feb 22, 2018 at 01:30:40AM +, Juan R. de Silva wrote: >> On Tue, 20 Feb 2018 14:03:01 -0500, Marc Auslander wrote: >> >> > "Juan R. de Silva" writes: >> > >> >>I've been using gapcmon GUI to control my APC UPS backup units for >> >>years. >> >>I cannot find it in Debian Stretch repos. Was the package removed? >> >>For what reason? What can I use in its stead? >> >> >> >>Thanks. >> > >> > I've always use apcupsd which still works in stretch. My use is >> > pretty > ^^^ >> > trivial - just reports - I don't do anything automatic on power fail >> > since I can't figure out how to do anything that will always wind up >> > with my machine running when the power comes back! >> >> So you shared with my your joy using it but spared the where you get >> it. >> Well, enjoy your little secret. :-) >> >> > Juan, > > He was saying that he uses apcupsd, not gapcmon. There is no secret. As > you know, gapcmon really is gone and apcupsd is available in all current > Debian releases. Ups, I've totaly missed that Marc said 'apcupsd'. In this case here are my deep appologies to Marc and everybody Being over busy last couple of days I was quite hasty in this case. Sorry. BTW. about apcupsd-cgi. I found that in order to use it I need to install appache2. I never needed to run a server on my home desktop before. Wouldn't it be a little overkill to install appache server only to use apcupsd web interface? I'm realy not sure I want to spend a lot of time on securing and then maintaning the server. However I'm not realy familiar with the matter. Is it over complicated or I'd rather use CLI to control apcuspd daemon? Thanks.
Re: Were is gapcmon?
On Thu, Feb 22, 2018 at 01:30:40AM +, Juan R. de Silva wrote: > On Tue, 20 Feb 2018 14:03:01 -0500, Marc Auslander wrote: > > > "Juan R. de Silva" writes: > > > >>I've been using gapcmon GUI to control my APC UPS backup units for years. > >>I cannot find it in Debian Stretch repos. Was the package removed? For > >>what reason? What can I use in its stead? > >> > >>Thanks. > > > > I've always use apcupsd which still works in stretch. My use is pretty ^^^ > > trivial - just reports - I don't do anything automatic on power fail > > since I can't figure out how to do anything that will always wind up > > with my machine running when the power comes back! > > So you shared with my your joy using it but spared the where you get it. > Well, enjoy your little secret. :-) > Juan, He was saying that he uses apcupsd, not gapcmon. There is no secret. As you know, gapcmon really is gone and apcupsd is available in all current Debian releases. Regards, -Roberto -- Roberto C. Sánchez
Re: Were is gapcmon?
On Tue, 20 Feb 2018 14:03:01 -0500, Marc Auslander wrote: > "Juan R. de Silva" writes: > >>I've been using gapcmon GUI to control my APC UPS backup units for years. >>I cannot find it in Debian Stretch repos. Was the package removed? For >>what reason? What can I use in its stead? >> >>Thanks. > > I've always use apcupsd which still works in stretch. My use is pretty > trivial - just reports - I don't do anything automatic on power fail > since I can't figure out how to do anything that will always wind up > with my machine running when the power comes back! So you shared with my your joy using it but spared the where you get it. Well, enjoy your little secret. :-)
Re: Were is gapcmon?
On Tue, 20 Feb 2018 14:03:01 -0500, Marc Auslander wrote: > "Juan R. de Silva" writes: > >>I've been using gapcmon GUI to control my APC UPS backup units for >>years. >>I cannot find it in Debian Stretch repos. Was the package removed? For >>what reason? What can I use in its stead? >> >>Thanks. > > I've always use apcupsd which still works in stretch. My use is pretty > trivial - just reports - I don't do anything automatic on power fail > since I can't figure out how to do anything that will always wind up > with my machine running when the power comes back! It's nice to here that it still works in Stretch but where did you get the package to install? As I said it is not in repos any longer. Do you think you can share it with me? :-)
Re: Were is gapcmon?
"Juan R. de Silva" writes: >I've been using gapcmon GUI to control my APC UPS backup units for years. >I cannot find it in Debian Stretch repos. Was the package removed? For >what reason? What can I use in its stead? > >Thanks. I've always use apcupsd which still works in stretch. My use is pretty trivial - just reports - I don't do anything automatic on power fail since I can't figure out how to do anything that will always wind up with my machine running when the power comes back!
Re: Were is gapcmon?
On Tue, 20 Feb 2018 13:04:20 -0500, Roberto C. Sánchez wrote: > On Tue, Feb 20, 2018 at 05:26:41PM +, Juan R. de Silva wrote: >> I've been using gapcmon GUI to control my APC UPS backup units for >> years. >> I cannot find it in Debian Stretch repos. Was the package removed? For >> what reason? What can I use in its stead? >> > https://packages.qa.debian.org/g/gapcmon.html > > It was removed from Debian more than two years before the release of > wheezy and had not been updated for nearly two years prior to that. Interesting. I've been using it in Jessie and do believe I took it from Debian repos. > Here is the bug that requested its removal: > > https://bugs.debian.org/617593 I found no details about the bug. I personaly never experienced any problems with it. > I am not sure what your requirements are, but I use apcupsd (with its > web interface in the apcupsd-cgi package). That does the job for me. With gapcmon I did not need to start my web browser. It was just a click away. I'll try web interface. Is it easy to use? Oh, well, if I don't like it I still have an option to use terminal. :-) Thank you Roberto.
Re: Were is gapcmon?
On Tue, Feb 20, 2018 at 05:26:41PM +, Juan R. de Silva wrote: > I've been using gapcmon GUI to control my APC UPS backup units for years. > I cannot find it in Debian Stretch repos. Was the package removed? For > what reason? What can I use in its stead? > https://packages.qa.debian.org/g/gapcmon.html It was removed from Debian more than two years before the release of wheezy and had not been updated for nearly two years prior to that. Here is the bug that requested its removal: https://bugs.debian.org/617593 I am not sure what your requirements are, but I use apcupsd (with its web interface in the apcupsd-cgi package). That does the job for me. Regards, -Roberto -- Roberto C. Sánchez