Re: [Apcupsd-users] In Multimon.cgi there is no information
Brought to you by:
adk0212
|
From: Ted M. <te...@mi...> - 2020-03-17 06:21:07
|
Hi, Not all UPSes supply all values. Particularly the BackUPSs The Line min/max/frequency are supplied by SmartUPSes. But not always by BackUPS ups. I don't think the BackUPS UPS has the needed circuitry in it to monitor frequency. And the line min/line max values require nvram on the UPS and I believe the BackUPSes also lack that. It may be that newer BackUPSes have those values. I have seen a lot of variation in the output of apcaccess from BackUPSes. Basically the apcaccess program queries apcupsd for all values that the UPS is willing to give out. So if a UPS lacks a value then apcaccess simply doesn't print it. The CGI interface has a fixed set of values it queries and if the values are lacking it will say "not found" If the output of apcaccess lacks Line Min/Line Max and frequency in the printout then the UPS does not supply those values and all you can do is edit the CGI to not try to query for them. To run a self test you shut down apcupsd and run apctest. apctest gives you a menu and you can select self test from there. When you are done with self testing you can exit apctest and restart apcupsd I don't know why output voltage is zero. Does apcaccess print output voltage? Can you post the output of apcaccess? As for turning things off: ALL lead-acid batteries self-discharge over time. Lead Acid batteries work the best when they are under constant trickle charge. The moment a lead acid battery is not at 100% of charge it starts sulfating. In a normal lead acid battery under constant trickle charge sulfation happens at a very very low level. When you turn off the UPS then the battery starts discharging and once it is not at 100% of charge it starts sulfating and when it sulfates it loses capacity. A sulfated lead acid battery will be unable to reach 100% of charge. These UPSes are designed to be mains powered 24x7. Do not turn them off or the battery will not last very long. A shutdown script has no meaning for a raspberry pi since the pi does not need to shut down. It can just lose power and it won't hurt it. You need to set the flag that says apcupsd is installed and use instances of apcupsd on your other systems to communicate with the raspberry pi. The default shutdown scrips in apcupsd generally work out of the box without tweaking. I compiled apcupsd as a network daemon only for ESXi 4. It's in the contributed stuff in the archive. I never got around to building it for the later versions of ESXi. VMWare made it a lot more (unnecessarily) complicated to build stuff for later versions of ESXi. My advice is to just run apcupsd in the guest OSes on ESXi and not worry about the hypervisor shutting down gracefully. It is very resilient and in any case you should be image backing up your vmware guests with ghettovcb or something like that. Ted Backupses don't self-test. Smartupses self test. That is one of the differences between the model lines. On 3/16/2020 3:30 AM, Andrea Miconi via Apcupsd-users wrote: > Really many thanks, Ted. > There was DEVICE set to tty > I read the manual, it's the first thing I did. > I followed all the instructions in the Basic User's Guide. > However, if I can afford a criticism, the manual is very dispersive > and it is not easy to understand for those who are doing it for the > first time. > Then there is no information to activate the GUI. It is assumed that > Apache is already installed, active and configured for CGI. Which is not. > > Now it works, even if I don't understand some information well. > In the GUI I see > Utility Voltage: 216.0 VAC > Line Minimum: Not found VAC > Line Maximum: Not found VAC > Output Freq: Not found Hz > Why are these values missing? > > Last UPS Self Test: NO > Last Test Date: Not found > How do I launch the Test? > In Powerchute there is an option in the menu. In apcdupsd how do you > do it? > > In the graphs, Output Voltage is zero. Why? > > One last question. > I turn everything off before going out in the evening. Including the UPS. > In the morning I turn everything on again. > I never detect a 100% charge. Usually it is around 95-98%. > Is it normal for a UPS bought just a few months ago to lose 2-5% in 12 > hours, even if turned off? > > Now I dedicate myself to the scripts for the shutdown of: > Windows / Linux PC on the network > Virtual machines Windows / Linux in ESXi > ESXi after all VMs are turned off > If you have any advice for scripts, I'll be grateful. > > Thank you so much again > > > Il domenica 15 marzo 2020, 21:07:09 CET, Ted Mittelstaedt > <te...@mi...> ha scritto: > > > > Instead of using "some guy's" guide on the Internet did you use the > real manual here for instructions: > > http://www.apcupsd.org/manual/manual.html > <http://www.apcupsd.org/manual/manual.html> > > specifically: > > http://www.apcupsd.org/manual/manual.html#linux-usb-configuration > <http://www.apcupsd.org/manual/manual.html#linux-usb-configuration> > > > What is the output of lsusb and lsusb -v? > > I assume you have > > > UPSCABLE usb > > UPSTYPE usb > > DEVICE > > > variables in the apcupsd.conf. Just for grins try: > > UPSCABLE smart > > UPSTYPE usb > > DEVICE > > > Nothing should be in the DEVICE line in either instance. > > Also try the other USB port on the pi > > It also helps to say the model of pi and version of pi OS you have on it > > I have seen "some guy's"guides" on the Internet say to put > > DEVICE /dev/usb/hid/hiddev[0-15] > > or some such in apcupsd.conf. That might have been right for antique > Linux versions. > > Ted > > > On 3/15/2020 8:33 AM, Andrea Miconi via Apcupsd-users wrote: > Whit ups-devices I see ( among other information) > T: Bus=01 Lev=02 Prnt=02 Port=03 Cnt=01 Dev#= 5 Spd=1.5 MxCh= 0 > D: Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs= 1 > P: Vendor=051d ProdID=0002 Rev=01.06 > S: Manufacturer=American Power Conversion > S: Product=Back-UPS XS 950U FW:925.T2 .I USB FW:T2 > S: SerialNumber=4B1944P13039 > C: #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=24mA > I: If#=0x0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=00 Driver=usbhid > > So, the UPS is connected. > > > > Il domenica 15 marzo 2020, 13:48:34 CET, Ted Mittelstaedt > <te...@mi...> <mailto:te...@mi...> ha scritto: > > > make sure it works with apcaccess first. What is the output of apcaccess? > > Ted > > On 3/15/2020 4:53 AM, Andrea Miconi via Apcupsd-users wrote: > I have a Raspberry PI 4 4GB and an APC Back-UPS 950VA (BX950UI). > I wanted to activate a Master / Slave system to turn off this and the > other PCs as well. > > In the multimon.cgi I see: > System: link to Local Host > Model: Not found > Status: Comm Lost, in red > No value in Battery Chg, Utility, UPS Load, USB Temp, Batt. Run Time. > > In the Local Host I see: > Monitoring: rpc-01 > UPS Model: Not found > UPS Name: gp-ups > APCUPSD: Version 3.14.14 > Status: COMM LOST > > Last UPS Self Test: Not found > Last Test Date: Not found > > Utility Voltage: Not found VAC > Line Minimum: Not found VAC > Line Maximum: Not found VAC > Output Freq: Not found Hz > > The three graphs are obviously not correct > > In All Data I see: > APC : 001,018,0439 > DATE : 2020-03-15 11:29:07 +0100 > HOSTNAME : rpc-01 > VERSION : 3.14.14 (31 May 2016) debian > UPSNAME : gp-ups > CABLE : USB Cable > DRIVER : USB UPS Driver > UPSMODE : Stand Alone > STARTTIME: 2020-03-15 11:27:50 +0100 > STATUS : COMMLOST > MBATTCHG : 5 Percent > MINTIMEL : 3 Minutes > MAXTIME : 0 Seconds > NUMXFERS : 0 > TONBATT : 0 Seconds > CUMONBATT: 0 Seconds > XOFFBATT : N/A > STATFLAG : 0x05000100 > END APC : 2020-03-15 12:35:07 +0100 > > > > > > _______________________________________________ > Apcupsd-users mailing list > Apc...@li... <mailto:Apc...@li...> > https://lists.sourceforge.net/lists/listinfo/apcupsd-users <https://lists.sourceforge.net/lists/listinfo/apcupsd-users> > _______________________________________________ > Apcupsd-users mailing list > Apc...@li... > <mailto:Apc...@li...> > https://lists.sourceforge.net/lists/listinfo/apcupsd-users > <https://lists.sourceforge.net/lists/listinfo/apcupsd-users> > > > _______________________________________________ > Apcupsd-users mailing list > Apc...@li... <mailto:Apc...@li...> > https://lists.sourceforge.net/lists/listinfo/apcupsd-users <https://lists.sourceforge.net/lists/listinfo/apcupsd-users> > _______________________________________________ > Apcupsd-users mailing list > Apc...@li... > <mailto:Apc...@li...> > https://lists.sourceforge.net/lists/listinfo/apcupsd-users > <https://lists.sourceforge.net/lists/listinfo/apcupsd-users> > > > _______________________________________________ > Apcupsd-users mailing list > Apc...@li... > https://lists.sourceforge.net/lists/listinfo/apcupsd-users |