Pavel Potcheptsov (EKTOS)
2013-Jul-31 07:36 UTC
[Nut-upsuser] nut package with Riello UPS support
Thank you very much!! I have tried configure downloaded source with # ./configure --with-user=_ups --with-group=_ups --with-statepath=/var/db/nut/ and then build driver and copy again. but this doesn't help (driver pid still in the /var/state/ups). Maybe I must add more arguments to change driver's pid location, but I did next, I changed this argument in openbsd ports: # pkg_delete nut # cd /usr/ports/sysutils/nut/ edit Makefile and change line --with-statepath=/var/db/nut to --with-statepath=/var/state/ups # make install # /etc/rc.d/upsd start upsd(ok) # /etc/rc.d/upsmon start upsmon(ok) # upsc senpro at localhost battery.capacity: 75 battery.charge: 100 battery.runtime: 26280 battery.voltage: 40.8 battery.voltage.nominal: 36 device.mfr: RPS S.p.a. device.model: UOD1-XL device.serial: device.type: ups driver.name: riello_ser driver.parameter.pollinterval: 2 driver.parameter.port: /dev/tty00 driver.version: 2.6.5-183-ga074844 driver.version.internal: 0.02 input.bypass.frequency: 50.00 input.bypass.voltage: 216 input.frequency: 50.00 input.voltage: 216 output.frequency: 50.00 output.frequency.nominal: 50.0 output.power.percent: 28 output.voltage: 231 output.voltage.nominal: 230 ups.firmware: SWM035-01-07 ups.load: 28 ups.mfr: RPS S.p.a. ups.model: UOD1-XL ups.power.nominal: 1000 ups.realpower.nominal: 800 ups.serial: ups.status: OL CHRG ups.temperature: 34 # tail /var/log/daemon Jul 31 09:31:48 gw upsd[7687]: mainloop: Interrupted system call Jul 31 09:31:48 gw upsd[7687]: Signal 15: exiting Jul 31 09:31:57 gw riello_ser[148]: Signal 15: exiting Jul 31 10:16:02 gw riello_ser[12770]: Startup successful Jul 31 10:16:02 gw upsd[31799]: listening on 127.0.0.1 port 3493 Jul 31 10:16:02 gw upsd[31799]: /var/state/ups is world readable Jul 31 10:16:02 gw upsd[31799]: Connected to UPS [senpro]: riello_ser-senpro Jul 31 10:16:02 gw upsd[1994]: Startup successful Jul 31 10:16:39 gw upsmon[32204]: Startup successful Jul 31 10:16:39 gw upsd[1994]: User ups_ at 127.0.0.1 logged into UPS [senpro] Does it looks good? Another question what does riello experimental driver warning mean? Does it affect shutdown procedure? Should I install riello driver on Slave computers, which powered from same UPS or just setup their as usual slave (just upsmon.conf)? On Tue, Jul 30, 2013 at 6:03 PM, Charles Lepple <clepple at gmail.com> wrote:> On Jul 30, 2013, at 10:39 AM, Pavel Potcheptsov (EKTOS) wrote: > > > Is this a trouble? Driver use path /var/state/ups/ but upsd use path > /var/db/nut/upsd.pid > > Yes, the driver and upsd need to agree on the path to the socket. > > From the FreeBSD ports tree: > > /usr/ports/sysutils/nut/Makefile: > > STATEDIR?= /var/db/nut > [...] > CONFIGURE_ARGS= --sysconfdir=${PREFIX}/etc/nut \ > --program-transform-name="" \ > --localstatedir=${STATEDIR} \ > --datadir=${PREFIX}/etc/nut \ > --with-drvpath=${PREFIX}/libexec/nut \ > --with-statepath=${STATEDIR} \ > --with-altpidpath=${STATEDIR} \ > --with-pidpath=${STATEDIR} \ > --with-pkgconfig-dir=${PREFIX}/libdata/pkgconfig \ > --with-user=${NUT_USER} \ > --with-group=${NUT_GROUP} \ > --with-dev > > I think you need to re-run ./configure in the source tree with the driver, > using the arguments above. Then 'cd drivers; make clean; make riello_ser' > and install the new copy of the driver. > > -- > Charles Lepple > clepple at gmail > > > >-- Best / ? ?????????? ??????????? *Pavel Potcheptsov* LLC EKTOS-Ukraine System administrator 1, Academika Proskury Mobile UA: +38 050 3642391 Home UA: +380 572 931115 61070 Kharkiv www.ektos.com.ua <http://www.ektos.net/> E-mail: ppo at ektos.net Skype: potcheptsov.pavel -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20130731/82e2b9ac/attachment-0001.html>
On Jul 31, 2013, at 3:36 AM, Pavel Potcheptsov (EKTOS) wrote:> Does it looks good?I think so - 40.8 volts with a nominal of 36 volts is 13.6 V/cell, which agrees with the 100% charge value. Hopefully the line voltages and frequency make sense for your region.> Another question what does riello experimental driver warning mean?We add that to all new drivers. This driver was written by Elio Parisi of Riello, and they have published the protocol documents, so it is probably less experimental than the drivers which have been developed without that sort of help. That said, this driver hasn't had as much testing as the others, and a lot of the code appears to have special cases for certain models.> Does it affect shutdown procedure?It shouldn't. However, I would recommend testing the shutdown procedure to be sure.> Should I install riello driver on Slave computers, which powered from same UPS or just setup their as usual slave (just upsmon.conf)?No, the drivers are only necessary on the computer(s) which are communicating directly with the UPS. -- Charles Lepple clepple at gmail
Pavel Potcheptsov (EKTOS)
2013-Jul-31 15:39 UTC
[Nut-upsuser] nut package with Riello UPS support
I'll test it. I'm a bit confused with cgi-bin. I have made a lot of hosts.conf copies and didn't understand where does upsstats trying to find hosts.conf # ps -aux | grep ups _ups 13934 0.0 0.0 484 920 ?? Ss 5:41PM 0:01.53 /usr/local/bin/riello_ser -a senpro _ups 9171 0.0 0.1 532 1168 ?? Ss 5:41PM 0:00.13 /usr/local/sbin/upsd _ups 16906 0.0 0.1 648 1184 ?? S 5:42PM 0:00.06 /usr/local/sbin/upsmon root 27944 0.0 0.1 644 1196 ?? Is 5:42PM 0:00.01 /usr/local/sbin/upsmon root 7012 0.0 0.0 220 196 p0 R+/1 6:33PM 0:00.00 grep ups # ls -la /etc/nut total 104 drwxr-xr-x 2 root wheel 512 Jul 31 18:30 . drwxr-xr-x 30 root wheel 2560 Jul 31 18:19 .. -rwxr-xr-x 1 _ups wheel 1110 Jul 31 16:15 hosts.conf -rw-r--r-- 1 _ups wheel 1543 Jul 31 16:10 nut.conf -rw------- 1 _ups wheel 3951 Jul 31 16:11 ups.conf -rw------- 1 _ups wheel 2770 Jul 31 16:13 upsd.conf -rw------- 1 _ups wheel 2189 Jul 31 16:13 upsd.users -rw------- 1 _ups wheel 11965 Jul 31 16:14 upsmon.conf -rw-r--r-- 1 _ups wheel 3895 Jul 31 16:08 upssched.conf -rw-r--r-- 1 _ups wheel 1416 Jul 31 16:14 upsset.conf -rwxr-xr-x 1 root daemon 6644 Jul 31 16:08 upsstats-single.html -rwxr-xr-x 1 root daemon 4003 Jul 31 16:08 upsstats.html # ls -la /usr/local/ups/ conf/ etc/ # ls -la /usr/local/ups/etc/ total 48 drwxr-xr-x 2 _ups wheel 512 Jul 31 18:32 . drwxr-xr-x 4 _ups wheel 512 Jul 31 18:32 .. -rwxr-xr-x 1 root wheel 1110 Jul 31 16:15 hosts.conf -rw------- 1 _ups wheel 3951 Jul 31 16:11 ups.conf -rwxr-xr-x 1 root daemon 1416 Jul 31 18:16 upsset.conf -rwxr-xr-x 1 root daemon 6644 Jul 31 16:08 upsstats-single.html -rwxr-xr-x 1 root daemon 4003 Jul 31 16:08 upsstats.html # ls -la /usr/local/ups/conf/nut/ total 72 drwxr-xr-x 2 root daemon 512 Jul 31 18:16 . drwxr-xr-x 3 root daemon 512 Jul 31 18:32 .. -rwxr-xr-x 1 root wheel 1110 Jul 31 16:15 hosts.conf -r-xr-xr-x 1 root bin 1072 Aug 4 2012 hosts.conf.sample -rwxr-xr-x 1 root daemon 1416 Jul 31 18:16 upsset.conf -r-xr-xr-x 1 root bin 1420 Aug 4 2012 upsset.conf.sample -rwxr-xr-x 1 root daemon 6644 Jul 31 16:08 upsstats-single.html -r-xr-xr-x 1 root bin 6644 Aug 4 2012 upsstats-single.html.sample -rwxr-xr-x 1 root daemon 4003 Jul 31 16:08 upsstats.html -r-xr-xr-x 1 root bin 4003 Aug 4 2012 upsstats.html.sample # ls -la /var/www/conf/nut/ total 72 drwxr-xr-x 2 root daemon 512 Jul 31 18:16 . drwxr-xr-x 5 root daemon 512 Jul 31 18:14 .. -rwxr-xr-x 1 root wheel 1110 Jul 31 16:15 hosts.conf -r-xr-xr-x 1 root bin 1072 Aug 4 2012 hosts.conf.sample -rwxr-xr-x 1 root daemon 1416 Jul 31 18:16 upsset.conf -r-xr-xr-x 1 root bin 1420 Aug 4 2012 upsset.conf.sample -rwxr-xr-x 1 root daemon 6644 Jul 31 16:08 upsstats-single.html -r-xr-xr-x 1 root bin 6644 Aug 4 2012 upsstats-single.html.sample -rwxr-xr-x 1 root daemon 4003 Jul 31 16:08 upsstats.html -r-xr-xr-x 1 root bin 4003 Aug 4 2012 upsstats.html.sample # ls -la /var/www/cgi-bin/nut/ total 7944 drwxr-xr-x 2 root daemon 512 Jul 31 16:08 . drwxr-xr-x 4 root daemon 512 Jul 31 16:08 .. -r-xr-xr-x 1 root bin 1483512 Aug 4 2012 upsimage.cgi -r-xr-xr-x 1 root bin 1258232 Aug 4 2012 upsset.cgi -r-xr-xr-x 1 root bin 1258232 Aug 4 2012 upsstats.cgi # tail /var/www/logs/error_log upsstats: Can't open /conf/nut/hosts.conf: No such file or directory upsstats: Can't open /conf/nut/hosts.conf: No such file or directory On Wed, Jul 31, 2013 at 3:33 PM, Charles Lepple <clepple at gmail.com> wrote:> On Jul 31, 2013, at 3:36 AM, Pavel Potcheptsov (EKTOS) wrote: > > > Does it looks good? > > I think so - 40.8 volts with a nominal of 36 volts is 13.6 V/cell, which > agrees with the 100% charge value. Hopefully the line voltages and > frequency make sense for your region. > > > Another question what does riello experimental driver warning mean? > > We add that to all new drivers. This driver was written by Elio Parisi of > Riello, and they have published the protocol documents, so it is probably > less experimental than the drivers which have been developed without that > sort of help. > > That said, this driver hasn't had as much testing as the others, and a lot > of the code appears to have special cases for certain models. > > > Does it affect shutdown procedure? > > It shouldn't. However, I would recommend testing the shutdown procedure to > be sure. > > > Should I install riello driver on Slave computers, which powered from > same UPS or just setup their as usual slave (just upsmon.conf)? > > No, the drivers are only necessary on the computer(s) which are > communicating directly with the UPS. > > -- > Charles Lepple > clepple at gmail > > > > > _______________________________________________ > Nut-upsuser mailing list > Nut-upsuser at lists.alioth.debian.org > http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser >-- Best / ? ?????????? ??????????? *Pavel Potcheptsov* LLC EKTOS-Ukraine System administrator 1, Academika Proskury Mobile UA: +38 050 3642391 Home UA: +380 572 931115 61070 Kharkiv www.ektos.com.ua <http://www.ektos.net/> E-mail: ppo at ektos.net Skype: potcheptsov.pavel -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20130731/fcc7d752/attachment-0001.html>