VMware Cloud Community
johnp_hyperic
Contributor
Contributor

Ubuntu start Hyperic on boot up

Hi All,

I am trying to find a way to start Hyperic HQ automatically on boot up on an Ubuntu Linux system. What is the reccomended approach?

Thanks,

John P
Reply
0 Kudos
5 Replies
excowboy
Virtuoso
Virtuoso

Hi john,

what package did you install ? I think if you use the provided rpm package and use the alien tool to convert them to the deb-format.
I provided some Debian scripts. I think they will work in Ubuntu too.

http://support.hyperic.com/display/hypcomm/Debian+Init+Scripts


After that you could run rcconf to activate them on startup.


Cheers,
Mirko
Reply
0 Kudos
johnp_hyperic
Contributor
Contributor

I followed the instructions here: http://www.howtoforge.com/hyperic_hq_on_ubuntu704

I attempted to implement the suggestion from the link above, but this didn't work, Hyperic still isn't starting with the server
Reply
0 Kudos
dvdmkr
Contributor
Contributor

http://support.hyperic.com/display/hypcomm/Debian+Init+Scripts

Does not work out-of-the-box. You need to do minor fix on the /etc/init.d/hq-agent file.

# Read configuration variable file if it is present
[ -r /etc/default/$NAME ] && . /etc/default/$NAME

DAEMON=$HYPERIC_AGENT_HOME/bin/hq-agent.sh
DAEMON_ARGS="--options args"
PIDFILE=$HYPERIC_AGENT_HOME/$NAME.pid
SCRIPTNAME=/etc/init.d/$NAME

bold path name, /bin, was missing from original hq-agent.sh file. So, add it.

Finallly, use update-rc.d instead.

I did this in /etc/init.d directory, and you may want to too..

for hq-server, enter the following command and run.

sudo update-rc.d hq-server start 60 2 3 4 5 . stop 60 S 0 1 6 .

That will run hq-server at run-level 2, 3, 4, or 5, and stops at S, 0, 1, or 6.

and for hq-agent, enter the following command and run.

sudo update-rc.d hq-agent start 65 2 3 4 5 . stop 65 S 0 1 6 .

That will run your HQ Server, and HQ agent for your server at system boot.

Let me know if that works out for you..
Reply
0 Kudos
excowboy
Virtuoso
Virtuoso

Hi Kelvin,

thanks for your comments.
The script actually worked for Hyperic HQ Agent 3.x
I made a minor change to the init script to make it 4.x compatible and I think about it how to integrate it with the old version.

I would appreciate it if you add your configuration steps to enable Hyperic at boottime to the Wiki page. Everybody is free to add comments or modify page. You only need to register 😉

Cheers,
Mirko
Reply
0 Kudos
johnp_hyperic
Contributor
Contributor

Thanks guys. I'm actually trying to start the HQ server, not the agent though.
Reply
0 Kudos