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>
On Jul 31, 2013, at 11:39 AM, Pavel Potcheptsov (EKTOS) wrote:> 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[...]> # 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 directoryIt looks like there might have been a problem parsing the configure arguments, because "/conf/nut/hosts.conf" doesn't sound like a standard path. Or maybe OpenBSD intends for CGI scripts to run chroot()ed in /var/www, so that path prefix gets removed? I would check the ./configure parameters in the package script again.
Pavel Potcheptsov (EKTOS)
2013-Aug-01 13:11 UTC
[Nut-upsuser] nut package with Riello UPS support
You are right. Before install nut-cgi I have stopped apache and started it again without chroot. I have started it again with chroot and cgi is working! This is best support for open source project I have ever seen. Good luck! On Thu, Aug 1, 2013 at 3:03 PM, Charles Lepple <clepple at gmail.com> wrote:> On Jul 31, 2013, at 11:39 AM, Pavel Potcheptsov (EKTOS) wrote: > > > 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 > > [...] > > > # 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 > > It looks like there might have been a problem parsing the configure > arguments, because "/conf/nut/hosts.conf" doesn't sound like a standard > path. > > Or maybe OpenBSD intends for CGI scripts to run chroot()ed in /var/www, so > that path prefix gets removed? > > I would check the ./configure parameters in the package script again.-- 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/20130801/7989048c/attachment-0001.html>