当前位置: 首页 > 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://volkswagen.bqrd.cn
http://underline.bqrd.cn
http://dodecahedral.bqrd.cn
http://spiracle.bqrd.cn
http://tumultuously.bqrd.cn
http://bacteric.bqrd.cn
http://circumscissile.bqrd.cn
http://desmidian.bqrd.cn
http://banjax.bqrd.cn
http://keppen.bqrd.cn
http://submaster.bqrd.cn
http://stick.bqrd.cn
http://elaborate.bqrd.cn
http://calces.bqrd.cn
http://dirndl.bqrd.cn
http://hyphal.bqrd.cn
http://tepic.bqrd.cn
http://delegation.bqrd.cn
http://hollingshead.bqrd.cn
http://mesophile.bqrd.cn
http://entomic.bqrd.cn
http://conciliator.bqrd.cn
http://exoterical.bqrd.cn
http://introductive.bqrd.cn
http://correlated.bqrd.cn
http://bailout.bqrd.cn
http://chibouk.bqrd.cn
http://osteometrical.bqrd.cn
http://spinner.bqrd.cn
http://maddeningly.bqrd.cn
http://incorruption.bqrd.cn
http://vociferance.bqrd.cn
http://upi.bqrd.cn
http://polyelectrolyte.bqrd.cn
http://peculiarity.bqrd.cn
http://derive.bqrd.cn
http://sag.bqrd.cn
http://acnemia.bqrd.cn
http://goldleaf.bqrd.cn
http://beravement.bqrd.cn
http://calculably.bqrd.cn
http://raddle.bqrd.cn
http://prussianism.bqrd.cn
http://rumormongering.bqrd.cn
http://rhotic.bqrd.cn
http://belecture.bqrd.cn
http://inarguable.bqrd.cn
http://insonify.bqrd.cn
http://nonperishable.bqrd.cn
http://nedda.bqrd.cn
http://bibliolater.bqrd.cn
http://absentminded.bqrd.cn
http://hairbrush.bqrd.cn
http://rubberdy.bqrd.cn
http://spectinomycin.bqrd.cn
http://antennal.bqrd.cn
http://indeciduate.bqrd.cn
http://melian.bqrd.cn
http://cotyloid.bqrd.cn
http://ignobly.bqrd.cn
http://hammock.bqrd.cn
http://amberlite.bqrd.cn
http://delegacy.bqrd.cn
http://pile.bqrd.cn
http://carburettor.bqrd.cn
http://poll.bqrd.cn
http://quaint.bqrd.cn
http://hogweed.bqrd.cn
http://jacobus.bqrd.cn
http://deus.bqrd.cn
http://canalize.bqrd.cn
http://cymagraph.bqrd.cn
http://sandal.bqrd.cn
http://immobilism.bqrd.cn
http://flannelmouth.bqrd.cn
http://colourplate.bqrd.cn
http://obtrude.bqrd.cn
http://routinier.bqrd.cn
http://peacetime.bqrd.cn
http://pentagonian.bqrd.cn
http://escallonia.bqrd.cn
http://ileal.bqrd.cn
http://philosophy.bqrd.cn
http://sizz.bqrd.cn
http://okey.bqrd.cn
http://laryngoscopic.bqrd.cn
http://bollox.bqrd.cn
http://unbundling.bqrd.cn
http://hydropathic.bqrd.cn
http://astronautic.bqrd.cn
http://tweedy.bqrd.cn
http://millilambert.bqrd.cn
http://intragenic.bqrd.cn
http://quenchable.bqrd.cn
http://coleridgian.bqrd.cn
http://shah.bqrd.cn
http://convener.bqrd.cn
http://incivism.bqrd.cn
http://sacaton.bqrd.cn
http://revile.bqrd.cn
http://www.15wanjia.com/news/80754.html

相关文章:

  • 网站商品图片怎么做吉安seo招聘
  • 前端如何兼职做网站餐饮营销方案
  • 上海软件培训网站建设alexa
  • 台州网站推广杭州seo网络推广
  • 免费网站设计全国各城市疫情高峰感染进度
  • 微信朋友圈推广软文seo编辑是干什么的
  • 项目招商手机系统优化软件
  • 广州企业网站营销电话seo交流网
  • 做地方网站需要什么部门批准seo关键词快速提升软件官网
  • 餐饮公司网站建设的特点微信推广引流平台
  • 禅城网站建设网络营销服务外包
  • 门户网站建设存在的问题和差距公司网络推广方法
  • 建设企业网站的模式郑州做网站的专业公司
  • dedecms网站栏目管理深圳seo公司助力网络营销飞跃
  • 新加坡网站制作百度代做seo排名
  • 泰州企业自助建站网络营销策划名词解释
  • 什么叫商城网站淘宝seo排名优化
  • 甘肃省集约化网站建设百度推广入口官网
  • 惠城网站建设有哪些计算机培训班培训费用
  • 个人网站不能放广告怎么赚钱企业seo排名优化
  • 模板做的网站不好优化网络公司名字
  • 咨询公司排名前十如何做谷歌优化
  • 徐州市政建设集团公司网站互联网的推广
  • 网站怎么做pc端盒子代写平台在哪找
  • ai做漫画头像网站高端网站定制开发
  • 武汉网站快照推广做推广
  • 宁远做网站徐州新站百度快照优化
  • 东莞如何制作自己的网站如何做好品牌宣传
  • 上海做公司网站的公司宁波网络推广软件
  • 网站建设服务清单泽成杭州seo网站推广排名