PWRSTATD(8)

NAME
pwrstatd - The UPS power state daemon

DESCRIPTION
PowerPanel for Linux is a software which provides command line interface that allows for monitoring of your UPS and control to gracefully shut down the computer during a power outage. The pwrstatd daemon runs at startup and communicates with the UPS while pwrstat is an interface that allows users to get
 the status of the UPS and configure the UPS and daemon itself.

OPERATION
 start    pwrstatd daemon,    /etc/init.d/pwrstatd start
 stop     pwrstatd daemon,    /etc/init.d/pwrstatd stop
 restart  pwrstatd daemon,    /etc/init.d/pwrstatd restart
 reload   pwrstatd daemon,    /etc/init.d/pwrstatd reload
 query    pwrstatd daemon,    /etc/init.d/pwrstatd status

CONFIGURATION
The daemon's configuration file locate at /etc/pwrstatd.conf

FILE
/etc/
     pwrstatd.conf,            pwrstatd configuration file.
     pwrstatd-lowbatt.sh,      Default shell command for being executed while UPS's Battery Low in Power Failure.
     pwrstatd-powerfail.sh, Default shell command for being executed while Uitlity Power Failure.
     pwrstatd-email.sh, Default shell command for send mail to notify user while event occur.
     shutdown.sh,          Default shell command for shutdown OS while event occur.
     hibernate.sh,          Default shell command for hibernate OS while event occur.

/var/log/
      pwrstatd.log,       pwrstatd event log file.

Daemon Event Log
The daemon will record the power event in 'pwrstatd.log' log file, which can be found on /var/log directory.

SEE ALSO
pwrstat(8)

TROUBLESHOOTING
1.What kind of UPS is supported by PowerPanel for Linux.
  a. The pwrstatd support USB Port and Serial Port to monitor UPS.
  b. A UPS is designed under architecture of USB HID/Power Class, a UPS has DB-9 connector for RS-232
     or Dry-Contact communication.

2.Can not eatablish communication with UPS.
  a. Ensure UPS type is supported by PowerPanel for Linux.
  b. Ensure USB or Serial cable is connected between UPS and computer. Directly connect computer and UPS
     without USB Hub is helpful to solve if which have communication problem.
  c. Try to unplug and plug the USB Cable with UPS.
  d. Ensure hid device can be found at directory of /dev/hiddev, /dev/usb/hiddev, /dev/usb/hid/hiddev such as 'hiddev0' if UPS is connected by USB cable. Ensure hid device can be found at directory of /dev such as ttyS0 if UPS is connected by serial cable.
  e. Ensure Linux kernel version is more than 2.4.22 or 2.6. Ensure kernel module 'usbhid.ko' is loaded on
     system in kernel 2.4 and 'hid.o' in kernel 2.6.

3.Can not installation or Uninstallation
  a. Ensure user account is root, because the installation/uninstallation needs 'root' privilege to setup
     system.
  b. The target Linux may not work with our installation procedure, please refer to doc/deploy-guide file
     to get more detail information.

4.pwrstat have no function.
  a. Ensure pwrstatd is working.
  b. Ensure `prohibit-client-access' option is set as 'no' in pwrstatd configuration file.

5.The pwrstatd daemon can not detect the UPS which has H2C USB adapter.
   a. Ensure linux system have libusb library. It can be found at /usr/lib
      directory.
   b. Ensure the libusb soname is libusb-0.1.so.4.
   c. If libusb soname version is less than libusb-0.1.so.4, please go to
      'rpmfind' or 'sourceforge' web site download the libusb rpm package
      and install it. The 'rpmfind' and 'sourceforge' download web site are
      shows as below:
      *rpmfind web site, http://rpmfind.net
      *sourceforge web site, http://sourceforge.net

COPYRIGHT
Copyright(c) 2015. All rights reserved.