時(shí)間:2023-06-11 17:03:01 | 來源:網(wǎng)站運(yùn)營
時(shí)間:2023-06-11 17:03:01 來源:網(wǎng)站運(yùn)營
第十五篇:zabbix使用模板監(jiān)控nginx:[root@web01 ~]# yum install -y nginx
[root@web01 ~]# vim /etc/nginx/nginx.conf..... include /etc/nginx/default.d/*.conf; location / { } location /nginx_status { stub_status; } error_page 404 /404.html; location = /404.html { }... [root@web01 ~]#
[root@web01 ~]# systemctl start nginx.service [root@web01 ~]# systemctl enable nginx.service
http://10.0.0.7/nginx_status
Active connections(活動(dòng)連接數(shù)): 2 server accepts(接受的) handled(已處理) requests(接收到的請求) 2 2 2 Reading: 0 Writing: 1 Waiting: 1
[root@web01 ~]# curl http://127.0.0.1/nginx_status
[root@web01 ~]# curl http://127.0.0.1/nginx_status 2>/dev/null|awk 'NR==1{print $NF}'。。。
[root@web01 ~]# systemctl restart zabbix-agent.service
[root@zabbix ~]# zabbix_get -s 10.0.0.7 -k nginx_status[active]
關(guān)鍵詞:模板,使用
客戶&案例
營銷資訊
關(guān)于我們
微信公眾號
版權(quán)所有? 億企邦 1997-2025 保留一切法律許可權(quán)利。