Dies ist eine alte Version des Dokuments!
APC UPS Daemon unter CentOS 7.x
Beim Betrieb eines Servers ist der Einsatz einer gesicherten Energieversorgung natürlich obligatorisch. Im RZ1) stehen dazu meist unterbrechungsfreie Stromversorgungen, Ersatznetze oder auch Notstromaggregate zur Verfügung. Kann man auf derartige Techniken nicht zurückgreifen, lohnt sich die Anschaffung einer eigenen USV.
So kommt z.B. bei nausch.org eine APC Smart-UPS SU1400RMI 3HE zum Einsatz. Zur Überwachung, Verwaltung und Administration wird APCUPSD verwendet. In diesem Kapitel werden wir uns mit der Installation und Konfiguration des Daemon befassen.
Eine ausführliche Programmdokumentation ist auf der Seite APCUPSD User Manual zu finden.
USB/RS.232-Adapter
Die Verbindung zwischen der USV und dem Server erfolgt mittels zugehörigem seriellen Verbindungskabel vom Typ 940-0024B und einem 4-port USB/UART-Adapter DIGITUS USB 2.0 zu 4xRS232 Kabel.
Mit Hilfe der installierten usbutiuls können Details zum USB_Adapter abgefragt werden.
Bei Bedarf installieren wir uns also besagtes RPM-Paket.
# yum install usbutils
Den Inhalt des Paketes können wir uns wie folgt anzeigen lassen.
# rpm -qil usbutils
Name : usbutils Version : 007 Release : 5.el7 Architecture: x86_64 Install Date: Sun 08 Jan 2017 12:03:27 PM CET Group : Applications/System Size : 187281 License : GPLv2+ Signature : RSA/SHA256, Wed 25 Nov 2015 05:02:14 PM CET, Key ID 24c6a8a7f4a80eb5 Source RPM : usbutils-007-5.el7.src.rpm Build Date : Fri 20 Nov 2015 09:48:55 AM CET Build Host : worker1.bsys.centos.org Relocations : (not relocatable) Packager : CentOS BuildSystem <http://bugs.centos.org> Vendor : CentOS URL : http://www.linux-usb.org/ Summary : Linux USB utilities Description : This package contains utilities for inspecting devices connected to a USB bus. /usr/bin/lsusb /usr/bin/lsusb.py /usr/bin/usb-devices /usr/bin/usbhid-dump /usr/share/doc/usbutils-007 /usr/share/doc/usbutils-007/AUTHORS /usr/share/doc/usbutils-007/COPYING /usr/share/doc/usbutils-007/ChangeLog /usr/share/doc/usbutils-007/NEWS /usr/share/doc/usbutils-007/README /usr/share/man/man1/usb-devices.1.gz /usr/share/man/man8/lsusb.8.gz /usr/share/man/man8/usbhid-dump.8.gz /usr/share/pkgconfig/usbutils.pc
Der Aufruf von lsusb zeigt uns neben den anderen USB-Devices auch unseren 4-Port Adapter.
# lsusb
Bus 001 Device 003: ID 0403:6011 Future Technology Devices International, Ltd FT4232H Quad HS USB-UART/FIFO IC Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub Bus 002 Device 002: ID 0627:0001 Adomax Technology Co., Ltd Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Eine ähnliche aussagekräftige Detailanzeige können wir uns mit dem Befehl usb-devices anzeigen lassen.
# usb-devices
T: Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#= 3 Spd=480 MxCh= 0 D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1 P: Vendor=0403 ProdID=6011 Rev=08.00 S: Manufacturer=FTDI S: Product=FT4232H Device S: SerialNumber=FTZ9JWTW C: #Ifs= 4 Cfg#= 1 Atr=80 MxPwr=200mA I: If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=ftdi_sio I: If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=ftdi_sio I: If#= 2 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=ftdi_sio I: If#= 3 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=ftdi_sio
Damit der Adapter auch verwendet werden kann, benötigen wir noch die libftdi-Bibliotheken, welche wir nun noch installieren werden.
# yum install libftdi
Auch hier können wir bei Interesse, den Inhalt des RPM-Paketes anzeigen lassen.
# rpm -qil libftdi
Name : libftdi Version : 1.1 Release : 4.el7 Architecture: x86_64 Install Date: Sun 08 Jan 2017 11:55:10 AM CET Group : System Environment/Libraries Size : 96091 License : LGPLv2 Signature : RSA/SHA256, Tue 07 Oct 2014 10:19:03 PM CEST, Key ID 6a2faea2352c64e5 Source RPM : libftdi-1.1-4.el7.src.rpm Build Date : Mon 06 Oct 2014 09:17:24 PM CEST Build Host : buildvm-24.phx2.fedoraproject.org Relocations : (not relocatable) Packager : Fedora Project Vendor : Fedora Project URL : http://www.intra2net.com/de/produkte/opensource/ftdi/ Summary : Library to program and control the FTDI USB controller Description : A library (using libusb) to talk to FTDI's FT2232C, FT232BM and FT245BM type chips including the popular bitbang mode. /lib/udev/rules.d/69-libftdi.rules /usr/lib64/libftdi1.so.2 /usr/lib64/libftdi1.so.2.1.0 /usr/share/doc/libftdi-1.1 /usr/share/doc/libftdi-1.1/AUTHORS /usr/share/doc/libftdi-1.1/COPYING.LIB /usr/share/doc/libftdi-1.1/ChangeLog /usr/share/doc/libftdi-1.1/README
Installation und Konfiguration
Zur administration unserer USV benötien wir nun noch einen passenden Daemon, den apcupsd.
# yum install apcupsd
Paketdetails
# rpm -qil apcupsd
Name : apcupsd Version : 3.14.12 Release : 1.el7 Architecture: x86_64 Install Date: Sun 08 Jan 2017 01:02:05 AM CET Group : System Environment/Daemons Size : 1492686 License : GPLv2 Signature : RSA/SHA256, Thu 22 Jan 2015 01:28:09 AM CET, Key ID 6a2faea2352c64e5 Source RPM : apcupsd-3.14.12-1.el7.src.rpm Build Date : Mon 19 Jan 2015 07:17:55 PM CET Build Host : buildhw-04.phx2.fedoraproject.org Relocations : (not relocatable) Packager : Fedora Project Vendor : Fedora Project URL : http://www.apcupsd.com Summary : APC UPS Power Control Daemon for Linux Description : Apcupsd can be used for controlling most APC UPSes. During a power failure, apcupsd will inform the users about the power failure and that a shutdown may occur. If power is not restored, a system shutdown will follow when the battery is exausted, a timeout (seconds) expires, or the battery runtime expires based on internal APC calculations determined by power consumption rates. If the power is restored before one of the above shutdown conditions is met, apcupsd will inform users about this fact. Some features depend on what UPS model you have (simple or smart). /etc/apcupsd /etc/apcupsd/apccontrol /etc/apcupsd/apcupsd.conf /etc/apcupsd/changeme /etc/apcupsd/commfailure /etc/apcupsd/commok /etc/apcupsd/offbattery /etc/apcupsd/onbattery /etc/logrotate.d/apcupsd /lib/systemd/system-shutdown/apcupsd_shutdown /lib/systemd/system/apcupsd.service /sbin/apcaccess /sbin/apctest /sbin/apcupsd /sbin/smtp /usr/share/doc/apcupsd-3.14.12 /usr/share/doc/apcupsd-3.14.12/COPYING /usr/share/doc/apcupsd-3.14.12/ChangeLog /usr/share/doc/apcupsd-3.14.12/ReleaseNotes /usr/share/doc/apcupsd-3.14.12/examples /usr/share/doc/apcupsd-3.14.12/examples/Makefile /usr/share/doc/apcupsd-3.14.12/examples/SmartUPS1400.snmp /usr/share/doc/apcupsd-3.14.12/examples/client.c /usr/share/doc/apcupsd-3.14.12/examples/gui /usr/share/doc/apcupsd-3.14.12/examples/gui/about.tcl /usr/share/doc/apcupsd-3.14.12/examples/gui/apcupsd.tcl /usr/share/doc/apcupsd-3.14.12/examples/gui/dialog.tcl /usr/share/doc/apcupsd-3.14.12/examples/gui/events.tcl /usr/share/doc/apcupsd-3.14.12/examples/gui/mainwindow.tcl /usr/share/doc/apcupsd-3.14.12/examples/gui/pkgIndex.tcl /usr/share/doc/apcupsd-3.14.12/examples/gui/splash.tcl /usr/share/doc/apcupsd-3.14.12/examples/gui/status.tcl /usr/share/doc/apcupsd-3.14.12/examples/hid-set.c /usr/share/doc/apcupsd-3.14.12/examples/hid-ups.c /usr/share/doc/apcupsd-3.14.12/examples/hiddev-hiddev.h-cleanup-2.4.patch /usr/share/doc/apcupsd-3.14.12/examples/hiddev.h /usr/share/doc/apcupsd-3.14.12/examples/hiddev.txt /usr/share/doc/apcupsd-3.14.12/examples/index.php /usr/share/doc/apcupsd-3.14.12/examples/libusb.h /usr/share/doc/apcupsd-3.14.12/examples/linux-2.4.20-USB-reject.patch /usr/share/doc/apcupsd-3.14.12/examples/linux-2.4.20-killpower.patch /usr/share/doc/apcupsd-3.14.12/examples/linux-2.6.0-USB-queue-overflow.patch /usr/share/doc/apcupsd-3.14.12/examples/linux-usb-patch-email.txt /usr/share/doc/apcupsd-3.14.12/examples/linux-usb-patch2-email.txt /usr/share/doc/apcupsd-3.14.12/examples/make-hiddev /usr/share/doc/apcupsd-3.14.12/examples/megaclient.c /usr/share/doc/apcupsd-3.14.12/examples/nagios_plugin_check_apcupsd.c /usr/share/doc/apcupsd-3.14.12/examples/newslave.c /usr/share/doc/apcupsd-3.14.12/examples/offbattery.cpufreq /usr/share/doc/apcupsd-3.14.12/examples/onbattery.cpufreq /usr/share/doc/apcupsd-3.14.12/examples/php-monitor.txt /usr/share/doc/apcupsd-3.14.12/examples/rpt /usr/share/doc/apcupsd-3.14.12/examples/rpt/Back-UPS-350-USB.rpt /usr/share/doc/apcupsd-3.14.12/examples/rpt/Back-UPS-350ES.rpt /usr/share/doc/apcupsd-3.14.12/examples/rpt/Back-UPS-500-USB.rpt /usr/share/doc/apcupsd-3.14.12/examples/rpt/Back-UPS-500ES.rpt /usr/share/doc/apcupsd-3.14.12/examples/rpt/Back-UPS-BR-800.rpt /usr/share/doc/apcupsd-3.14.12/examples/rpt/Back-UPS-CS-650.rpt /usr/share/doc/apcupsd-3.14.12/examples/rpt/Back-UPS-ES-550.rpt /usr/share/doc/apcupsd-3.14.12/examples/rpt/Back-UPS-XS-1300-LCD.rpt /usr/share/doc/apcupsd-3.14.12/examples/rpt/BackUPS.rpt /usr/share/doc/apcupsd-3.14.12/examples/rpt/Smart-UPS-1500.rpt /usr/share/doc/apcupsd-3.14.12/examples/rpt/SmartUPS-USB.rpt /usr/share/doc/apcupsd-3.14.12/examples/rpt/SmartUPS.rpt /usr/share/doc/apcupsd-3.14.12/examples/rpt/hid-ups.rpt /usr/share/doc/apcupsd-3.14.12/examples/safe.apccontrol /usr/share/doc/apcupsd-3.14.12/examples/smartsim.c /usr/share/doc/apcupsd-3.14.12/examples/snoopdecode.c /usr/share/doc/apcupsd-3.14.12/examples/status /usr/share/doc/apcupsd-3.14.12/examples/status/Back-UPS-BX-1500.status /usr/share/doc/apcupsd-3.14.12/examples/status/Back-UPS-Pro-1000.status /usr/share/doc/apcupsd-3.14.12/examples/status/BackUPS-USB.status /usr/share/doc/apcupsd-3.14.12/examples/status/JapaneseUPS.status /usr/share/doc/apcupsd-3.14.12/examples/status/PowerStack450.status /usr/share/doc/apcupsd-3.14.12/examples/status/SmartUPS-vs-650.status /usr/share/doc/apcupsd-3.14.12/examples/status/SmartUPS1000.status /usr/share/doc/apcupsd-3.14.12/examples/status/SmartUPS1400.status /usr/share/doc/apcupsd-3.14.12/examples/status/SmartUPS3000.status /usr/share/doc/apcupsd-3.14.12/examples/status/SmartUPS5000.status /usr/share/doc/apcupsd-3.14.12/examples/status/SmartUPS600.status /usr/share/doc/apcupsd-3.14.12/examples/status/SmartUPS700-2.status /usr/share/doc/apcupsd-3.14.12/examples/status/SmartUPS700.status /usr/share/doc/apcupsd-3.14.12/examples/status/newbackupspro1.status /usr/share/doc/apcupsd-3.14.12/examples/status/newbackupspro2.status /usr/share/doc/apcupsd-3.14.12/examples/upsapm.c /usr/share/doc/apcupsd-3.14.12/examples/usb_hid_usages /usr/share/doc/apcupsd-3.14.12/examples/usbsnoop.txt /usr/share/hal/fdi/policy/20thirdparty/80-apcupsd-ups-policy.fdi /usr/share/man/man5/apcupsd.conf.5.gz /usr/share/man/man8/apcaccess.8.gz /usr/share/man/man8/apccontrol.8.gz /usr/share/man/man8/apctest.8.gz /usr/share/man/man8/apcupsd.8.gz
# service apcupsd start
Starting UPS monitoring: [ OK ]
# chkconfig apcupsd on
# chkconfig --list | grep apcupsd
apcupsd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
# systemctl restart apcupsd.service [root@vml000127 ~]# systemctl status apcupsd.service ● apcupsd.service - APC UPS Power Control Daemon for Linux Loaded: loaded (/usr/lib/systemd/system/apcupsd.service; disabled; vendor preset: disabled) Active: active (running) since Sun 2017-01-08 11:20:21 CET; 3s ago Process: 2571 ExecStartPre=/bin/rm -f /etc/apcupsd/powerfail (code=exited, status=0/SUCCESS) Main PID: 2573 (apcupsd) CGroup: /system.slice/apcupsd.service └─2573 /sbin/apcupsd -b -f /etc/apcupsd/apcupsd.conf Jan 08 11:20:21 vml000127.dmz.nausch.org systemd[1]: Starting APC UPS Power Control Daemon for Linux... Jan 08 11:20:21 vml000127.dmz.nausch.org systemd[1]: Started APC UPS Power Control Daemon for Linux. Jan 08 11:20:21 vml000127.dmz.nausch.org apcupsd[2573]: apcupsd 3.14.12 (29 March 2014) redhat startup succeeded Jan 08 11:20:21 vml000127.dmz.nausch.org apcupsd[2573]: NIS server startup succeeded [root@vml000127 ~]# cat /var/log/apcupsd.events 2017-01-08 11:20:21 +0100 apcupsd 3.14.12 (29 March 2014) redhat startup succeeded
# cat /var/log/apcupsd.events
2012-07-28 16:31:36 +0200 apcupsd 3.14.10 (13 September 2011) redhat startup succeeded
# cat /var/log/apcupsd.events 2012-07-28 15:58:51 +0200 apcupsd FATAL ERROR in smartsetup.c at line 172 PANIC! Cannot communicate with UPS via serial port. Please make sure the port specified on the DEVICE directive is correct, and that your cable specification on the UPSCABLE directive is correct. 2012-07-28 15:58:51 +0200 apcupsd error shutdown completed
APC : 001,051,1262 DATE : 2012-07-28 16:28:45 +0200 HOSTNAME : vml000020.dmz.nausch.org VERSION : 3.14.10 (13 September 2011) redhat UPSNAME : APC1400 CABLE : Custom Cable Smart DRIVER : APC Smart UPS (any) UPSMODE : Stand Alone STARTTIME: 2012-07-28 16:28:33 +0200 MODEL : SMART-UPS 1400 RM STATUS : ONLINE LINEV : 226.2 Volts LOADPCT : 33.2 Percent Load Capacity BCHARGE : 100.0 Percent TIMELEFT : 9.0 Minutes MBATTCHG : 5 Percent MINTIMEL : 3 Minutes MAXTIME : 0 Seconds MAXLINEV : 228.8 Volts MINLINEV : 226.2 Volts OUTPUTV : 226.2 Volts SENSE : High DWAKE : 000 Seconds DSHUTD : 020 Seconds DLOWBATT : 02 Minutes LOTRANS : 196.0 Volts HITRANS : 253.0 Volts RETPCT : 000.0 Percent ITEMP : 34.2 C Internal ALARMDEL : 5 seconds BATTV : 27.6 Volts LINEFREQ : 50.0 Hz LASTXFER : Automatic or explicit self test NUMXFERS : 0 TONBATT : 0 seconds CUMONBATT: 0 seconds XOFFBATT : N/A SELFTEST : NO STESTI : 336 STATFLAG : 0x07000008 Status Flag DIPSW : 0x00 Dip Switch REG1 : 0x00 Register 1 REG2 : 0x00 Register 2 REG3 : 0x00 Register 3 MANDATE : 09/23/11 SERIALNO : GS9939006549 BATTDATE : 09/23/11 NOMOUTV : 230 Volts NOMBATTV : 24.0 Volts EXTBATTS : 0 FIRMWARE : 72.11.I END APC : 2012-07-28 16:28:50 +0200
# vim /etc/httpd/conf.d/vhosts.conf
- /etc/httpd/conf.d/vhosts.conf
... # # power.nausch.org # <VirtualHost *:80> ServerAdmin webmaster@nausch.org ServerName power.nausch.org ServerAlias www.power.nausch.org ServerPath / DocumentRoot "/var/www/apcupsd" AddHandler cgi-script .cgi <Directory "/var/www/apcupsd"> Options FollowSymLinks AllowOverride all Order Allow,Deny Allow from all Options ExecCGI </Directory> AddType application/x-httpd-php .php DirectoryIndex multimon.cgi ErrorLog logs/power_error.log CustomLog logs/power_access.log combined </VirtualHost> ...
Date: Mon, 30 Jul 2012 17:23:01 +0200 From: root@nausch.org (root) To: root@nausch.org Subject: vml000020.dmz.nausch.org Power Failure !!! vml000020.dmz.nausch.org Power Failure !!! APC : 001,052,1297 DATE : 2012-07-30 17:22:59 +0200 HOSTNAME : vml000020.dmz.nausch.org VERSION : 3.14.10 (13 September 2011) redhat UPSNAME : APC1400 CABLE : Custom Cable Smart DRIVER : APC Smart UPS (any) UPSMODE : Stand Alone STARTTIME: 2012-07-28 16:31:25 +0200 MODEL : SMART-UPS 1400 RM STATUS : ONBATT LINEV : 000.0 Volts LOADPCT : 33.2 Percent Load Capacity BCHARGE : 100.0 Percent TIMELEFT : 10.0 Minutes MBATTCHG : 5 Percent MINTIMEL : 3 Minutes MAXTIME : 0 Seconds MAXLINEV : 000.0 Volts MINLINEV : 000.0 Volts OUTPUTV : 230.4 Volts SENSE : High DWAKE : 000 Seconds DSHUTD : 020 Seconds DLOWBATT : 02 Minutes LOTRANS : 196.0 Volts HITRANS : 253.0 Volts RETPCT : 000.0 Percent ITEMP : 33.7 C Internal ALARMDEL : 5 seconds BATTV : 24.4 Volts LINEFREQ : 50.0 Hz LASTXFER : Line voltage notch or spike NUMXFERS : 1 XONBATT : 2012-07-30 17:22:55 +0200 TONBATT : 6 seconds CUMONBATT: 6 seconds XOFFBATT : N/A SELFTEST : NO STESTI : 336 STATFLAG : 0x07060010 Status Flag DIPSW : 0x00 Dip Switch REG1 : 0x00 Register 1 REG2 : 0x00 Register 2 REG3 : 0x00 Register 3 MANDATE : 09/23/99 SERIALNO : GS9939006549 BATTDATE : 09/23/99 NOMOUTV : 230 Volts NOMBATTV : 24.0 Volts EXTBATTS : 0 FIRMWARE : 72.11.I END APC : 2012-07-30 17:23:01 +0200
Date: Mon, 30 Jul 2012 17:23:59 +0200 From: root@nausch.org (root) To: root@nausch.org Subject: vml000020.dmz.nausch.org Power has returned vml000020.dmz.nausch.org Power has returned APC : 001,052,1322 DATE : 2012-07-30 17:23:58 +0200 HOSTNAME : vml000020.dmz.nausch.org VERSION : 3.14.10 (13 September 2011) redhat UPSNAME : APC1400 CABLE : Custom Cable Smart DRIVER : APC Smart UPS (any) UPSMODE : Stand Alone STARTTIME: 2012-07-28 16:31:25 +0200 MODEL : SMART-UPS 1400 RM STATUS : ONLINE LINEV : 227.5 Volts LOADPCT : 33.2 Percent Load Capacity BCHARGE : 090.0 Percent TIMELEFT : 9.0 Minutes MBATTCHG : 5 Percent MINTIMEL : 3 Minutes MAXTIME : 0 Seconds MAXLINEV : 000.0 Volts MINLINEV : 024.7 Volts OUTPUTV : 228.8 Volts SENSE : High DWAKE : 000 Seconds DSHUTD : 020 Seconds DLOWBATT : 02 Minutes LOTRANS : 196.0 Volts HITRANS : 253.0 Volts RETPCT : 000.0 Percent ITEMP : 33.3 C Internal ALARMDEL : 5 seconds BATTV : 25.9 Volts LINEFREQ : 50.0 Hz LASTXFER : Line voltage notch or spike NUMXFERS : 1 XONBATT : 2012-07-30 17:22:55 +0200 TONBATT : 0 seconds CUMONBATT: 64 seconds XOFFBATT : 2012-07-30 17:23:59 +0200 SELFTEST : NO STESTI : 336 STATFLAG : 0x07040008 Status Flag DIPSW : 0x00 Dip Switch REG1 : 0x00 Register 1 REG2 : 0x00 Register 2 REG3 : 0x00 Register 3 MANDATE : 09/23/99 SERIALNO : GS9939006549 BATTDATE : 09/23/99 NOMOUTV : 230 Volts NOMBATTV : 24.0 Volts EXTBATTS : 0 FIRMWARE : 72.11.I END APC : 2012-07-30 17:23:59 +0200
START
# systemctl start apcupsd.service
● apcupsd.service - APC UPS Power Control Daemon for Linux Loaded: loaded (/usr/lib/systemd/system/apcupsd.service; disabled; vendor preset: disabled) Active: active (running) since Sun 2017-01-08 11:41:41 CET; 1s ago Process: 1750 ExecStartPre=/bin/rm -f /etc/apcupsd/powerfail (code=exited, status=0/SUCCESS) Main PID: 1752 (apcupsd) CGroup: /system.slice/apcupsd.service └─1752 /sbin/apcupsd -b -f /etc/apcupsd/apcupsd.conf Jan 08 11:41:41 vml000127.dmz.nausch.org systemd[1]: Starting APC UPS Power Control Daemon for Linux... Jan 08 11:41:41 vml000127.dmz.nausch.org systemd[1]: Started APC UPS Power Control Daemon for Linux. Jan 08 11:41:41 vml000127.dmz.nausch.org apcupsd[1752]: apcupsd 3.14.12 (29 March 2014) redhat startup succeeded Jan 08 11:41:41 vml000127.dmz.nausch.org apcupsd[1752]: NIS server startup succeeded
# less /var/log/messages
Jan 8 11:41:41 vml000127 apcupsd[1752]: apcupsd 3.14.12 (29 March 2014) redhat startup succeeded Jan 8 11:41:41 vml000127 apcupsd[1752]: NIS server startup succeeded
# cat /var/log/apcupsd.events
2017-01-08 11:41:41 +0100 apcupsd 3.14.12 (29 March 2014) redhat startup succeeded 2017-01-08 11:41:52 +0100 apcupsd FATAL ERROR in smartsetup.c at line 155 PANIC! Cannot communicate with UPS via serial port. Please make sure the port specified on the DEVICE directive is correct, and that your cable specification on the UPSCABLE directive is correct. 2017-01-08 11:41:52 +0100 apcupsd error shutdown completed
apcupsd-gui
Installation
# yum install -y apcupsd-gui
# rpm -qil apcupsd-gui
Name : apcupsd-gui Version : 3.14.12 Release : 1.el7 Architecture: x86_64 Install Date: Sun 08 Jan 2017 02:58:20 PM CET Group : Applications/System Size : 135050 License : GPLv2 Signature : RSA/SHA256, Thu 22 Jan 2015 01:39:58 AM CET, Key ID 6a2faea2352c64e5 Source RPM : apcupsd-3.14.12-1.el7.src.rpm Build Date : Mon 19 Jan 2015 07:17:55 PM CET Build Host : buildhw-04.phx2.fedoraproject.org Relocations : (not relocatable) Packager : Fedora Project Vendor : Fedora Project URL : http://www.apcupsd.com Summary : GUI interface for apcupsd Description : A GUI interface to the APC UPS monitoring daemon. /usr/bin/gapcmon /usr/share/applications/gapcmon.desktop /usr/share/pixmaps/apcupsd.png /usr/share/pixmaps/charging.png /usr/share/pixmaps/gapc_prefs.png /usr/share/pixmaps/onbatt.png /usr/share/pixmaps/online.png /usr/share/pixmaps/unplugged.png
apcupsd-cgi
# yum install apcupsd-cgi
Name : apcupsd-cgi Version : 3.14.12 Release : 1.el7 Architecture: x86_64 Install Date: Sun 08 Jan 2017 03:05:58 PM CET Group : Applications/Internet Size : 121261 License : GPLv2 Signature : RSA/SHA256, Thu 22 Jan 2015 01:28:22 AM CET, Key ID 6a2faea2352c64e5 Source RPM : apcupsd-3.14.12-1.el7.src.rpm Build Date : Mon 19 Jan 2015 07:17:55 PM CET Build Host : buildhw-04.phx2.fedoraproject.org Relocations : (not relocatable) Packager : Fedora Project Vendor : Fedora Project URL : http://www.apcupsd.com Summary : Web interface for apcupsd Description : A CGI interface to the APC UPS monitoring daemon. /etc/apcupsd/apcupsd.css /etc/apcupsd/hosts.conf /etc/apcupsd/multimon.conf /etc/httpd/conf.d/apcupsd.conf /var/www/apcupsd /var/www/apcupsd/multimon.cgi /var/www/apcupsd/upsfstats.cgi /var/www/apcupsd/upsimage.cgi /var/www/apcupsd/upsstats.cgi