今天在mac os x 10.5.7上部署了一个监控系统,类似ibm tivoli monitering 以及itcam。以下是安装过程
jaminwmdemacbook:hyperic-hq-installer jianmingxu$ ./setup.sh
Initializing Hyperic HQ 4.1.2 Installation...
Loading taskdefs...
Taskdefs loaded
Choose which software to install:
1: Hyperic HQ Server
2: Hyperic HQ Agent
You may enter multiple choices, separated by commas.
HQ server installation path [default '/home/hyperic']:
/home/hyperic
server.installdir does not exist: /home/hyperic
HQ server installation path [default '/home/hyperic']:
/Applications/hyperic
Enter the fully qualified domain name of the SMTP server that HQ will use to send email messages [default 'jaminwmdemacbook.local']:
Loading install configuration...
Install configuration loaded.
Preparing to install...
Validating server install configuration...
Checking server webapp port...
Checking server secure webapp port...
Checking server JRMP port...
Checking server JNP port...
Verifying admin user properties
Validating server DB configuration...
Installing the server...
Unpacking server to: /Applications/hyperic/server-4.1.2...
Creating server configuration files...
Copying binaries and libraries to server installation...
Copying server configuration file...
Copying server control file...
Copying server binaries...
Copying server libs...
Setting up server database...
Setting up JDBC driver...
Copying database files...
Configuring database...
Starting repopulation of configuration table...
Waiting for built-in database to start (on port 9432)...
Starting built-in database...
Preparing database...
Waiting for server to stop...
Stopping built-in database...
Built-in database stopped.
Setting permissions on server binaries...
Fixing line endings on text files...
--------------------------------------------------------------------------------
Installation Complete:
Server successfully installed to: /Applications/hyperic/server-4.1.2
--------------------------------------------------------------------------------
You can now start your HQ server by running this command:
Setup completed.
A copy of the output shown above has been saved to:
/Users/jianmingxu/Desktop/hyperic-hq-installer/installer-4.1.2/./hq-install.log
jaminwmdemacbook:hyperic-hq-installer jianmingxu$
jaminwmdemacbook:Applications jianmingxu$ pwd
/Applications
jaminwmdemacbook:Applications jianmingxu$ cd hyperic/
lsjaminwmdemacbook:hyperic jianmingxu$ ls
agent-4.1.2 server-4.1.2
jaminwmdemacbook:hyperic jianmingxu$ cd agent-4.1.2/
jaminwmdemacbook:agent-4.1.2 jianmingxu$ cd bin
jaminwmdemacbook:bin jianmingxu$ ./hq-agent.sh start
-n Starting HQ Agent...
- Unable to load agent token file. Generating a new one ... Done
[ Running agent setup ]
What is the HQ server IP address: 127.0.0.1
Should Agent communications to HQ always be secure [default=no]: no
What is the HQ server port [default=7080]: 7080
- Testing insecure connection ... Success
What is your HQ login [default=hqadmin]: hqadmin
What is your HQ password:
What IP should HQ use to contact the agent [default=192.168.1.120]: 192.168.1.120
What port should HQ use to contact the agent [default=2144]: 2144
- Received temporary auth token from agent
- Registering agent with HQ
- HQ gave us the following agent token
1244643344990-7574237227885028630-8716539742061968876
- Informing agent of new HQ server
- Validating
- Successfully setup agent
jaminwmdemacbook:bin jianmingxu$
jaminwmdemacbook:bin jianmingxu$ ./hq-agent.sh stop
Stopping HQ Agent...
Stopped HQ Agent.
jaminwmdemacbook:bin jianmingxu$ cd ..
jaminwmdemacbook:agent-4.1.2 jianmingxu$ cd ..
jaminwmdemacbook:hyperic jianmingxu$ cd server-4.1.2/
jaminwmdemacbook:server-4.1.2 jianmingxu$ cd bin
jaminwmdemacbook:bin jianmingxu$ ./hq-server.sh stop
Stopping HQ server...
HQ server PID 3116 exited
Stopping HQ built-in database...
server stopped
HQ server is stopped.
jaminwmdemacbook:bin jianmingxu$