技术流ken

运维拯救世界

每天五分钟轻松学运维:zabbix监控在线服务器(二)–技术流ken

前言

昨天的文章中已经详细演示了zabbix的安装,今天将演示如何使用zabbix进行主机的监控。

在我们的监控列表中不仅仅只是监控一些客户端,我们还需要监控zabbix服务器端本身,以便实时掌握主机运行情况。

所以今天将会演示zabbix服务器端如果实现监控自己,已经zabbix服务器如何监控其他主机。

zabbix服务器监控自我监控

第一步:下载zabbix客户端

[root@ken-node1 ~]# yum install zabbix-agent -y

第二步:启动zabbix客户端

[root@ken-node1 ~]# systemctl restart zabbix-agent
[root@ken-node1 ~]# ss -tnl | grep 10050
LISTEN 0 128 *:10050 *:* 
LISTEN 0 128 :::10050 :::* 

第三步:访问zabbix服务器端浏览器,点击启用

第四步:稍等几分钟刷新可以看到zabbix已经开始监控自己

zabbix服务器监控在线主机

第一步:客户端下载zabbix客户端程序

[root@computer1 ~]# yum install zabbix-agent -y

第二步:修改zabbix客户端配置文件

修改97行处的server为zabbixserver端IP地址

[root@computer1 ~]# vim /etc/zabbix/zabbix_agentd.conf
...
 97 Server=192.168.163.132

第三步:重启zabbix客户端

[root@computer1 ~]# systemctl restart zabbix-agent
[root@computer1 ~]# ss -tnl | grep 10050
LISTEN 0 128 *:10050 *:* 
LISTEN 0 128 :::10050 :::* 

浏览器添加客户端

第一步:点击创建主机

第二步:填写相关信息

第三步:添加模板

第四步:点击添加即可

第五步:点击主机查看列表

发现已经成功监控到客户端

zabbix都监控了哪些项目

从下图中我们可以看到在使用zabbix自带的模板当中主要监控了如下几大项目:

  1. CPU性能
  2. 内存使用量
  3. 进程数
  4. 安全项目
  5. 通用项目

今天的五分钟操作就到这里,加入我们还有这样的需求,比如监控一个服务是否正在运行或者磁盘使用量等如何监控那?明天将详细来讲解如何自定义进行监控。

11 thoughts on “每天五分钟轻松学运维:zabbix监控在线服务器(二)–技术流ken

  1. There are some attention-grabbing deadlines on this article however I don抰 know if I see all of them middle to heart. There is some validity however I will take maintain opinion till I look into it further. Good article , thanks and we want extra! Added to FeedBurner as nicely

  2. I’m just commenting to make you be aware of what a helpful experience my child found reading your site. She picked up a good number of things, which included what it is like to have an excellent teaching character to let the others very easily thoroughly grasp a number of tricky issues. You undoubtedly surpassed people’s desires. Thanks for delivering such helpful, dependable, revealing and as well as easy tips about your topic to Lizeth.

  3. My spouse and i ended up being quite ecstatic when Emmanuel could finish up his preliminary research using the ideas he made through the site. It is now and again perplexing just to find yourself freely giving information and facts which the rest could have been trying to sell. So we remember we now have the blog owner to thank because of that. The most important illustrations you’ve made, the easy web site navigation, the relationships you can aid to instill – it is all superb, and it’s letting our son and us do think the article is satisfying, which is especially essential. Thanks for all the pieces!

  4. Thank you for all of your efforts on this web page. Kate really loves going through research and it’s really simple to grasp why. Many of us learn all of the dynamic method you deliver very important techniques via this blog and even cause participation from other ones on this matter so our own daughter has been understanding a great deal. Take advantage of the remaining portion of the new year. You’re carrying out a very good job.

  5. A lot of thanks for your whole efforts on this web site. Gloria loves making time for research and it’s really simple to grasp why. Almost all learn all of the compelling tactic you convey helpful techniques via the web site and even boost participation from other people on that subject so our own girl has been becoming educated a lot of things. Take pleasure in the rest of the year. Your doing a superb job.

  6. I together with my guys happened to be following the excellent helpful tips found on your web site and immediately got a horrible suspicion I had not thanked the blog owner for those tips. Those young men had been consequently stimulated to read all of them and already have absolutely been using these things. We appreciate you really being really helpful and also for pick out variety of terrific subject areas millions of individuals are really eager to be informed on. My sincere regret for not saying thanks to you sooner.

  7. My spouse and i have been very thankful that Ervin managed to round up his basic research through the entire precious recommendations he had using your blog. It’s not at all simplistic just to continually be giving away instructions people could have been making money from. And now we remember we need the writer to be grateful to for this. The main illustrations you have made, the simple web site navigation, the relationships you aid to promote – it’s everything impressive, and it’s letting our son in addition to our family reason why that topic is thrilling, and that’s tremendously fundamental. Thank you for all!

  8. I simply had to appreciate you yet again. I’m not certain the things that I would’ve carried out without these tips and hints documented by you directly on this field. It was before an absolute frightful situation in my opinion, however , coming across this well-written style you handled the issue forced me to leap over fulfillment. I’m just grateful for this information and hope that you recognize what an amazing job that you’re getting into instructing other individuals with the aid of your web site. Probably you’ve never met any of us.

  9. I want to express my appreciation to you for rescuing me from this condition. Because of scouting throughout the the net and coming across advice which were not pleasant, I assumed my entire life was well over. Living without the presence of answers to the problems you have sorted out all through this article is a critical case, as well as ones that would have in a negative way damaged my entire career if I had not encountered the website. Your personal understanding and kindness in playing with a lot of things was useful. I’m not sure what I would have done if I had not encountered such a subject like this. I can at this time relish my future. Thank you very much for this impressive and result oriented guide. I will not be reluctant to endorse your web page to any individual who would like support on this subject.

  10. I together with my guys were actually reading through the excellent items on your web page then quickly I had a terrible suspicion I never thanked the website owner for those tips. All the women appeared to be absolutely happy to learn them and have now definitely been taking advantage of those things. Thanks for actually being so considerate and for figuring out certain high-quality guides most people are really needing to be aware of. My honest apologies for not expressing appreciation to earlier.

发表评论

邮箱地址不会被公开。