previously found that the search for host calls Zabbix API information is not so clear, and then through the Zabbix official documents to find the desired API information, and then write an article of their own this project used in the API.#!/usr/bin/env python#Coding:utf8Im
for an average if decrease is a positive number for more than half days.#if The decrease if more than increase, maybe they has a crontab to relase space. #like this 5 4 5 4 5 4
The current remaining space/average to get the final result.
Objective:
Master the use of Python to access the Zabbix API.
In order to more "realistic" to do capacity planning.
Reference:#base from Http://wangwe
Zabbix is so popular now that personal feelings have a lot to do with Zabbix's powerful APIs, and using APIs can help us accomplish many things:
1, get related groups, host information.
2, for example, someone like to get the historical data back out of the picture.
3, add delete host, bind delete template.
4. Add Delete maintenance cycle
Here I use the pipy provided by the Zabbix_client module, so that we do not have to write the login functio
Zabbix's screen function allows graph to be aggregated and displayed uniformly,Our requirement is to aggregate the same item of the same host group, such as a screen showing the memory usage of all hosts in the same set, to achieve a similar ganglia effect,Because of the large number of servers, we call the Zabbix API to create them.The reference address is as follows: Thank you, Daniel.Https://www.zabbix.o
Quickly add filters with the Zabbix API
Function Description:
The script can quickly generate a filter using the group name and key contained in the host in the group
Usage Prerequisites:
You need to set a graphic on key
Applicable version:
Zabbix 2.0.8 (actual test), Theory support 2.0~2.4 series (not
Vulnerability Source: https://www.exploit-db.com/exploits/39937/Attack cost: HighHazard level: Low (password required for this hole)Conditions of use: high-privileged User login requiredImpact Range:2.2 TipsThis hole requires you to get a high-privileged account password, when you get the account password, into the background can also execute commands, using the API Json-rpc for the second scenario.This exp is not perfect because HostID is not autom
The main added 1 Selectinterfaces records, the essence is that the database is the join this table. The Perl code is as follows:#!/usr/bin/perl UseStrict; Usewarnings; UseJSON::RPC::Client; UseData::dumper; UseJSON; UseUTF8; UseParallel::Forkmanager;my $pm= Parallel::forkmanager->new ( -); #define the number of open processes$| =1;Binmode(STDIN,': Encoding (UTF8)' );Binmode(STDOUT,': Encoding (UTF8)' ); #Three rowsBinmode(STDERR,': Encoding (UTF8)' ); #for normal output Chinese # Authenticate yo
/defines.inc.phpAt this point, the Chinese garbled problem solved, as shown in:5.3 Adding a hostFirst install the corresponding agent client on the monitored host and configure the agentd.conf file (refer to the configuration on Zabbix server).Then through "Configuration"-"host"-"Create host" can open the Create Host page, to fill in the information as shown in:Set the template that needs to be associated in the next action, by setting the association
control the immune network and communication.0 MaintenanceIn the enterprise environment there will be aging systems, can not easily replace or upgrade a lot. Forcing a monitoring agent to upgrade only because the upgrade of the primary monitoring system is unacceptable-so the newest and best Zabbix servers support all previous agent versions returned by the first version, dating more than 10 years ago.Zabbix the boundaries of the major version upgrad
Zabbix server installation and deployment of enterprise-level monitoring software zabbix
Zabbix has been applied online for more than half a year. I want to write down my experiences on zabbix's use in the production environment and some experiences, so that you can learn from them without detours!
Environment:Server: CentOS6.3 _ X86.64Zabbix:
Grafana-zabbix is a plugin for Zabbix that renders cool charts by invoking API interfacesSystem: Centos6.1, installation Grafana[Email protected] ~]# wget https://grafanarel.s3.amazonaws.com/builds/grafana-2.0.2-1.x86_64.rpm[Email protected] ~]# yum–y install grafana-2.0.2-1.x86_64.rpmAfter installation there will be the following filesbinary file /usr/sbin/grafa
CENTOS installation and deployment zabbix and centos deployment zabbix
Http://www.showerlee.com/archives/13 ()
The rhce email has been sent, so I am free to update the previous documents.
The content I updated is mainly to add my current understanding to the configuration and tell you some ideas and ideas at that time. Instead of posting a lot of commands as many documents on the Internet, many friends who
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.