Configure powerchute on 10.1.1.4
Submitted by saurabh on Sat, 2006-11-11 11:15
HOW TO CONFIGURE POWERCHUTE ON 10.1.1.4
- Currently the ups is configured for apcupsd as described at the link
- APCUPSD CONFIUGRATION
- To configure powerchute on 10.1.1.4 follow these steps
- Disconnect the machines from the current UPS which is of make Backups 1500 VA and connect the same to the old UPS.
- Log on to 10.1.1.4 as root. Please remember that you would require RSA key for logging in.
- The daemon that controls powerchute is /etc/rc.d/upsd
- The configuration file for powerchute is in the directory /usr/local/powerchute
- There are 2 files that need to be modified powerchute.ini - the configuration file for powerchute and pcshut.sh
- Check in the files before editing
- cd /usr/local/powerchute
- ci -l powerchute.ini
- vi powerchute.ini
- For configuring powerchute had to be disable and hence an entry has to be commented in powerchute.ini
- Uncomment the entry #DailyShutdownEnabled = No
- Change this to DailyShutdownEnabled = No i.e. remove the preceeding '#'
- You can modify additional parameters like "DailyShutdownTime" by studying the ini file
- After modification has been done save and quit
- ci -l powerchute.ini
- Now we move on to editing the second file pcshut.sh
- cd /usr/local/powerchute
- ci -l pcshut.sh with appropriate log message
- vi pcshut.sh
- Uncomment the lines
#su - upsuser -s /bin/bash -c "/usr/local/sbin/shutdownslaves.sh shutdown"
#/sbin/shutdown -h -y 0 - Save and quit
- ci -l pcshut.sh with appropriate log message
- The required files have been edited. Now restart the daemon
- /etc/rc.d/upsd restart
»
- Login to post comments
- Printer-friendly version
- Send to friend