In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
Because the leader proposed to look at the server traffic map several times a day, we started to take screenshots at 9: 00 this morning, with more than a dozen servers and 12-hour traffic maps at a specified time. After screenshots, we checked them several times. First, we were afraid of choosing the wrong host. Second, we were afraid of getting the wrong time period. Use zabbix for a short time, always feel very awkward, easy to make mistakes. Plus the statistics of a little other things were done in the middle, and it was already after 10:00 when the e-mail was sent.
If it goes on like this, I'm afraid it will affect the official career. If there is anything else, it is estimated that the leader can read the report while having lunch. I have no choice but to eat dirt.
There are many online tutorials, written by python and perl, because there is no basis in this aspect for the time being, so there is no solution to copy and run the error report. Ample food and clothing by working with our own hands.
The following is the chrome browser + Zabbix 2.4.x
Text:
Preparatory work:
Log in to the browser to capture the package:
(slightly, here you need to capture the post request package for logging in to zabbix: request=&name=admin&password=zabbix&autologin=1&enter=Sign+in)
Graphid and traffic graph address
Graphid:
Graphic ID (literal translation), do not know how to define, popular point is a host + a monitoring point = = > > a different ID
Process:
1.Monitoring-Dashboard-Graphs
two。 Select the corresponding host and the corresponding monitoring item
3. Right-click on the traffic graph to check
4. Find the key words
5. Get: chart2.php?graphid=963&period=3600&stime=20170616192202&updateProfile=1&profileIdx=web.screens&profileIdx2=963&sid=2eaa005d53dd3ea0&width=1222
Graphid=963
Traffic graph address: http://192.168.0.162/zabbix/chart2.php?graphid=963&period=3600&width=1222
Period is a time period, which is fine without adding it, but it is best to specify it manually.
Width is the width of the picture, you don't have to add it, and the picture will be a little narrower.
The remaining parameters have not been studied too much, and some or no differences have been found temporarily, so they are omitted. If you need to find all graphid, it is recommended to find it through the database.
Script:
#! / bin/bash## zabbix login address, zabbix login user LOGURL= "http://192.168.0.162/zabbix/index.php"ZABBIX_USER="admin"ZABBIX_PASS="zabbix"GRAPHID=963## time period 12HPERIOD=43200## request address save cookie curl-L-c cookie.txt-- user-agent Mozilla/4.0-d "request=&$ZABBIX_USER&password=$ZABBIX_PASS&autologin=1&enter=Sign+in" $LOGURL## picture URL address format URL= "http://192.168.0.162/zabbix/chart2.php?graphid=$GRAPHID&period=$PERIOD&width=1222"## with cookie request picture URL, and save curl-c cookie.txt-b cookie.txt-- user-agent Mozilla/4.0$ URL > / home/zabbix_$GRAPHID.png
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 276
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.