Hyperic Server init Script to Autostart

Hyperic is a tool that offers visibility into applications and infrastructure across physical, virtual, and cloud environments. It consolidates discovery, monitoring, analysis and control of application, system, and network assets.

Hyperic is available as vFabric Hyperic, the commercial version, and as Hyperic HQ, the open-source version. While similar, vFabric Hyperic offers additional features over the open source version.

What this tool seems to lack is an autostart. If the server were rebooted, Hyperic would not autostart with the server. One would have to remember to manually restart the server by executing the following command.

/usr/local/hyperic/server-5.0.0-EE/bin/hq-server.sh start

However, although the autostart is not implemented, the tools are in place to create the autostart. Using only three commands, the Hyperic server will autostart during a system reboot. Be certain to edit the path to reflect the location of your installation and version.

cd /etc/init.d
ln -s /usr/local/hyperic/server-5.0.0-EE/bin/hq-server.sh hq-server
chkconfig hq-server on

To verify the settings, issue the following command.

chkconfig --list hq-server


chkconfig | grep hq-server

The result should be 2:on 3:on 4:on and 5:on as seen below.

hq-server       0:off   1:off   2:on    3:on    4:on    5:on    6:off