工作中有用到Nginx做負(fù)載均衡,所以想嘗試一下,把Nginx服務(wù)用zabbix監(jiān)控起來(lái)
在梁河等地區(qū),都構(gòu)建了全面的區(qū)域性戰(zhàn)略布局,加強(qiáng)發(fā)展的系統(tǒng)性、市場(chǎng)前瞻性、產(chǎn)品創(chuàng)新能力,以專注、極致的服務(wù)理念,為客戶提供成都網(wǎng)站制作、成都網(wǎng)站設(shè)計(jì) 網(wǎng)站設(shè)計(jì)制作按需網(wǎng)站建設(shè),公司網(wǎng)站建設(shè),企業(yè)網(wǎng)站建設(shè),成都品牌網(wǎng)站建設(shè),成都營(yíng)銷網(wǎng)站建設(shè),成都外貿(mào)網(wǎng)站建設(shè),梁河網(wǎng)站建設(shè)費(fèi)用合理。記錄下操作步驟,以防下次忘記
涉及的實(shí)驗(yàn)環(huán)境:
服務(wù)器操作系統(tǒng):CentOS 7.2
zabbix版本:zabbix-2.2.5
Nginx版本:nginx-1.10.1
要做監(jiān)控步驟前,先查看下當(dāng)前Nginx中是否加載了--with-http_stub_status_module的模塊。
# /data0/nginx/sbin/nginx -V nginx version: nginx/1.10.1 built by gcc 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC) built with OpenSSL 1.0.1e-fips 11 Feb 2013 TLS SNI support enabled configure arguments: --prefix=/data0/nginx --pid-path=/data0/nginx/logs/nginx.pid --user=nginx --group=nginx --with-http_ssl_module --with-http_flv_module --with-http_stub_status_module --with-http_gzip_static_module --http-client-body-temp-path=/var/tmp/nginx/client/ --http-proxy-temp-path=/var/tmp/nginx/proxy/ --http-fastcgi-temp-path=/var/tmp/nginx/fcgi/ --http-uwsgi-temp-path=/var/tmp/nginx/uwsgi --http-scgi-temp-path=/var/tmp/nginx/scgi --with-pcre --add-module=/root/nginx_upstream_check_module-master/ --add-module=/data0/soft/ngx_cache_purge-master/因?yàn)檫@邊zabbix是根據(jù)nginx的Stub Status模塊,來(lái)抓取Status模塊所提供的數(shù)據(jù)。
假如從前尚未開啟此模塊,現(xiàn)在想啟用StubStatus模塊,你可以重新編譯nginx源碼安裝包,然后在編譯時(shí)記得加上參數(shù) --with-http_stub_status_module,執(zhí)行./configure && make就可以了,不用make install,如果make install記得先備份下,配置文件nginx.conf,以防止配置文件的內(nèi)容都遺失了。
因?yàn)镹ginx配置時(shí),我都有加載此模塊,所以就不多加介紹了。
重新加載nginx模塊可以參照我之前寫的博客
http://10803382.blog.51cto.com/10793382/1924871
在你的nginx.conf確認(rèn)下,有沒有下列內(nèi)容,如果沒有,那你可以在nginx.conf當(dāng)中添加查看nginxstatus配置后,重啟nginx服務(wù)即可。
# vim /data0/nginx/conf/nginx.conf ##找到server模塊,server{}里加入下面的內(nèi)容 #20170627 Nginx監(jiān)控設(shè)置 location /nginxstatus{ stub_status on; access_log /data0/nginx/logs/status.log; allow 10.60.0.71; ##允許zabbix監(jiān)控主機(jī)內(nèi)網(wǎng)IP訪問 allow 10.60.0.163; ##允許nginx本機(jī)內(nèi)網(wǎng)IP訪問 deny all; auth_basic "nginxstatus"; } #20170627 END因?yàn)橄薅稍L問IP,有助于保護(hù)網(wǎng)址安全
# /data0/nginx/sbin/nginx -t nginx: the configuration file /data0/nginx/conf/nginx.conf syntax is ok nginx: configuration file /data0/nginx/conf/nginx.conf test is successful # /data0/nginx/sbin/nginx -s reload查看你設(shè)置好的nginxstatus連接狀況
http://網(wǎng)址/nginxstatus
# curl http://127.0.0.1/nginxstatus <html> <head><title>301 Moved Permanently</title></head> <body bgcolor="white"> <center><h2>301 Moved Permanently</h2></center> <hr><center>nginx/1.10.1</center> </body> </html>你會(huì)發(fā)現(xiàn)出現(xiàn)了錯(cuò)誤提示,顯示了301 網(wǎng)站有設(shè)定了永久重定向,
如果你和我是一樣的情況,網(wǎng)址做了https,那么請(qǐng)?jiān)趎ginx主機(jī)、zabbix監(jiān)控主機(jī)上用網(wǎng)址來(lái)訪問即可
# curl https://www.sss.com/nginxstatus Active connections: 9 server accepts handled requests 1453770 1453770 2718730 Reading: 0 Writing: 4 Waiting: 5注:
Activeconnections:對(duì)后端發(fā)起的活動(dòng)連接數(shù);
server accepts :nginx 總共處理了1453770個(gè)連接;
handled:成功創(chuàng)建了1453770次握手;
requests:總共處理了2718730個(gè)請(qǐng)求。
Reading:nginx讀取客戶端的header數(shù);
Writing: nginx 返回給客戶端的header數(shù);
Waiting: nginx 請(qǐng)求處理完成,正在等待下一請(qǐng)求指令的連接。
在上面的準(zhǔn)備工作完了以后,接下來(lái),我們就要開始在nginx的那臺(tái)機(jī)器上編輯一個(gè)可以讓zabbix服務(wù)器獲取到數(shù)據(jù)的腳本
注:因?yàn)槲业木W(wǎng)站做了https,所以不是像別人一樣直接訪問IP和端口就可以了,我就直接訪問網(wǎng)址即可
# vim /data0/zabbix/scripts/nginx_status.sh #!/bin/bash # Script is userd to fetch nginx statuses for zabbix monitoring systems # Set Variables BKUP_DATE=`/bin/date +%Y%m%d` LOG="/data0/zabbix/log/webstatus.log" HOST=www.sss.com export HOST # Function used to check the process of nginx function ping { ps -ef |grep nginx | wc -l } # Functions to return nginx stats function active { /usr/bin/curl "https://$HOST/nginxstatus" 2>/dev/null| grep 'Active' | awk '{print $NF}' } function reading { /usr/bin/curl "https://$HOST/nginxstatus" 2>/dev/null| grep 'Reading' | awk '{print $2}' } function writing { /usr/bin/curl "https://$HOST/nginxstatus" 2>/dev/null| grep 'Writing' | awk '{print $4}' } function waiting { /usr/bin/curl "https://$HOST/nginxstatus" 2>/dev/null| grep 'Waiting' | awk '{print $6}' } function accepts { /usr/bin/curl "https://$HOST/nginxstatus" 2>/dev/null| awk NR==3 | awk '{print $1}' } function handled { /usr/bin/curl "https://$HOST/nginxstatus" 2>/dev/null| awk NR==3 | awk '{print $2}' } function requests { /usr/bin/curl "https://$HOST/nginxstatus" 2>/dev/null| awk NR==3 | awk '{print $3}' } # Run the requested function $1#上面是根據(jù)我的情況設(shè)定的,當(dāng)然還有其他更簡(jiǎn)潔的方式,但因?yàn)榭梢詫?shí)現(xiàn)想要的功能,所以就先不進(jìn)行更改了。
賦予腳本可執(zhí)行權(quán)限
# chmod +x nginx_status.sh將腳本更改至zabbix用戶和群組管理
# chown zabbix:zabbix nginx_status.sh# ll nginx_status.sh -rwxr-xr-x 1 zabbix zabbix 1168 Jun 27 13:58 nginx_status.sh在本地查看下你的設(shè)定是否可以出結(jié)果,不然出錯(cuò),卻沒有發(fā)現(xiàn),后面可能就沒有辦法收取到數(shù)據(jù),也可以及時(shí)排錯(cuò)。
# /usr/bin/curl "https://www.sss.com/nginxstatus" 2>/dev/null| grep 'Active' | awk '{print $NF}' 12上面數(shù)據(jù)一個(gè)個(gè)試過,如果可以像上面一樣能出數(shù)據(jù),說(shuō)明沒有問題。那你就可以到zabbix客戶端去添加Nginx服務(wù)的模塊獲取設(shè)定
# grep -v "^[#;]" /data0/zabbix/etc/zabbix_agentd.conf | grep -v "^$" LogFile=/tmp/zabbix_agentd.log Server=10.60.0.71 ##zabbix server監(jiān)控主機(jī)的IP地址 ServerActive=10.60.0.71 ##zabbix server監(jiān)控主機(jī)的IP地址 Hostname=10.60.0.163 ##zabbix client 即本機(jī)nginx的IP地址 UnsafeUserParameters=1 ##默認(rèn)情況下可能沒有開啟,那么你就把前面的注釋去掉即可那么在zabbix_agentd.conf里隨便找個(gè)位置添加下列設(shè)定即可,我是放在了UnsafeUserParameters下面。
# vim /data0/zabbix/etc/zabbix_agentd.conf UserParameter=nginx.accepts,/data0/zabbix/scripts/nginx_status.sh accepts UserParameter=nginx.handled,/data0/zabbix/scripts/nginx_status.sh handled UserParameter=nginx.requests,/data0/zabbix/scripts/nginx_status.sh requests UserParameter=nginx.connections.active,/data0/zabbix/scripts/nginx_status.sh active UserParameter=nginx.connections.reading,/data0/zabbix/scripts/nginx_status.sh reading UserParameter=nginx.connections.writing,/data0/zabbix/scripts/nginx_status.sh writing UserParameter=nginx.connections.waiting,/data0/zabbix/scripts/nginx_status.sh waiting重啟下zabbix agent服務(wù),讓我們剛剛的配置設(shè)定生效
# pkill -9 zabbix_agentd # /data0/zabbix/sbin/zabbix_agentd現(xiàn)在關(guān)于zabbix client端的設(shè)定都已經(jīng)完畢。轉(zhuǎn)站zabbix server監(jiān)控主機(jī)
首先測(cè)試zabbix server是否可以通過zabbix_get來(lái)獲取到zabbix client端Nginx服務(wù)的數(shù)據(jù)
# /usr/local/zabbix/bin/zabbix_get -s 10.60.0.163 -p 10050 -k "nginx.accepts" 1422577# /usr/local/zabbix/bin/zabbix_get -s 10.60.0.163 -p 10050 -k "nginx.handled" 1422800# /usr/local/zabbix/bin/zabbix_get -s 10.60.0.163 -p 10050 -k "nginx.requests" 2654085# /usr/local/zabbix/bin/zabbix_get -s 10.60.0.163 -p 10050 -k "nginx.connections.active" 17# /usr/local/zabbix/bin/zabbix_get -s 10.60.0.163 -p 10050 -k "nginx.connections.reading" 0# /usr/local/zabbix/bin/zabbix_get -s 10.60.0.163 -p 10050 -k "nginx.connections.writing" 3# /usr/local/zabbix/bin/zabbix_get -s 10.60.0.163 -p 10050 -k "nginx.connections.waiting" 9從上面上看,Nginx服務(wù)被監(jiān)控項(xiàng)都是沒有問題的。
在網(wǎng)上搜索到適合你用Nginx status的zabbix模板,然后把模板導(dǎo)入到zabbix web內(nèi),下面是我在自己的zabbix web上匯出的Nginx status的模板。如果覺得合適,也可以在文章最下方下載我的模板。
<?xml version="1.0" encoding="UTF-8" ?> - <zabbix_export> <version>2.0</version> <date>2017-06-27T13:30:39Z</date> - <groups> - <group> <name>Freetrade</name> </group> </groups> - <templates> - <template> <template>Nginx Status</template> <name>Nginx Status</name> - <groups> - <group> <name>Freetrade</name> </group> </groups> - <applications> - <application> <name>Nginx</name> </application> </applications> - <items> - <item> <name>Nginx Accepts</name> <type>7</type> <snmp_community /> <multiplier>0</multiplier> <snmp_oid /> <key>nginx.accepts</key> <delay>30</delay> <history>365</history> <trends>365</trends> <status>0</status> <value_type>3</value_type> <allowed_hosts>localhost</allowed_hosts> <units /> <delta>0</delta> <snmpv3_contextname /> <snmpv3_securityname /> <snmpv3_securitylevel>0</snmpv3_securitylevel> <snmpv3_authprotocol>0</snmpv3_authprotocol> <snmpv3_authpassphrase /> <snmpv3_privprotocol>0</snmpv3_privprotocol> <snmpv3_privpassphrase /> <formula>0</formula> <delay_flex /> <params /> <ipmi_sensor /> <data_type>0</data_type> <authtype>0</authtype> <username /> <password /> <publickey /> <privatekey /> <port /> <description /> <inventory_link>0</inventory_link> - <applications> - <application> <name>Nginx</name> </application> </applications> <valuemap /> </item> - <item> <name>Nginx Connections Active</name> <type>7</type> <snmp_community /> <multiplier>0</multiplier> <snmp_oid /> <key>nginx.connections.active</key> <delay>30</delay> <history>365</history> <trends>365</trends> <status>0</status> <value_type>3</value_type> <allowed_hosts>localhost</allowed_hosts> <units /> <delta>0</delta> <snmpv3_contextname /> <snmpv3_securityname /> <snmpv3_securitylevel>0</snmpv3_securitylevel> <snmpv3_authprotocol>0</snmpv3_authprotocol> <snmpv3_authpassphrase /> <snmpv3_privprotocol>0</snmpv3_privprotocol> <snmpv3_privpassphrase /> <formula>0</formula> <delay_flex /> <params /> <ipmi_sensor /> <data_type>0</data_type> <authtype>0</authtype> <username /> <password /> <publickey /> <privatekey /> <port /> <description /> <inventory_link>0</inventory_link> - <applications> - <application> <name>Nginx</name> </application> </applications> <valuemap /> </item> - <item> <name>Nginx Connections Reading</name> <type>7</type> <snmp_community /> <multiplier>0</multiplier> <snmp_oid /> <key>nginx.connections.reading</key> <delay>30</delay> <history>365</history> <trends>365</trends> <status>0</status> <value_type>3</value_type> <allowed_hosts>localhost</allowed_hosts> <units /> <delta>0</delta> <snmpv3_contextname /> <snmpv3_securityname /> <snmpv3_securitylevel>0</snmpv3_securitylevel> <snmpv3_authprotocol>0</snmpv3_authprotocol> <snmpv3_authpassphrase /> <snmpv3_privprotocol>0</snmpv3_privprotocol> <snmpv3_privpassphrase /> <formula>0</formula> <delay_flex /> <params /> <ipmi_sensor /> <data_type>0</data_type> <authtype>0</authtype> <username /> <password /> <publickey /> <privatekey /> <port /> <description /> <inventory_link>0</inventory_link> - <applications> - <application> <name>Nginx</name> </application> </applications> <valuemap /> </item> - <item> <name>Nginx Connections Waiting</name> <type>7</type> <snmp_community /> <multiplier>0</multiplier> <snmp_oid /> <key>nginx.connections.waiting</key> <delay>30</delay> <history>365</history> <trends>365</trends> <status>0</status> <value_type>3</value_type> <allowed_hosts>localhost</allowed_hosts> <units /> <delta>0</delta> <snmpv3_contextname /> <snmpv3_securityname /> <snmpv3_securitylevel>0</snmpv3_securitylevel> <snmpv3_authprotocol>0</snmpv3_authprotocol> <snmpv3_authpassphrase /> <snmpv3_privprotocol>0</snmpv3_privprotocol> <snmpv3_privpassphrase /> <formula>0</formula> <delay_flex /> <params /> <ipmi_sensor /> <data_type>0</data_type> <authtype>0</authtype> <username /> <password /> <publickey /> <privatekey /> <port /> <description /> <inventory_link>0</inventory_link> - <applications> - <application> <name>Nginx</name> </application> </applications> <valuemap /> </item> - <item> <name>Nginx Connections Writing</name> <type>7</type> <snmp_community /> <multiplier>0</multiplier> <snmp_oid /> <key>nginx.connections.writing</key> <delay>30</delay> <history>365</history> <trends>365</trends> <status>0</status> <value_type>3</value_type> <allowed_hosts>localhost</allowed_hosts> <units /> <delta>0</delta> <snmpv3_contextname /> <snmpv3_securityname /> <snmpv3_securitylevel>0</snmpv3_securitylevel> <snmpv3_authprotocol>0</snmpv3_authprotocol> <snmpv3_authpassphrase /> <snmpv3_privprotocol>0</snmpv3_privprotocol> <snmpv3_privpassphrase /> <formula>0</formula> <delay_flex /> <params /> <ipmi_sensor /> <data_type>0</data_type> <authtype>0</authtype> <username /> <password /> <publickey /> <privatekey /> <port /> <description /> <inventory_link>0</inventory_link> - <applications> - <application> <name>Nginx</name> </application> </applications> <valuemap /> </item> - <item> <name>Nginx Handled</name> <type>7</type> <snmp_community /> <multiplier>0</multiplier> <snmp_oid /> <key>nginx.handled</key> <delay>30</delay> <history>365</history> <trends>365</trends> <status>0</status> <value_type>3</value_type> <allowed_hosts>localhost</allowed_hosts> <units /> <delta>0</delta> <snmpv3_contextname /> <snmpv3_securityname /> <snmpv3_securitylevel>0</snmpv3_securitylevel> <snmpv3_authprotocol>0</snmpv3_authprotocol> <snmpv3_authpassphrase /> <snmpv3_privprotocol>0</snmpv3_privprotocol> <snmpv3_privpassphrase /> <formula>0</formula> <delay_flex /> <params /> <ipmi_sensor /> <data_type>0</data_type> <authtype>0</authtype> <username /> <password /> <publickey /> <privatekey /> <port /> <description /> <inventory_link>0</inventory_link> - <applications> - <application> <name>Nginx</name> </application> </applications> <valuemap /> </item> - <item> <name>Nginx Requests</name> <type>7</type> <snmp_community /> <multiplier>0</multiplier> <snmp_oid /> <key>nginx.requests</key> <delay>30</delay> <history>365</history> <trends>365</trends> <status>0</status> <value_type>3</value_type> <allowed_hosts>localhost</allowed_hosts> <units /> <delta>0</delta> <snmpv3_contextname /> <snmpv3_securityname /> <snmpv3_securitylevel>0</snmpv3_securitylevel> <snmpv3_authprotocol>0</snmpv3_authprotocol> <snmpv3_authpassphrase /> <snmpv3_privprotocol>0</snmpv3_privprotocol> <snmpv3_privpassphrase /> <formula>0</formula> <delay_flex /> <params /> <ipmi_sensor /> <data_type>0</data_type> <authtype>0</authtype> <username /> <password /> <publickey /> <privatekey /> <port /> <description /> <inventory_link>0</inventory_link> - <applications> - <application> <name>Nginx</name> </application> </applications> <valuemap /> </item> </items> <discovery_rules /> <macros /> <templates /> <screens /> </template> </templates> - <graphs> - <graph> <name>Nginx Clients Status</name> <width>900</width> <height>200</height> <yaxismin>0.0000</yaxismin> <yaxismax>100.0000</yaxismax> <show_work_period>1</show_work_period> <show_triggers>1</show_triggers> <type>0</type> <show_legend>1</show_legend> <show_3d>0</show_3d> <percent_left>0.0000</percent_left> <percent_right>0.0000</percent_right> <ymin_type_1>0</ymin_type_1> <ymax_type_1>0</ymax_type_1> <ymin_item_1>0</ymin_item_1> <ymax_item_1>0</ymax_item_1> - <graph_items> - <graph_item> <sortorder>0</sortorder> <drawtype>0</drawtype> <color>0000EE</color> <yaxisside>0</yaxisside> <calc_fnc>2</calc_fnc> <type>0</type> - <item> <host>Nginx Status</host> <key>nginx.connections.active</key> </item> </graph_item> - <graph_item> <sortorder>1</sortorder> <drawtype>0</drawtype> <color>EE0000</color> <yaxisside>0</yaxisside> <calc_fnc>2</calc_fnc> <type>0</type> - <item> <host>Nginx Status</host> <key>nginx.connections.writing</key> </item> </graph_item> - <graph_item> <sortorder>2</sortorder> <drawtype>0</drawtype> <color>EEEE00</color> <yaxisside>0</yaxisside> <calc_fnc>2</calc_fnc> <type>0</type> - <item> <host>Nginx Status</host> <key>nginx.connections.waiting</key> </item> </graph_item> - <graph_item> <sortorder>3</sortorder> <drawtype>0</drawtype> <color>00EE00</color> <yaxisside>0</yaxisside> <calc_fnc>2</calc_fnc> <type>0</type> - <item> <host>Nginx Status</host> <key>nginx.connections.reading</key> </item> </graph_item> </graph_items> </graph> - <graph> <name>Nginx Socket Status</name> <width>900</width> <height>200</height> <yaxismin>0.0000</yaxismin> <yaxismax>100.0000</yaxismax> <show_work_period>1</show_work_period> <show_triggers>1</show_triggers> <type>0</type> <show_legend>1</show_legend> <show_3d>0</show_3d> <percent_left>0.0000</percent_left> <percent_right>0.0000</percent_right> <ymin_type_1>0</ymin_type_1> <ymax_type_1>0</ymax_type_1> <ymin_item_1>0</ymin_item_1> <ymax_item_1>0</ymax_item_1> - <graph_items> - <graph_item> <sortorder>0</sortorder> <drawtype>0</drawtype> <color>00EE00</color> <yaxisside>0</yaxisside> <calc_fnc>2</calc_fnc> <type>0</type> - <item> <host>Nginx Status</host> <key>nginx.accepts</key> </item> </graph_item> - <graph_item> <sortorder>0</sortorder> <drawtype>0</drawtype> <color>EE0000</color> <yaxisside>0</yaxisside> <calc_fnc>2</calc_fnc> <type>0</type> - <item> <host>Nginx Status</host> <key>nginx.handled</key> </item> </graph_item> - <graph_item> <sortorder>1</sortorder> <drawtype>0</drawtype> <color>EEEE00</color> <yaxisside>0</yaxisside> <calc_fnc>2</calc_fnc> <type>0</type> - <item> <host>Nginx Status</host> <key>nginx.requests</key> </item> </graph_item> </graph_items> </graph> </graphs> </zabbix_export>首先你要先在zabbix web端創(chuàng)建一個(gè)空的templates即模板如下圖:
"組態(tài)--模板"-->到右上角"創(chuàng)建模板",填入你想要的模板名稱,以及所屬于該模板的主機(jī),最后保存
把你下載好并修改成適合你的模板匯入到原創(chuàng)建好的空templates內(nèi),當(dāng)然只要導(dǎo)入成功的話,你可以后期進(jìn)templates去修改成適合你的。
選擇右上角的"匯入"--"選擇文件"--"匯入"
要出現(xiàn)匯入成功的提示,才說(shuō)明你的模板是合適的,但是合適不一定有用哦
然后把你要的監(jiān)控的Nginx主機(jī)納入到模板上去,再然后到被監(jiān)控的Nginx主機(jī)里去查看,該模塊是否被連結(jié)了
你應(yīng)該可以看到你的Nginx主機(jī)上多了一些圖形及項(xiàng)目,且在模板上已經(jīng)鏈接到了你設(shè)定的新模板了
如果點(diǎn)進(jìn)去看,nginx主機(jī)的監(jiān)控項(xiàng)目中,Nginx服務(wù)相關(guān)的監(jiān)控項(xiàng)目為Zabbix端點(diǎn)代理程式(主動(dòng)式)哦
當(dāng)然如果你沒有導(dǎo)入模板成功,那你就老老實(shí)實(shí)一個(gè)個(gè)創(chuàng)建吧,不過也很簡(jiǎn)單啦!一步一步來(lái)就好了,多做加深印象,還便于理解
先建立新模板
在新建模板里增加一個(gè)應(yīng)用集
添加監(jiān)控項(xiàng)進(jìn)入新建模板,添加的內(nèi)容一項(xiàng)一項(xiàng)地加,大致基本相同,唯一不同處是鍵值和名稱
增加圖形監(jiān)控,到這里,只要你把監(jiān)控項(xiàng)目創(chuàng)建好,在圖形監(jiān)控只要選擇你要呈現(xiàn)圖形的監(jiān)控項(xiàng)目即可
到監(jiān)控主機(jī)里進(jìn)模板連結(jié),直接選擇現(xiàn)有的模板,然后添加保存
從上面看被監(jiān)控主機(jī)已經(jīng)載入新模板且項(xiàng)目集也存在了
最后查看通過"監(jiān)測(cè)中"--"圖形"選擇被監(jiān)控主機(jī)的圖形名稱,來(lái)看看圖是否有加載Nginx Client Status,Nginx Socket Status;如果有,恭喜你,監(jiān)控設(shè)置就說(shuō)明成功了!
如果想做些告警之類的,可以在規(guī)則中設(shè)定觸發(fā)器即可了,因?yàn)榇蠹倚枨蟾鞑幌嗤?,故在此就不再多說(shuō)了。
附件:http://down.51cto.com/data/2366804另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)cdcxhl.cn,海內(nèi)外云服務(wù)器15元起步,三天無(wú)理由+7*72小時(shí)售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國(guó)服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡(jiǎn)單易用、服務(wù)可用性高、性價(jià)比高”等特點(diǎn)與優(yōu)勢(shì),專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場(chǎng)景需求。
文章名稱:Nginx服務(wù)納入到zabbix監(jiān)控-創(chuàng)新互聯(lián)
URL標(biāo)題:http://jinyejixie.com/article48/dhochp.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供用戶體驗(yàn)、網(wǎng)站建設(shè)、做網(wǎng)站、虛擬主機(jī)、關(guān)鍵詞優(yōu)化、建站公司
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來(lái)源: 創(chuàng)新互聯(lián)
猜你還喜歡下面的內(nèi)容