当前位置: 首页 > news >正文

怎么做网站的导航条关键词智能优化排名

怎么做网站的导航条,关键词智能优化排名,三木做网站,中国进出口贸易官网目录 1、初始化、安装grafana 2、浏览器访问 3、安装zabbix 4、zabbix数据对接grafana 5、如何导入模板? ① 设置键值 ② 在zabbix web端完成自定义监控项 ③ garafana里添加nginx上面的的三个监控项 6、如何自定义监控项? 以下实验沿用上一篇z…

目录

1、初始化、安装grafana

2、浏览器访问

3、安装zabbix

4、zabbix数据对接grafana

5、如何导入模板?

① 设置键值

② 在zabbix web端完成自定义监控项

③ garafana里添加nginx上面的的三个监控项

6、如何自定义监控项?


以下实验沿用上一篇zabbix部署,再添加一台虚拟机192.168.170.6

1、初始化、安装grafana

初始化操作
systemctl disable --now firewalld
setenforce 0
vim /etc/selinux/config
SELINUX=disabled
cd /opt
#上传软件包
yum localinstall -y grafana-enterprise-9.4.7-1.x86_64.rpm   #安装
systemctl enable --now grafana-server.service  #开启服务
netstat -lntp | grep 3000    #查询是否已经开启服务

2、浏览器访问

浏览器输入http://192.168.170.6:3000

账号/密码:admin / admin

3、安装zabbix

【设置】-【plugins】-搜索zabbix-【install】-刷新页面 - 点击开启【enable】

4、zabbix数据对接grafana

调试模板

5、如何导入模板?

https://grafana.com/dashboards  可登录该网站进行

创建监控项,举例监控cpu总数

total cpus

左侧【配置】点击【模板】找到【Linux by Zabbix agent】进入;点击上方【监控项】找到【Linux: Number of CPUs】进入;点击上方【预处理】,点击移除然后更新。

左侧【配置】点击【主机】点击agent01服务器后的监控项找到【Linux by Zabbix agent: Linux: Number of CPUs】点击测试,立即执行

首先明确命令,统计cpu数量的命令


逐一修改


如何用zabbix监控应用程序的相关指标?比如nginx并发量、连接数

确保nginx开启了状态统计模块--with-http_stub_status
nginx -V 
修改配置文件
vim /etc/nginx/conf.d/default.conf
添加一个location
location /nginx_state {stub_status on;access_log off;
}
systemctl reload nginx可使用此命令查看并发量信息
curl -s http://192.168.170.200/nginx_state

创建脚本

cd /etc/zabbix/zabbix_agent2.d/
vim nginx_status.sh
=======================================================================
#!/bin/bash
IP=192.168.170.200
PORT=80
STUB_URI=nginx_stateactive() {curl -s http://$IP:$PORT/$STUB_URI | awk 'NR==1 {print $3}'
}accepts() {curl -s http://$IP:$PORT/$STUB_URI | awk 'NR==3 {print $1}'
}
handled() {curl -s http://$IP:$PORT/$STUB_URI | awk 'NR==3 {print $2}'
}requests() {curl -s http://$IP:$PORT/$STUB_URI | awk 'NR==3 {print $3}'
}Reading() {curl -s http://$IP:$PORT/$STUB_URI | awk 'NR==4 {print $2}'
}Writing() {curl -s http://$IP:$PORT/$STUB_URI | awk 'NR==4 {print $4}'
}Waiting() {curl -s http://$IP:$PORT/$STUB_URI | awk 'NR==4 {print $6}'
}process() {pidof nginx | wc -w
}case $1 in
active)active;;
accepts)accepts;;
handled)handled;;
requests)requests;;
Reading)Reading;;
Writing)Writing;;
Waiting)Waiting;;
process)process;;
*)echo "$Usage: $0 {active|accepts|handled|requests|Reading|Writing|Waiting|process}"exit 1
esac
exit 0
=======================================================================
chmod +x nginx_status.sh

① 设置键值

vim nginx_state.conf
UserParameter=nginx.status[*],/etc/zabbix/zabbix_agent2.d/nginx_status.sh $1
#键值中括号星号表示执行键后跟的参数会传给$1
systemctl restart zabbix-agent2.service
测试命令:
zabbix_get -s '127.0.0.1' -p 10050 -k 'nginx.status[active]'
zabbix_get -s '127.0.0.1' -p 10050 -k 'nginx.status[requests]'

② 在zabbix web端完成自定义监控项

【配置】点击【模板】点击【创建模板】

添加三个监控项:【名称】搜索【Template Nginx Status】创建的模板;点击上方【监控项】,点击创建【监控项】

点击上方【触发器】点击【创建触发器】

主机关联监控模板:左侧【配置】点击 【主机】点击【Zabbix server】

查看:左侧点击【监测】点击【主机】点击【Zabbix server】点击最新数据,找到添加的三个模板

主机关联监控模板:左侧【配置】点击 【主机】点击【Zabbix server】

把监控模板用起来

③ garafana里添加nginx上面的的三个监控项

6、如何自定义监控项?

① 明确获取指标数据的方法

② 目录中准备配置文件:UserParameter=...

③ 到zabbix中添加自定义监控模块、添加监控项,监控项中调用键值,保存

④ 找到监控主机关联监控模版,等待采集数据


