@okynnor1 wrote:
Hi,
I have recently added a UPS to my FREEPBX 13 implementation. I wanted to ask the experts in FreePBX about how I would be able to verify that the FREEPBX server sees the APC UPS and will orderly shutdown the server when the battery runs low.
When I run: cat /proc/bus/usb/devices, I get:
T: Bus=01 Lev=02 Prnt=02 Port=04 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= 0.06
S: Manufacturer=American Power Conversion
S: Product=Smart-UPS 2200 XL FW:690.17.D USB FW:7.3
S: SerialNumber=JS0751005068
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr= 30mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=03(HID ) Sub=00 Prot=00 Driver=usbhid
E: Ad=81(I) Atr=03(Int.) MxPS= 6 Ivl=100msThis means that the server has detected the APC UPC, right?
Then, on the Web interface, Admin --> Sysadmin --> UPS Server, under Device/Port, I typed ‘/dev/usb/hiddev0’,
I also verified via SSH session to the server that the above indeed exists
To verify more: I typed:
‘ps aux | grep acupad’ and got the following:
root 15892 0.0 0.0 103244 892 pts/0 S+ 16:26 0:00 grep acupadInterestingly, when type:
[root@pbx ~]# /etc/rc.d/init.d/apcupsd stop
Shutting down UPS monitoring: [FAILED]
[root@pbx ~]# /etc/rc.d/init.d/apcupsd start
Starting UPS monitoring: [ OK ]
[root@pbx ~]# /etc/rc.d/init.d/apcupsd stop
Shutting down UPS monitoring: [OK]
[root@pbx ~]# /etc/rc.d/init.d/apcupsd start
Starting UPS monitoring: [ OK ]All this should tell me that the UPC is setup properly even though, I got a FAILED result when I stopped on the apcupcd daemon. This happens every time I restart the server, which I would prefer that it started property automatically.
Anyway, assuming that everything is working, when I pulled the power from the APC UPS, I never get an email notification sent to me. I did set the email address though.
If someone knows what I’m doing wrong, please tell me.
Thanks!!
RC
Posts: 2
Participants: 2