2019年4月9日 星期二

[3C開箱] APC BACK-UPS 1100

之前接手了一台二手 APC 的UPS smart 700
雖然之前已經換過裡面的電池了,但最近又出現異常
所幸上網找了其他款APC的UPS來頂替..!
(被除役的UPS被我拿來接MOD 電視 PS4 Apple tv 用)







































看來看去後來挑到這款符合我需求的UPS "APC BACK-UPS 1100"























 

登登....拆開後迫不及待把它裝起來使用,其實最讓我期待的是有專用的軟體去監控UPS
電量等相關數據的軟體 : PowerChute 電源監控軟體 






































其實家用玩家到底需不需要使用到UPS呢
這個見仁見智拉,我只是單純擔心萬一雷擊或是跳電
造成主機板損壞所以才買的,簡單來說就是買個心安而已
或是停電時可以有短暫的半小時來存檔電腦上的資料

功能諸元表
  6個電池備援與突波保護插座 
■ 可防範透過電話線傳輸的突波和尖波 
■ 按鈕式斷路器可從超載狀況快速恢復正常 
■ PowerChute 電源監控軟體 
■ 全機兩年保固(含電池) 








































最後因為想練習拍影片所以拍了一小段開箱影片,還請多多指教

[Citrix] Xenserver 監控 - Netdata 安裝

最近同事推薦了一款很炫炮的監控軟體,畫面很漂亮很酷
二話不說就馬上上網找步驟安裝起來,但是因為XenServer
安裝比較麻煩需要先改repo才能進行 yum install
這邊我會再寫一篇修改for XenServer 7.x版本的repo檔
下圖是Netdata 監控XenServer 所看到的DashBoard



安裝步驟如下 :

Step 1: Update the system

For security purposes, update the system to the latest stable status using YUM:
sudo yum update -y && sudo reboot
After the reboot finishes, log in with the same sudo user.

Step 2: Install dependencies

In order to install Netdata, you need to install the dependencies below:
sudo yum install zlib-devel libuuid-devel libmnl-devel gcc make git autoconf autogen automake pkgconfig
sudo yum install curl jq nodejs

Step 3: Install Netdata

Install Netdata with the official installation script:
cd ~
git clone https://github.com/firehol/netdata.git --depth=1
cd netdata
sudo ./netdata-installer.sh
During the installation process, Press ENTER to start the installation.
If no errors occur during installation, the Netdata daemon will start.

Step 4: Modify firewall rules

Before you can access Netdata's web interface, you need to modify firewall rules to allow traffic on port 19999, the default communication port of Netdata:
sudo firewall-cmd --permanent --zone=public --add-port=19999/tcp
sudo firewall-cmd --reload

Step 5: View the monitoring interface

Confirm the installation by opening your web browser and visiting the monitoring interface of Netdata:
http://<your-Vultr-server-IP>:19999

[系統設定]
vim /etc/netdata/netdata.conf

* global - 服務的全域設定
* plugins - 啟用或停用插件
* plugin:NAME - 各個插件的設定
* CHART_NAME - 各個圖表的設定
以預設值就已經可以正常的運作了,而這些參數可以視狀況修改:
* update every = 1,每一秒更新一次
* default port = 19999,預設通訊埠在 TCP 19999
* bind to = *,不綁定 IPv4、IPv6 位址
* disconnect idle web clients after seconds = 60,Web Client 閒置 60 秒後就踢掉
* enable web responses gzip compression = yes,啟用網頁 GZip 壓縮功能

[Linux] Git Proxy setting

Configure Git to use a proxy

有些公司都會鎖定Proxy,所以像你要yum install 或是git curl 等等
都需要指定proxy,這邊教大家如何設定git 的 proxy

git config --global http.proxy http://proxyUsername:proxyPassword@proxy.server.com:port
git config --global http.https://domain.com.proxy http://proxyUsername:proxyPassword@proxy.server.com:port
git config --global http.https://domain.com.sslVerify false
這邊也可以直接使用vim 來編輯 

vim ~/.gitconfig

[http]
        proxy = http://proxyUsername:proxyPassword@proxy.server.com:port