Re: apc ups daemon - SUCCESS

2009-06-12 Thread Kirill Bychkov
Hi. On Fri, June 12, 2009 17:43, Thomas Pfaff wrote: > On Fri, 12 Jun 2009 14:21:32 +0100 > Stuart Henderson wrote: >> In gmane.os.openbsd.misc, Thomas Pfaff wrote: >> > A port of this has already been posted a couple of times but, >> > as someone said, it needs more work. The GUI tool fails for

Re: apc ups daemon - SUCCESS

2009-06-12 Thread Stuart Henderson
reply-to's set. In gmane.os.openbsd.misc, Thomas Pfaff wrote: > On Thu, 11 Jun 2009 03:43:08 +0300 > Thanasis wrote: >> I downloaded the latest version of apcupsd from http://www.apcupsd.com >> (http://sourceforge.net/project/showfiles.php?group_id=54413) >> and compiled and installed with gmake.

Re: apc ups daemon - SUCCESS

2009-06-12 Thread Thomas Pfaff
On Thu, 11 Jun 2009 03:43:08 +0300 Thanasis wrote: > I downloaded the latest version of apcupsd from http://www.apcupsd.com > (http://sourceforge.net/project/showfiles.php?group_id=54413) > and compiled and installed with gmake. Straightfoward. > Communication with the UPS perfect from the first t

Re: apc ups daemon - SUCCESS

2009-06-11 Thread Edho P Arief
2009/6/12 Thanasis : > Sorry, if I made you feel that way, but believe me, really, if I could > do it (put apcupsd in the openbsd ports), I would happily do so. > But not everyone is a developer ... O:-) > PS: And thanks to every one for their help B :-) > > http://openbsd.org/checklist.html it's

Re: apc ups daemon

2009-06-11 Thread Daniel Gracia Garallar
Gender changers can be a nigthmare because, as FAQ mentions, 'that it plugs doesn't mean it's going to work'. If you miss any doc about serial port standards of any of the devices, then take a multimeter and measure the voltage between pin 7 -if DB25- or pin 5 -if DB9- and pin 2 of the cable;

Re: apc ups daemon - SUCCESS

2009-06-11 Thread Thanasis
on 06/12/2009 12:57 AM Daniel Ouellet wrote the following: > Thanasis wrote: > >> on 06/11/2009 07:55 PM Diana Eichert wrote the following: >> >>> On Thu, 11 Jun 2009, Thanasis wrote: >>> >>> As I said, the compilation didn't need anything special, except perhaps using gmak

Re: apc ups daemon - SUCCESS

2009-06-11 Thread Daniel Ouellet
Thanasis wrote: > on 06/11/2009 07:55 PM Diana Eichert wrote the following: >> On Thu, 11 Jun 2009, Thanasis wrote: >> >>> As I said, the compilation didn't need anything special, except perhaps >>> using gmake instead of make. >>> That's all. >>> So, it's minimum effort for someone experienced wit

Re: apc ups daemon - SUCCESS

2009-06-11 Thread Thanasis
on 06/11/2009 07:55 PM Diana Eichert wrote the following: > On Thu, 11 Jun 2009, Thanasis wrote: > >> As I said, the compilation didn't need anything special, except perhaps >> using gmake instead of make. >> That's all. >> So, it's minimum effort for someone experienced with the ports system >> an

Re: apc ups daemon - SUCCESS

2009-06-11 Thread Diana Eichert
On Thu, 11 Jun 2009, Thanasis wrote: As I said, the compilation didn't need anything special, except perhaps using gmake instead of make. That's all. So, it's minimum effort for someone experienced with the ports system and with the Makefile(s) to put it in. :-) So, I have to respond. This is

Re: apc ups daemon - SUCCESS

2009-06-11 Thread Thanasis
on 06/11/2009 05:48 PM Diana Eichert wrote the following: > On Thu, 11 Jun 2009, Thanasis wrote: > >> on 06/11/2009 02:03 AM Thanasis wrote the following: > SNIP >>> Thanks Diana. I checked the pinout of the DB25-Male to DB9-Female, and >>> also that of the gender changer and they appear good as fa

Re: apc ups daemon - SUCCESS

2009-06-11 Thread Stuart Henderson
On 2009-06-11, Diana Eichert wrote: > On Thu, 11 Jun 2009, Thanasis wrote: > >> on 06/11/2009 02:03 AM Thanasis wrote the following: > SNIP >>> Thanks Diana. I checked the pinout of the DB25-Male to DB9-Female, and >>> also that of the gender changer and they appear good as far as >>> continuity e

