日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

如何部署 Hyperic ,使得从内网监测外网服务器

發(fā)布時間:2025/3/8 编程问答 25 豆豆
生活随笔 收集整理的這篇文章主要介紹了 如何部署 Hyperic ,使得从内网监测外网服务器 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

2019獨角獸企業(yè)重金招聘Python工程師標準>>>

環(huán)境介紹:

外網(wǎng)服務器: ?www.InnovateDigital.com ?用戶名/密碼?test/test

內(nèi)網(wǎng)服務器:192.168.1.125

操作系統(tǒng)都是 Centos 7 64bit

過程:

下載

Hyperic 5.8.5 ,點擊 該鏈接

安裝Hyperic Server

參照?在Centos 6 64bit 上安裝 Hyperic HQ 5.8.2.1 中文版?在內(nèi)網(wǎng)服務器(192.168.1.125)上,安裝好 Hyperic Server,并把Hyperic Agent安裝文件上傳到 外網(wǎng)服務器?www.InnovateDigital.com的 /home/test 目錄下

配置ssh 隧道

在內(nèi)網(wǎng)服務器上,運行下面命令

ssh -N ?-v ?-R 7788:192.168.1.125:7080 test@www.innovatedigital.com

根據(jù)提示填寫密碼。?

其中

-R 建立反向隧道(從外網(wǎng)服務器到內(nèi)網(wǎng)服務器)

7788 是在外網(wǎng)服務器上的監(jiān)聽端口

192.168.1.125 是本地(內(nèi)網(wǎng)服務器)地址

7080 是內(nèi)網(wǎng)服務器的端口

將到外網(wǎng)服務器端口 7788的訪問,映射到內(nèi)網(wǎng)服務器端口7080上。

?

安裝配置Hyperic Agent

在外網(wǎng)服務器上,使用 ?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

?

后續(xù)事項

  • ?可以使用 autossh 代替 ?ssh, 保證鏈接的穩(wěn)定;
  • 注意防火墻的限制,保證幾個端口的暢通, 2144(Hyperic Server 訪問 Hyperic Agent),7788(Hyperic Agent訪問本機隧道端口),22 (ss端口)
  • 如果 Hyperic Server 和 Hyperic Agent在不同的內(nèi)網(wǎng)中,怎么辦? 歡迎探討
  • 轉載于:https://my.oschina.net/hyperichq/blog/685380

    總結

    以上是生活随笔為你收集整理的如何部署 Hyperic ,使得从内网监测外网服务器的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。