We have installed a Powerware UPS on our SME Server and all works fine in that we can monitor the server with the UPS program (remotely on windows box) and it will shut down correctly in the event of a power failure, however the issue we have is the monitor program does not start automatically on start up. I went to Powerware but of course there answer was they have never heared of SME ! (they say it will work on Redhat) - you can manually start the PowerMonitor.sh and all is well.
Here are some notes on the UPS Program:
------------------------------
3.1 Unix Notes
------------------------------
The LanSafe Power Monitor automatically starts when the host computer is
restarted in order to provide immediate protection. The autostart function is
configured in one of the following ways.
1. If /etc/init.d or /sbin/init.d or /etc/rc.d/init.d exist, the ls.init file is
placed in one of these directories. This file can be found in the install tar
file inside /1_install/ directory.
2. If /etc/init.d, /sbin/init.d, or /etc/rc.d/init.d does not exist, and the
file /etc/inittab exists, "PM:2345:once:$instpath/Bin/PowerMonitor.sh&" is added
to the end of /etc/inittab file. Replace $instpath with the actual path for
LanSafe directory.
3. If 1 and 2 failed, and if the file /etc/rc.d/rc.local exists,
"$instpath/Bin/PowerMonitor&" is added to the end of the file /etc/rc.d/local.
Replace $instpath with the actual path for LanSafe directory.
Here is the ls.init file mentioned above
#
# LanSafe Power Monitor
#
instpath=/usr/Powerware/LanSafe/Bin
version=5.0.8
origpath=pwd
trap "" 15 # otherwise PowerMonitor unload kills us
case "$1" in
start_msg)
echo "Starting LanSafe Power Monitor"
;;
stop_msg)
echo "Stopping LanSafe Power Monitor"
;;
'start')
if [ -f $instpath/PowerMonitor ]; then
cd $instpath
./PowerMonitor&
echo 'PowerMonitor (LanSafe Power Monitor) started'
cd $origpath
fi
;;
'stop')
if [ -f $instpath/PowerMonitor.unload ]; then
cd $instpath
./PowerMonitor.unload
echo 'PowerMonitor (LanSafe Power Monitor) stopped'
cd $origpath
fi
;;
*)
echo "usage: $0 {start|stop}"
esac
Any help would be appreciated