vCenter

 View Only
  • 1.  Can run mulitple Hyperic HQ agents in one machine?

    Posted Sep 19, 2009 05:26 AM
    Hi. I am using Hyperic HQ 4.1.2. As I have different servers run at a machine (Linux) with different IP addresses and I would like to install multiple Hyperic HQ agents in that machine for individual IP address. However, it is not successful as this message always pop when I run bin/hq-agent.sh in another HQ agent directory (if one agent is running):

    Error executing remote method: Unauthorized

    Is it possible to run multiple agents in 1 machines? Please help if you know the solution.

    Thanks!


  • 2.  RE: Can run mulitple Hyperic HQ agents in one machine?

    Posted Dec 05, 2009 06:17 PM
    Will the multiple agents be reporting to different HQ Servers?

    If so, you just need to set the "agent.ListenPort" and "agent.setup.agentPort" in the agent.properties to listen on different ports.

    http://support.hyperic.com/display/DOC/Agent+Properties#AgentProperties-agent.setup.agentPort
    http://support.hyperic.com/display/DOC/Agent+Properties#AgentProperties-agent.listenPort

    If these will be reporting to the same server, there are some additional steps you would need to take.


  • 3.  RE: Can run mulitple Hyperic HQ agents in one machine?

    Posted Dec 07, 2009 07:17 AM
    Scott,

    I would like to know how to run multiple Agents on one machine reporting to same server.

    Mirko


  • 4.  RE: Can run mulitple Hyperic HQ agents in one machine?

    Posted Nov 11, 2011 05:54 AM
    I want to start 2 hyperic agents in my linux machine.
    The agent which I start first is working fine and it runs with default ip(x.x.x.106) of my machine.

    I created the second ip using the below comand
    ifconfig eth0:1 x.x.x.109 up

    When I start the second agent, I got the error in agent.log.startup as,
    Agent startup error: Failed to listen at x.x.x.109:2144: Address already in use

    agent.properties of my second agent is,

    agent.setup.camIP=hq server ip
    agent.setup.camPort=http port
    agent.setup.camSSLPort=https port
    agent.setup.camSecure=no
    agent.setup.camLogin=username
    agent.setup.camPword=password
    agent.setup.agentIP=x.x.x.109
    agent.setup.agentPort=2144
    agent.listenIp=x.x.x.109
    agent.listenPort=2144
    #agent.setup.resetupTokens=no

    platform.type=Linux
    platform.name=test
    platform.fqdn=test.com
    platform.ip=x.x.x.109

    Error in agent.log of second agent,

    2011-11-11 11:11:00,081 DEBUG [Thread-1] [AutoinventoryCommandsServer] [scanComplete] Unable to send autoinventory platform data to server, sleeping for 15 secs before retrying. Error: Unable to communicate with server -- provider not yet setup
    org.hyperic.hq.bizapp.client.AgentCallbackClientException: Unable to communicate with server -- provider not yet setup
    at org.hyperic.hq.bizapp.client.AgentCallbackClient.getProvider(AgentCallbackClient.java:89)
    at org.hyperic.hq.bizapp.client.AutoinventoryCallbackClient.aiSendReport(AutoinventoryCallbackClient.java:49)
    at org.hyperic.hq.autoinventory.agent.server.AutoinventoryCommandsServer.scanComplete(AutoinventoryCommandsServer.java:515)
    at org.hyperic.hq.autoinventory.ScanManager.scanComplete(ScanManager.java:308)
    at org.hyperic.hq.autoinventory.Scanner.notifyScanComplete(Scanner.java:273)
    at org.hyperic.hq.autoinventory.Scanner.start(Scanner.java:211)
    at org.hyperic.hq.autoinventory.ScanManager.mainRunLoop(ScanManager.java:141)
    at org.hyperic.hq.autoinventory.ScanManager.access$000(ScanManager.java:41)
    at org.hyperic.hq.autoinventory.ScanManager$1.run(ScanManager.java:107)
    2011-11-11 11:11:03,581 INFO [main] [AutoinventoryCommandsServer] [shutdown] Autoinventory Commands Server shut down
    2011-11-11 11:11:03,581 INFO [main] [CommandsServer] [shutdown] Commands Server shut down

    Any solutions???


  • 5.  RE: Can run mulitple Hyperic HQ agents in one machine?

    Posted Nov 11, 2011 09:40 AM
    The above problem can be resolved by giving the same kind of agent.properties for the first agent too.

    agent.properties of first agent:

    agent.setup.camIP=hq server ip
    agent.setup.camPort=http port
    agent.setup.camSSLPort=https port
    agent.setup.camSecure=no
    agent.setup.camLogin=username
    agent.setup.camPword=password
    agent.setup.agentIP=x.x.x.106
    agent.setup.agentPort=2144
    agent.listenIp=x.x.x.106
    agent.listenPort=2144

    agent.setup.resetupTokens=no

    Earlier I didn't mention the agent.listenIp and agent.listenPort in the agent.properties of first agent.
    so now we can start the multiple agents in a single machine.


  • 6.  RE: Can run mulitple Hyperic HQ agents in one machine?

    Posted Dec 16, 2011 10:33 PM
    Greetings.
    I was installing a second instance for Hyperic HQ in a monitoring server, here some details.

    Despite of being an upper location, apparently if you want to install a second HQ server you MUST choose another path instead of "/home/hyperic" (default location by the way).

    You must create another location, in my personal case "/home/hyperic2/" change it's mode to whatever you want and change the owner for the user that you will use for the installation, remember, Hyperic HQ Server installation cannot be launched by root, so, choose (or create) your user, and grant full permissions to that user for the location that you have already created.

    You can install in full mode (step by step) to choose and customize values such as: ports, e-mails, keys, URLs, etc. By

    BUT right there is my problem, when the installer says to me:

    "Loading install configuration...
    Install configuration loaded.
    Preparing to install...
    Validating server install configuration...
    Checking server webapp port...
    Checking server secure webapp port...
    Verifying admin user properties
    Validating server DB configuration...
    Installing the server...
    Unpacking server to: /home/hyperic2...
    Creating server configuration files...
    Copying binaries and libraries to server installation...
    Copying server configuration file...
    Copying server db-upgrade files...
    Copying server libs...
    Setting up server database...
    Setting up JDBC driver...
    Copying database files...
    Configuring database...
    Loading taskdefs...
    Taskdefs loaded
    Starting repopulation of configuration table...
    Waiting for built-in database to start (on port 19432)...
    Starting built-in database..."

    Yay! Almost there, and then:

    "--------------------------------------------------------------------------------
    An ERROR occurred, the installation cannot continue.

    An error occurred trying to start the HQ built-in database. More
    information may be available in the /home/hyperic2/server-4.5/logs/hqdb.log file.
    --------------------------------------------------------------------------------
    Waiting for server to stop...
    Stopping built-in database...
    --------------------------------------------------------------------------------
    An ERROR occurred, the installation cannot continue.
    FATAL EXCEPTION at /software/hyperic-hq-installer-4.5/installer/data/setup.xml:493: : The following error occurred while executing this line:
    /software/hyperic-hq-installer-4.5/installer/data/setup.xml:502: The following error occurred while executing this line:
    /software/hyperic-hq-installer-4.5/installer/data/setup.xml:683: The following error occurred while executing this line:
    /software/hyperic-hq-installer-4.5/installer/data/setup-db-PostgreSQL.xml:160: The following error occurred while executing this line:
    /software/hyperic-hq-installer-4.5/installer/data/setup-db-PostgreSQL.xml:201: The following error occurred while executing this line:
    /software/hyperic-hq-installer-4.5/installer/data/server.xml:125: exec returned: 1
    --------------------------------------------------------------------------------
    Deleting temporary JRE"

    So I suppose that I have issues with my default backend database choice (1. Built-in Postgresql)

    Could somebody help me, please?

    I have even tried with mysql, but that went wrong too because I don't know which is the proper name for schemas, tables nor their structure.

    Thanks in advance.

    Lucho.


  • 7.  RE: Can run mulitple Hyperic HQ agents in one machine?

    Posted Dec 20, 2011 09:39 AM
    Hi!
    There's a short tutorial how to prepare a mysql database for Hyperic in the documentation: http://support.hyperic.com/display/DOC/Set+Up+HQ+Database
    Once you've done that, select mysql database during the server installation process. The installation script will create all tables needed.
    Good luck. :)