Re: apc ups daemon

2009-06-11 Thread Diana Eichert
On Thu, 11 Jun 2009, Per FogelstrC6m wrote: > APC uses different cabling for different UPS series. No supprises here > > Check out: http://www.nullmodem.com/ups.htm > > I got my Smartups to work ok after making my own cable. > > -- > Per Yes, they do. Almost like the had different design tea

Re: apc ups daemon - SUCCESS

2009-06-11 Thread Diana Eichert
On Thu, 11 Jun 2009, Thanasis wrote: on 06/11/2009 02:03 AM Thanasis wrote the following: SNIP Thanks Diana. I checked the pinout of the DB25-Male to DB9-Female, and also that of the gender changer and they appear good as far as continuity exists between the pins as shown on the site you menti

Re: apc ups daemon

2009-06-11 Thread Per Fogelström
On Wed, 10 Jun 2009 08:46:06 -0600 (MDT), Diana Eichert wrote: > You don't need to measure voltages, just get the pinout for > both serial cables and build your cable. The only time > I measure voltage is when I don't have the docs. > > I have a bag of RJ45 <-> DB9 and RJ45 <-> DB25 adapters. >

Re: apc ups daemon

2009-06-10 Thread Daniel Gracia Garallar
Are you running the program with a user with dialer privileges? First, make sure your account has dialer privileges -is part of dialer group-. Then Shortcut pins 2 and 3 of your black cable while connected to the pc, and try on a shell 'cu -l /dev/ttyb'. If serial port is working, any keyboard

Re: apc ups daemon - SUCCESS

2009-06-10 Thread Thanasis
on 06/11/2009 02:03 AM Thanasis wrote the following: > on 06/10/2009 05:46 PM Diana Eichert wrote the following: > >> >> >> A quick search on Googley found >> http://www.pitt.edu/~bdgregg/Cable_Wireing.html >> >> Remember real hardware hackers eat serial for breakfast. >> :-) >> >> diana >

Re: apc ups daemon

2009-06-10 Thread Thanasis
on 06/10/2009 05:46 PM Diana Eichert wrote the following: > You don't need to measure voltages, just get the pinout for > both serial cables and build your cable. The only time > I measure voltage is when I don't have the docs. > > I have a bag of RJ45 <-> DB9 and RJ45 <-> DB25 adapters. > When I

Re: apc ups daemon

2009-06-10 Thread Jacob Yocom-Piatt
Diana Eichert wrote: Remember real hardware hackers eat serial for breakfast. :-) diana lol! this made my morning diana. cheers, jake

Re: apc ups daemon

2009-06-10 Thread Diana Eichert
You don't need to measure voltages, just get the pinout for both serial cables and build your cable. The only time I measure voltage is when I don't have the docs. I have a bag of RJ45 <-> DB9 and RJ45 <-> DB25 adapters. When I need to connect something via serial it's very straightforward. Loo

Re: apc ups daemon

2009-06-10 Thread Thanasis
on 06/10/2009 01:42 PM Daniel Gracia Garallar wrote the following: > Gender changers can be a nigthmare because, as FAQ mentions, 'that it > plugs doesn't mean it's going to work'. > > If you miss any doc about serial port standards of any of the devices, > then take a multimeter and measure the vo

Re: apc ups daemon

2009-06-10 Thread Thanasis
on 06/10/2009 01:37 PM Maurice Janssen wrote the following: > On Wed, Jun 10, 2009 at 12:57:40PM +0300, Thanasis wrote: > >> I don't know if that matters, but let me add that the connection between >> the sparc machine's port and the ups' port consists of two cables and a >> gender changer in be

Re: apc ups daemon

2009-06-10 Thread Maurice Janssen
On Wed, Jun 10, 2009 at 12:57:40PM +0300, Thanasis wrote: >I don't know if that matters, but let me add that the connection between >the sparc machine's port and the ups' port consists of two cables and a >gender changer in between, like so: >On the sun's port side the plug is a DB25 and the other

Re: apc ups daemon

2009-06-10 Thread Thanasis
If I disconnect the cable, and then run (as root) apc-upsd I get an answer, although it's "zero" stats. Does that say anything? # apc-upsd /etc/apc-upsd.conf, 55 lines: == device ... /dev/ttyb pidfile .. /var/run/upsd.pid exec scrip

Re: apc ups daemon

2009-06-10 Thread Thanasis
on 06/10/2009 11:53 AM Daniel Gracia Garallar wrote the following: > Are you running the program with a user with dialer privileges? I run apc-upsd as root.

