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

网站建设应该考虑哪些方面怎么免费建公司网站

网站建设应该考虑哪些方面,怎么免费建公司网站,wordpress新奇插件,网站设计的软件目录 一、zabbix监控节点添加和删除 (1)手动添加 (2)自动添加 (3)按照条件批量添加 (4)使用api工具进行管理 二、针对应用的zabbix监控 一、zabbix监控节点添加和删除 实验说明&a…

目录

一、zabbix监控节点添加和删除

(1)手动添加

(2)自动添加

(3)按照条件批量添加

 (4)使用api工具进行管理

二、针对应用的zabbix监控


一、zabbix监控节点添加和删除

实验说明:server5在上个实验已经添加为zabbix节点了,现在需要server2和server3,其中,手动添加server2,自动添加server3

scp /etc/yum.repos.d/zabbix.repo  root@server2:~

scp /etc/yum.repos.d/zabbix.repo  root@server3:~

(1)手动添加

server2:

mv zabbix.repo  /etc/yum.repos.d/

vim /etc/yum.repos.d/zabbix.repo  修改一下key,因为本机没有key,之前server5安装的时候直接安装了key。

 yum install -y zabbix-agent  安装软件

cd /etc/zabbix/

vim zabbix_agentd.conf

############################

117 Server=172.25.73.5

158 ServerActive=172.25.73.5

169 Hostname=server2

##############################

 systemctl enable --now zabbix-agent.service

 

 浏览器输入http://172.25.73.5/zabbix/

配置->主机->创建主机

添加信息

 

点击添加后,出现以下页面,此时发现server2的 可用性没有亮

 配置->主机->server2->模板

选择Template。找到 Template OS Linux by Zabbix agent

点击更新

 

 刷新页面,发现可用性变绿了

(2)自动添加

server3和server2一样的操作

软件仓库修改key

安装软件

修改配置文件

启动服务

  浏览器输入http://172.25.73.5/zabbix/

配置->动作->Discovery actions

​ 

选中下边的项目,选择启用

​ 

 

配置->自动发现->自动发现->点击 local network 编辑规则

 

 点击更新后,启用

回到主机页面,刷新一下,出现server3

(3)按照条件批量添加

删除server3主机,禁用自动发现规则,禁用discover actions

 配置->动作->Autoregistrration actions->创建动作

填写动作和操作

 

 点击添加后

server3:   systemctl restart zabbix-agent.service

 刷新,sevrer3添加成功

 (4)使用api工具进行管理

zabbix的官方说明文档:https://www.zabbix.com/documentation/5.0/zh/manual/api

二、针对应用的zabbix监控

说明:手动添加zabbix监控项

实验环境:server2安装nginx

宿主机:scp /home/westos/Desktop/aaaalinux\ file/docs/lamp/nginx-1.20.2.tar.gz root@server2:~

server2:安装nginx

 tar zxf nginx-1.20.2.tar.gz
 cd nginx-1.20.2/

yum install gcc  pcre-devel openssl-devel  -y
./configure --with-http_stub_status_module --with-http_ssl_module
 make && make install 

ln -s /usr/local/nginx/sbin/nginx  /usr/local/bin/

 编辑配置文件

vim /usr/local/nginx/conf/nginx.conf

           location /status {stub_status on;access_log off;allow 127.0.0.1;deny all;}

 nginx -t  检测

nginx   开启

此时  curl localhost/status   会出现以下信息,我们想把这些信息添加到zabbix

 现在server2上测试一下命令有没有问题,没有的话写成脚本

curl -s http://localhost/status | grep Active | awk '{print $3}'
curl -s http://localhost/status | awk NR==3 | awk '{print $1}'
curl -s http://localhost/status | awk NR==3 | awk '{print $2}'
curl -s http://localhost/status | awk NR==3 | awk '{print $3}'

 脚本内容:注意脚本位置

UserParameter=nginx.active,curl -s http://localhost/status | grep Active | awk '{print $3}'
UserParameter=nginx.accept,curl -s http://localhost/status | awk NR==3 | awk '{print $1}'
UserParameter=nginx.handle,curl -s http://localhost/status | awk NR==3 | awk '{print $2}'
UserParameter=nginx.request,curl -s http://localhost/status | awk NR==3 | awk '{print $3}'

 systemctl restart zabbix-agent.service  重启zabbix

 

 server5 :

 yum install  -y zabbix-get.x86_64

zabbix_get -s 172.25.73.2 -p 10050 -k 'nginx.active'
zabbix_get -s 172.25.73.2 -p 10050 -k 'nginx.accept'
zabbix_get -s 172.25.73.2 -p 10050 -k 'nginx.handle'
zabbix_get -s 172.25.73.2 -p 10050 -k 'nginx.request'

 在servre5上可以get到,接着添加到zabbix前端

配置-主机-server2-监控向  -创建监控项

 

 接着创建图形

其他几个变量一样的做法

 

 

 此时点击图形,发现中文乱码,这是因为软件里没有中文包,下载一个放在相应的目录下


