如何部署 Hyperic ,使得从内网监测外网服务器
生活随笔
收集整理的這篇文章主要介紹了
如何部署 Hyperic ,使得从内网监测外网服务器
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
2019獨角獸企業重金招聘Python工程師標準>>>
環境介紹:
外網服務器: ?www.InnovateDigital.com ?用戶名/密碼?test/test
內網服務器:192.168.1.125
操作系統都是 Centos 7 64bit
過程:
下載
Hyperic 5.8.5 ,點擊 該鏈接
安裝Hyperic Server
參照?在Centos 6 64bit 上安裝 Hyperic HQ 5.8.2.1 中文版?在內網服務器(192.168.1.125)上,安裝好 Hyperic Server,并把Hyperic Agent安裝文件上傳到 外網服務器?www.InnovateDigital.com的 /home/test 目錄下
配置ssh 隧道
在內網服務器上,運行下面命令
ssh -N ?-v ?-R 7788:192.168.1.125:7080 test@www.innovatedigital.com根據提示填寫密碼。?
其中
-R 建立反向隧道(從外網服務器到內網服務器)
7788 是在外網服務器上的監聽端口
192.168.1.125 是本地(內網服務器)地址
7080 是內網服務器的端口
將到外網服務器端口 7788的訪問,映射到內網服務器端口7080上。
?
安裝配置Hyperic Agent
在外網服務器上,使用 ?tar xzvf 解壓縮 Hyperic Agent 安裝包,然后運行:
[test@tester bin]$ cd /home/test/agent-5.8.5/bin [test@tester bin]$ ./hq-agent.sh start Starting HQ Agent...... running (20732). [ Running agent setup ] What is the HQ server IP address: localhost Should Agent communications to HQ always be secure [default=yes]: no What is the HQ server http port [default=7080]: 7788 - Testing secure connection ... Success What is your HQ login [default=hqadmin]: What is your HQ password: 請輸入hqadmin的密碼 What IP should HQ use to contact the agent [default=42.96.136.116]: What port should HQ use to contact the agent [default=2144]: - Received temporary auth token from agent - Registering agent with HQ The server to agent communication channel is using a self-signed certificate and could not be verified Are you sure you want to continue connecting? [default=no]: yes - HQ gave us the following agent token1409038071406-733078726523143911-738338007125620383 - Informing agent of new HQ server - Validating - Successfully setup agent?
后續事項
轉載于:https://my.oschina.net/hyperichq/blog/685380
總結
以上是生活随笔為你收集整理的如何部署 Hyperic ,使得从内网监测外网服务器的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 网站后端_Python+Flask.00
- 下一篇: TYVJ P1030 乳草的入侵 Lab