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 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 "auto" is replaced with "ttyS0" when I change 'port' to '/dev/ttyS0' TIA, Greg.
> I've configured upsd.conf with > [rack1ups] > driver = apcsmart > cable = 940-0024C > port = autoThis 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.> desc = "Rack 1 UPS" > and left most other files as default, except for following some parts of > doco on initial setup. > > 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 > > "auto" is replaced with "ttyS0" when I change 'port' to '/dev/ttyS0'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? Best regards, Arjen -- Eindhoven - The Netherlands Key fingerprint - 66 4E 03 2C 9D B5 CB 9B 7A FE 7E C1 EE 88 BC 57
On 1/30/07, Gregory Orange <gregory.orange@metoceanengineers.com> 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
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
Peter Selinger
2007-Jan-31 17:58 UTC
[Nut-upsuser] Searchable mailing list archive (was: initial configuration assistance)
Great, I have now linked to the search feature from Alioth: http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev http://lists.alioth.debian.org/mailman/listinfo/nut-upsuser -- Peter Arnaud Quette wrote:> > 2007/1/30, Peter Selinger <selinger@mathstat.dal.ca>: > > ... > > Cool! In fact, with this information, you can easily make a customized > > NUT lists search engine with the following HTML snippet: > > > > <form action="http://www.google.com/search" method="get"> > > <input maxlength="2048" name="as_q" size="25" type="text"> > > <input name="as_oq" type="hidden" value="nut-upsuser nut-upsdev"> > > <input name="domains" value="lists.alioth.debian.org" type="hidden"> > > <input name="sitesearch" value="lists.alioth.debian.org" type="hidden"> > > <input name="btnG" value="Search NUT lists" type="submit"> > > </form> > > > > Arnaud, could you put this on the NUT homepage somewhere? E.g. at > > http://www.networkupstools.org/lists/ > > done. > prefer to dest or cc me at least for more reactivity ;-) > > thanks for this much useful and long awaited feature. > Arnaud > -- > Linux / Unix Expert - MGE UPS SYSTEMS - R&D Dpt > Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/ > Debian Developer - http://people.debian.org/~aquette/ > OpenSource Developer - http://arnaud.quette.free.fr/ >
Arnaud Quette
2007-Feb-01 13:43 UTC
[Nut-upsuser] Searchable mailing list archive (was: initial configuration assistance)
2007/1/31, Peter Selinger <selinger@mathstat.dal.ca>:> Great, I have now linked to the search feature from Alioth: > > http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev > http://lists.alioth.debian.org/mailman/listinfo/nut-upsusergreat, thanks Peter Arnaud -- Linux / Unix Expert - MGE UPS SYSTEMS - R&D Dpt Network UPS Tools (NUT) Project Leader - http://www.networkupstools.org/ Debian Developer - http://people.debian.org/~aquette/ OpenSource Developer - http://arnaud.quette.free.fr/