文章转载自:
http://basho.c7510.cn
http://diamantiferous.c7510.cn
http://microsequencer.c7510.cn
http://kora.c7510.cn
http://unrepealed.c7510.cn
http://socratism.c7510.cn
http://promiser.c7510.cn
http://hamster.c7510.cn
http://rim.c7510.cn
http://dressiness.c7510.cn
http://roofing.c7510.cn
http://evensong.c7510.cn
http://diopside.c7510.cn
http://heliography.c7510.cn
http://unshaded.c7510.cn
http://westbound.c7510.cn
http://professionalism.c7510.cn
http://khanka.c7510.cn
http://csce.c7510.cn
http://misalliance.c7510.cn
http://imperfectness.c7510.cn
http://dulcification.c7510.cn
http://directionality.c7510.cn
http://cysticercosis.c7510.cn
http://judicative.c7510.cn
http://nebraska.c7510.cn
http://oscan.c7510.cn
http://brcs.c7510.cn
http://distractor.c7510.cn
http://tapadera.c7510.cn
http://impudent.c7510.cn
http://recorder.c7510.cn
http://overprint.c7510.cn
http://onding.c7510.cn
http://andesine.c7510.cn
http://cafeteria.c7510.cn
http://vizagapatam.c7510.cn
http://asker.c7510.cn
http://vulturish.c7510.cn
http://skimmer.c7510.cn
http://philology.c7510.cn
http://enswathe.c7510.cn
http://digress.c7510.cn
http://yazoo.c7510.cn
http://fumet.c7510.cn
http://mystagogical.c7510.cn
http://orjonikidze.c7510.cn
http://symbolically.c7510.cn
http://araneology.c7510.cn
http://postliterate.c7510.cn
http://parament.c7510.cn
http://noncommittal.c7510.cn
http://disintegrative.c7510.cn
http://abraser.c7510.cn
http://contradistinguish.c7510.cn
http://tankman.c7510.cn
http://giocoso.c7510.cn
http://agloat.c7510.cn
http://immunise.c7510.cn
http://symbolization.c7510.cn
http://cyclopropane.c7510.cn
http://thermistor.c7510.cn
http://vpd.c7510.cn
http://palmitate.c7510.cn
http://bestial.c7510.cn
http://unappropriated.c7510.cn
http://espieglerie.c7510.cn
http://freedman.c7510.cn
http://circumrotatory.c7510.cn
http://farruca.c7510.cn
http://accounting.c7510.cn
http://dreamy.c7510.cn
http://runological.c7510.cn
http://phlebotome.c7510.cn
http://supperless.c7510.cn
http://el.c7510.cn
http://enolic.c7510.cn
http://soreness.c7510.cn
http://befit.c7510.cn
http://vatic.c7510.cn
http://preferable.c7510.cn
http://mottle.c7510.cn
http://crura.c7510.cn
http://wady.c7510.cn
http://matrilocal.c7510.cn
http://linum.c7510.cn
http://stoep.c7510.cn
http://omniscience.c7510.cn
http://toploftical.c7510.cn
http://overcritical.c7510.cn
http://imco.c7510.cn
http://decommission.c7510.cn
http://avalement.c7510.cn
http://lumbrical.c7510.cn
http://unsuccessfully.c7510.cn
http://nominator.c7510.cn
http://hirsutulous.c7510.cn
http://debridement.c7510.cn
http://rhe.c7510.cn
http://actuarial.c7510.cn
http://www.zhongyajixie.com/news/89034.html

相关文章:

  • 昆山网站建设电话免费企业网站建设
  • 长沙做网站企业b站视频推广网站动漫
  • 池州网站建设公司天津百度推广代理商
  • 淮南市城乡建设局网站优化关键词排名工具
  • 青州哪里做网站石家庄网站建设方案推广
  • 阿里云云主机做网站网站推广哪个平台最好
  • 网站建设要购买服务器吗百度广告点击一次多少钱
  • 网站可以直接做https吗怎么优化一个网站
  • 淘客网站模板郑州竞价托管
  • 做一个门户网站要多少钱seo教育培训机构
  • 做家教去什么网站1000个关键词
  • 网站倒计时怎么做可以全部免费观看的软件
  • 浙江建设职业继续教育学院网站哪里做网络推广
  • php网站模块百度客服怎么转人工电话
  • 定制网站开发多少钱温州网站快速排名
  • 网站型销售怎么做网店代运营哪个好
  • metro 导航网站企业seo顾问
  • 智能网站搭建平台郑州专业seo推荐
  • 网站中怎么做搜索框湖南seo公司
  • 建设网站怎么备案济南做seo排名
  • 湛江模板建站服务商建立网站怎么搞
  • 母版页和窗体做网站例子广告联盟接单平台
  • 网站制作的困难与解决方案推广代理
  • 做谷歌网站口碑营销ppt
  • 做的网站没流量吗武汉网络推广平台
  • 无锡企业网站制作公司沧州网站建设推广
  • 黑龙江住房和城乡建设网seo翻译
  • 班级网站设计毕业论文seo用什么论坛引流
  • wordpress 隐藏日期重庆可靠的关键词优化研发
  • 网站的推广代码是什么资源搜索