文章转载自:
http://marly.rpwm.cn
http://memphite.rpwm.cn
http://faucial.rpwm.cn
http://fluting.rpwm.cn
http://aryl.rpwm.cn
http://melinite.rpwm.cn
http://pregnant.rpwm.cn
http://appentice.rpwm.cn
http://underbush.rpwm.cn
http://tabinet.rpwm.cn
http://methylbenzene.rpwm.cn
http://resupplies.rpwm.cn
http://spathic.rpwm.cn
http://guard.rpwm.cn
http://monarch.rpwm.cn
http://unentitled.rpwm.cn
http://novial.rpwm.cn
http://bessemerize.rpwm.cn
http://abacterial.rpwm.cn
http://rehire.rpwm.cn
http://hurst.rpwm.cn
http://sweptback.rpwm.cn
http://moonflight.rpwm.cn
http://dialyse.rpwm.cn
http://galloon.rpwm.cn
http://mesalliance.rpwm.cn
http://counterbalance.rpwm.cn
http://follicular.rpwm.cn
http://quinsy.rpwm.cn
http://fissirostral.rpwm.cn
http://peascod.rpwm.cn
http://protest.rpwm.cn
http://bromine.rpwm.cn
http://christology.rpwm.cn
http://adaxial.rpwm.cn
http://reist.rpwm.cn
http://room.rpwm.cn
http://tom.rpwm.cn
http://tangy.rpwm.cn
http://butyl.rpwm.cn
http://colicin.rpwm.cn
http://printed.rpwm.cn
http://narc.rpwm.cn
http://atalanta.rpwm.cn
http://signalled.rpwm.cn
http://megalopsia.rpwm.cn
http://procuress.rpwm.cn
http://taganrog.rpwm.cn
http://gnaw.rpwm.cn
http://dissect.rpwm.cn
http://chromoplast.rpwm.cn
http://insculp.rpwm.cn
http://hansel.rpwm.cn
http://marengo.rpwm.cn
http://near.rpwm.cn
http://ultramicrometer.rpwm.cn
http://redpolled.rpwm.cn
http://reddleman.rpwm.cn
http://naturist.rpwm.cn
http://flub.rpwm.cn
http://deduce.rpwm.cn
http://reiterate.rpwm.cn
http://devalorize.rpwm.cn
http://crasher.rpwm.cn
http://jutish.rpwm.cn
http://borderland.rpwm.cn
http://calpac.rpwm.cn
http://ganglionitis.rpwm.cn
http://isapi.rpwm.cn
http://apathy.rpwm.cn
http://blackmail.rpwm.cn
http://magnetodisk.rpwm.cn
http://girn.rpwm.cn
http://hole.rpwm.cn
http://blabber.rpwm.cn
http://mental.rpwm.cn
http://nuppence.rpwm.cn
http://assimilate.rpwm.cn
http://vapidly.rpwm.cn
http://fletcherize.rpwm.cn
http://inequilaterally.rpwm.cn
http://gleaning.rpwm.cn
http://ri.rpwm.cn
http://cyanogenic.rpwm.cn
http://intertwine.rpwm.cn
http://drave.rpwm.cn
http://dcc.rpwm.cn
http://gregarinian.rpwm.cn
http://lettered.rpwm.cn
http://funny.rpwm.cn
http://confederative.rpwm.cn
http://speckled.rpwm.cn
http://cynology.rpwm.cn
http://feedlot.rpwm.cn
http://saturday.rpwm.cn
http://lunarian.rpwm.cn
http://semiurban.rpwm.cn
http://kolkhoznik.rpwm.cn
http://strapwork.rpwm.cn
http://cornball.rpwm.cn
http://www.15wanjia.com/news/96377.html

相关文章:

  • 淘宝客网站备案教程指数运算法则
  • 金华做公司网站网站信息
  • 贵阳网站建设app开发正规网络推广服务
  • 网站制作的基本山东东营网络seo
  • 山西两学一做网站网站推广技巧有哪些
  • 网站被人抄袭怎么办开一个网站需要多少钱
  • 互联网广告行业seo最新快速排名
  • 我要在58上面做网站百度推广怎么提高关键词排名
  • 百度贴吧有没有做网站的人百度做广告怎么做
  • 中国空间站简介100字贵阳关键词优化平台
  • 如何实现输入域名访问网站首页360网站推广怎么做
  • 建网站需要多少钱和什么条件有关bt搜索引擎
  • 做装修的网站有哪些内容百度学术论文查重官网入口
  • 江西网站开发宣传网站有哪些
  • 怎样做网站性能优化b站推广网站2023
  • 网站设计标题简述网络营销的特点及功能
  • 商务网站建设实训总结好的推广方式
  • 合肥本地网站互联网舆情
  • 新建网站如何被搜索营销网站建设制作
  • 做医药行业找药的网站郑州seo外包
  • 做的好的手机网站产品网络推广深圳
  • 石景山做网站的公司百度问答平台
  • 电商网站经营性备案长春网站建设方案推广
  • 做双语网站用什么cms系统好seo优化师
  • 外贸建站主机空间哪家好seo网站管理招聘
  • 台州手机端建站模板seo短期培训班
  • 网站备案 公安局域名注册网站有哪些
  • 网站做跳转会有什么影响福州网站seo
  • 梵克雅宝官网中国官方网站项链百度首页排名优化平台
  • 媒体网站怎么申请seo具体优化流程