Re: [Nut-upsuser] initial configuration assistance

2007-01-30 Thread Gregory Orange

Arjen de Korte wrote:

 port = auto

This won't work. You need to specify a serial port for this driver (see
'man 5 ups.conf' and 'man 8 apcsmart'). Only the 'newhidups' driver
accepts 'auto' (anything actually), but that is an USB driver.


Ah ok thanks - I won't switch between 'auto' and the serial port any 
more in my testing. I had just grabbed the idea to use auto from some 
examples floating about the web, but it's highly likely that they were 
using newhidups, which I won't be.



The problem: When I /etc/init.d/upsd start, I get this:
Network UPS Tools upsd 2.0.4
Can't connect to UPS [rack1ups] (apcsmart-ttyS0): No such file or directory
Synchronizing giving up


I would expect some lines showing that the driver is started, so I doubt
that the driver is running. Are you sure that /etc/init.d/upsd is an init
script and not a link to the upsd binary? What does the output of 'ps
aux|grep ups' show when you've started this?


From your tip I did check that - it is indeed a script but as you say, 
running it gave no reference to the driver starting. So I found 
/etc/init.d/upsdrv and went directly to /usr/sbin/upsdrvctl start

which gave this output:
Network UPS Tools - UPS driver controller 2.0.4
Network UPS Tools (version 2.0.4) - APC Smart protocol driver
Driver version 1.99.8, command table version 2.0
Unable to detect an APC Smart protocol UPS on port /dev/ttyS0
Check the cabling, port name or model name and try again
Driver failed to start (exit status=1)

Charles: thank you for the Google tip - that will be most helpful. As 
for the port, it is indeed /dev/ttyS0.


Kjell: User and group nut were auto-created by the install, and nut 
belongs to tty group too.


Armed with this info, I'll get some serial port help onsite here and 
report any successes or more queries. Thank you all for your help so far.


Greg.

--
   -  -
 Gregory Orange Phone: +61 8 9387 7955
System AdministatorFax: +61 8 9387 6686
   MetOcean Engineers Pty Ltd   http://www.metoceanengineers.com
  System Administrators Guild of Australia  http://www.sage-au.org.au
-  -

___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser


[Nut-upsuser] Searchable mailing list archive (was: initial configuration assistance)

2007-01-30 Thread Peter Selinger
Charles Lepple wrote:
> 
> On 1/30/07, Gregory Orange <[EMAIL PROTECTED]> wrote:
> > I've browsed the archives back for a few months and nothing has jumped
> > out at me as being helpful, but since there doesn't seem to be a search
> > facility it's certainly possible I've missed what I'm looking for.
> 
> For future searches, you can use Google with
> 'site:lists.alioth.debian.org nut-upsdev OR nut-upsuser' and then your
> search string. Not pretty, but it works.

Cool! In fact, with this information, you can easily make a customized
NUT lists search engine with the following HTML snippet:

 http://www.google.com/search"; method="get">
 
 
 
 
 
 

Arnaud, could you put this on the NUT homepage somewhere? E.g. at
http://www.networkupstools.org/lists/

I tried putting this directly on the list homepages on Alioth, but the
server deletes any custom forms. But it would be useful to have a
search page on www.networkupstools.org, and then we can link to it
from the list archives. 

-- Peter

___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser


Re: [Nut-upsuser] initial configuration assistance

2007-01-30 Thread Kjell Claesson
Hi Gregory,
tis 2007-01-30 klockan 14:43 +0900 skrev Gregory Orange:
> Hi,
> I've browsed the archives back for a few months and nothing has jumped 
> out at me as being helpful, but since there doesn't seem to be a search 
> facility it's certainly possible I've missed what I'm looking for. 
> Anyway, I wonder if someone can help me.
> 
> I've very recently installed nut 2.0.4-r1 on a gentoo box and am in the 
> initial stages of configuration and testing. Our APC Smart-UPS 3000 is 
> connected with a 940-0024C serial cable, which seems to be a good one to 
> use - I firstly removed the 940-1524C cable which happened to be 
> dangling from the UPS.
> 
> I've configured upsd.conf with
> [rack1ups]
>  driver = apcsmart
>  cable = 940-0024C
>  port = auto
>  desc = "Rack 1 UPS"
> and left most other files as default, except for following some parts of 
> doco on initial setup.
> 

The port should be set to /dev/ttyS0 if you use the first com port.
Then depending on the udev version the tty is owned by the tty group
or the uucp group. Check by ls -al /dev/ttyS0.

Add the nut user to the right group in /etc/group. This is more easy
then trying to fix the udev rule.


> The problem: When I /etc/init.d/upsd start, I get this:
> Network UPS Tools upsd 2.0.4
> Can't connect to UPS [rack1ups] (apcsmart-auto): No such file or directory
> Synchronizing giving up
> 
Try to start the driver first.
/etc/init.d/upsdrv start

Check that it is running and that it don't fail.

Then start the deamon if it is ok.
/etc/init.d/upsd start


I'm running Gentoo ~X86 and use a homemade ebuild for nut-2.0.5 with
some patches that i entered into the development trunk.

Regards
Kjell
  


___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser


Re: [Nut-upsuser] initial configuration assistance

2007-01-30 Thread Charles Lepple

On 1/30/07, Gregory Orange <[EMAIL PROTECTED]> wrote:

I've browsed the archives back for a few months and nothing has jumped
out at me as being helpful, but since there doesn't seem to be a search
facility it's certainly possible I've missed what I'm looking for.


For future searches, you can use Google with
'site:lists.alioth.debian.org nut-upsdev OR nut-upsuser' and then your
search string. Not pretty, but it works.


"auto" is replaced with "ttyS0" when I change 'port' to '/dev/ttyS0'


In addition to Arjen's suggestions, have you checked that Gentoo is
actually calling the serial port /dev/ttyS0? It might be /dev/tts/0,
depending on how they populate the /dev directory. I don't know if we
have too many Gentoo users among the developers, so please let us know
so that we can update the documentation.

--
- Charles Lepple

___
Nut-upsuser mailing list
Nut-upsuser@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser