Install Powerwalker UPS Software, “Viewpower” on RHEL 7

I’m connecting my Powerwalker UPS to one of my servers so I can benefit from features that allows my server to be shutdown nicely when my UPS battery is running out of cream.

Fetch the installer:

The installer can’t really been tested much, so there is some fixes to be implemented.

Make sure you edit the upsMonitor file at MONITOR_HOME  in /etc/init.d/ to match your installation directory. The installer doesn’t really care to automatically set that for you.

In my case,  I installed it into /opt/ViewPower as I don’t think it should be installed in root directory or using a version number in the directory name.


1) Create some symlinks so the application can find some libs:
ln -s /usr/lib64/ /lib/

2) The upsMonitor requires netstat. Since we don’t have netstat anymore we need to install net-tools:

yum install -y net-tools

3) If your /etc/init.d/upsMonitor is an empty file, just copy the file to:

cp /opt/ViewPower/upsMonitor  /etc/init.d/

Now we can start the monitor by running  /etc/init.d/upsMonitor start

While using the init script, you can see that the language is a bit broken, for instance:

“upsMonitor is not run”
“start upsMonitor servcie”
“upsMonitor service already start”


So there are many things that feels quite lax in this software.

The upsMonitor spawn 2 processes:

  • /opt/ViewPower/jre/bin/java com.zerog.lax.LAX /opt/ViewPower2.14/./StartMain.lax /tmp/
  • /opt/ViewPower/jdk/bin/java -Djava.util.logging.config.file=/opt/ViewPower/tomcat/conf/ -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager-Djava.endorsed.dirs=/opt/ViewPower/tomcat/endorsed -classpath /opt/ViewPower/tomcat/bin/bootstrap.jar:/opt/ViewPower/tomcat/bin/tomcat-juli.jar -Dcatalina.base=/opt/ViewPower/tomcat -Dcatalina.home=/opt/ViewPower/tomcat org.apache.catalina.startup.Bootstrap start

It launches the /opt/ViewPower/StartMain file which exposes tcp port 15178 that shows the default tomcat welcome page.
Some manuals actually says that the web interface can be found on another port which is wrong in this case.
You’ll find the actually ups web interface on http://serverip:15178/ViewPower/

Autostart the service using the legacy mode simply by running:

systemctl enable upsMonitor


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s