Re: apc ups daemon

2009-06-10 Thread Thanasis
on 06/10/2009 12:34 PM Thanasis wrote the following: > on 06/10/2009 11:53 AM Daniel Gracia Garallar wrote the following: > >> Are you running the program with a user with dialer privileges? First, >> make sure your account has dialer privileges -is part of dialer >> group-. Then Shortcut pins 2

Re: apc ups daemon

2009-06-10 Thread Thanasis
on 06/10/2009 11:53 AM Daniel Gracia Garallar wrote the following: > Are you running the program with a user with dialer privileges? First, > make sure your account has dialer privileges -is part of dialer > group-. Then Shortcut pins 2 and 3 of your black cable while connected > to the pc, and try

Re: apc ups daemon

2009-06-10 Thread Thanasis
on 06/10/2009 09:29 AM jared r r spiegel wrote the following: > `make search' is awesome, but also check the Makefile for the > port. or heck, on the $arch in question you could worst > case try `make package' and see if it works. if it doesn't, > the pkg is probably marked broken or some

Re: apc ups daemon

2009-06-09 Thread jared r r spiegel
On Wed, Jun 10, 2009 at 03:01:38AM +0300, Thanasis wrote: > on 06/10/2009 01:45 AM Diana Eichert wrote the following: > > > > Look in the Makefile for the port and see if the sparc platform is > > excluded. If not then build it yourself from ports. > > > > diana +1. diana is right a LOT. >

Re: apc ups daemon

2009-06-09 Thread Thanasis
on 06/10/2009 01:45 AM Diana Eichert wrote the following: > On Wed, 10 Jun 2009, Thanasis wrote: > >> But why isn't there a apc-upsd package in the packages for sparc, while >> there is one for sparc64 ? > > Look in the Makefile for the port and see if the sparc platform is > excluded. If not then

Re: apc ups daemon

2009-06-09 Thread Diana Eichert
On Wed, 10 Jun 2009, Thanasis wrote: But why isn't there a apc-upsd package in the packages for sparc, while there is one for sparc64 ? Look in the Makefile for the port and see if the sparc platform is excluded. If not then build it yourself from ports. diana

Re: apc ups daemon

2009-06-09 Thread Thanasis
on 06/10/2009 12:46 AM Thomas Pfaff wrote the following: > On Tue, 09 Jun 2009 23:18:49 +0300 > Thanasis wrote: > >> Is there a port of the apcupsd or any other daemon for ups on openbsd? >> > > See http://marc.info/?l=openbsd-ports&m=123100538732186&w=2 > Is that a different port from

Re: apc ups daemon

2009-06-09 Thread Thomas Pfaff
On Tue, 09 Jun 2009 23:18:49 +0300 Thanasis wrote: > Is there a port of the apcupsd or any other daemon for ups on openbsd? See http://marc.info/?l=openbsd-ports&m=123100538732186&w=2 Otherwise there's sysutils/nut and sysutils/apc-upsd in ports.

Re: apc ups daemon

2009-06-09 Thread neal hogan
On Tue, Jun 09, 2009 at 11:18:49PM +0300, Thanasis wrote: > Is there a port of the apcupsd or any other daemon for ups on openbsd? google lead me to: http://www.apcupsd.com/manual/manual.html#openbsd and I see apc-upsd-19991128p0.tgz in the package list

Re: apc ups daemon

2009-06-09 Thread Thanasis
on 06/09/2009 11:30 PM kell...@gmail.com wrote the following: > Thanasis wrote (06/09/09 23:18): > >> Is there a port of the apcupsd or any other daemon for ups on openbsd? >> > > Yes, apc-upsd and nut. Go to: > > http://www.openbsd.org/4.5_packages/i386.html > > for all of your pa

Re: apc ups daemon

2009-06-09 Thread dtalk
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thanasis wrote: Is there a port of the apcupsd or any other daemon for ups on openbsd? nut works well. Takes a bit of reading, if you're coming from apcupsd, but it's very flexible. - -- David Talkington dt...@drizzle.com - -- PGP key: http://

Re: apc ups daemon

2009-06-09 Thread Maurice Janssen
Thanasis wrote: Is there a port of the apcupsd or any other daemon for ups on openbsd? Nut seems to work fine for me. It's in ports and available as package. Maurice

apc ups daemon

2009-06-09 Thread Thanasis
Is there a port of the apcupsd or any other daemon for ups on openbsd?