vCenter

 View Only
  • 1.  Ubuntu start Hyperic on boot up

    Posted Dec 13, 2008 03:00 AM
    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


  • 2.  RE: Ubuntu start Hyperic on boot up

    Posted Dec 13, 2008 05:34 AM
    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


  • 3.  RE: Ubuntu start Hyperic on boot up

    Posted Dec 15, 2008 03:26 AM
    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


  • 4.  RE: Ubuntu start Hyperic on boot up

    Posted Dec 17, 2008 09:11 PM
    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..


  • 5.  RE: Ubuntu start Hyperic on boot up

    Posted Dec 18, 2008 02:11 AM
    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


  • 6.  RE: Ubuntu start Hyperic on boot up

    Posted Dec 18, 2008 08:38 PM
    Thanks guys. I'm actually trying to start the HQ server, not the agent though.