Configure powerchute on 10.1.1.4

HOW TO CONFIGURE POWERCHUTE ON 10.1.1.4

    1. Currently the ups is configured for apcupsd as described at the link
    2. APCUPSD CONFIUGRATION
    3. To configure powerchute on 10.1.1.4 follow these steps
      1. Disconnect the machines from the current UPS which is of make Backups 1500 VA and connect the same to the old UPS.
      2. Log on to 10.1.1.4 as root. Please remember that you would require RSA key for logging in.
      3. The daemon that controls powerchute is /etc/rc.d/upsd
      4. The configuration file for powerchute is in the directory /usr/local/powerchute
      5. There are 2 files that need to be modified powerchute.ini - the configuration file for powerchute and pcshut.sh
      6. Check in the files before editing
      7. cd /usr/local/powerchute
      8. ci -l powerchute.ini
      9. vi powerchute.ini
      10. For configuring powerchute had to be disable and hence an entry has to be commented in powerchute.ini
      11. Uncomment the entry #DailyShutdownEnabled = No
      12. Change this to DailyShutdownEnabled = No i.e. remove the preceeding '#'
      13. You can modify additional parameters like "DailyShutdownTime" by studying the ini file
      14. After modification has been done save and quit
      15. ci -l powerchute.ini
      16. Now we move on to editing the second file pcshut.sh
      17. cd /usr/local/powerchute
      18. ci -l pcshut.sh with appropriate log message
      19. vi pcshut.sh
      20. Uncomment the lines
        #su - upsuser -s /bin/bash -c "/usr/local/sbin/shutdownslaves.sh shutdown"
        #/sbin/shutdown -h -y 0
      21. Save and quit
      22. ci -l pcshut.sh with appropriate log message
      23. The required files have been edited. Now restart the daemon
      24. /etc/rc.d/upsd restart