Calling the Zabbix API using Python#!/usr/bin/env python#Version = 3.6.1#__auth__ = ' Warren 'ImportJSON fromUrllibImportrequest, Parsezabbix_url='Http://192.168.22.22/zabbix'Zabbix_username="Admin"Zabbix_password="123456"#define the host information to be added in list formhostlist=["192.168.22.111","192.168.22.112"]#Traverse host list defines the host group ID and template ID to add forHostinchHostlist:url="{}/api_jsonrpc.php". Format (zabbix_url) h
Recently configured Zabbix distributed monitoring, using the proxy method, after the configuration is completed, the server side of the Web interface to add the host, using proxy mode for monitoring.The normal client configuration is as follows and can be monitored normallyVim zabbix_agentd.confLogfile=/tmp/zabbix_agentd.logserver=192.168.111.172 # Enter the IP address of the zabbix_proxyserveractive=192.168.111.172hostname=192.168.111.190the zabbix_a
Due to the use of proxy distributed monitoring, it is necessary to install Java_getway on the proxy side. That is, when compiling, add--enable-java
Modify Zabbix_java related optionsGo to the directory below for seeting.sh script editing; start the./startup.sh to see if Port 10052 is startedlisten_ip = "0.0.0.0" Listen_port = 10052 Pid_file = "/tmp/zabbix_java.pid"start_pollers = 5
Modify the proxy configuration file and the server configuration fileJavagateway =127.0.0.1 Javagatewayport =
Zabbix is an enterprise-level open-source solution that provides distributed system monitoring and network monitoring functions based on the Web interface.
Zabbix can monitor various network parameters to ensure secure operation of server systems. It also provides a flexible notification mechanism for system administrators to quickly locate and solve various problems.
Z
keys after you add Web monitoring, and automatically create the appropriate keys after you add Web monitoring, but select the appropriate hosts that have the Web definedSelect the expression in function to trigger the alarm when the returned status code is not equal to variable n, and the value of n is set to 200 belowExpression: If the last 4 consecutive Response_code values are not 200, the alarm is triggered{192.168.3.86:web.test.rspcode[3.86_http_status,3.86_http_status].last (0)}
Test, the
Label: [[Email protected] Client zabbix]# grep-v "^$" etc/zabbix_agentd.conf|grep-v "^#"
Logfile=/tmp/zabbix_agentd.log
server=127.0.0.1,zabbix_server_ip
serveractive=zabbix_server_ip:10051# Note that the port number
hostname=113.86.103.100# and the zabbix_server end should be kept to one, such as: (A)
include= /usr/local/zabbix/etc/zabbix_agentd.conf.d/
Unsafeuserparameters=1
userparameter=mysql.version,m
Tags: database mysql Zabbix1. Preface Zabbix as open source free monitoring software, its easy to manage the configuration and visualization of the view, the regular maintenance of historical data, templated monitoring projects more and more by the majority of IT operations and maintenance staff favorite. Here is the main summary of the next Zabbix server and MPM using Yum for rapid deployment. The more det
Zabbix implements Web monitoring based on Proxy distributed deploymentPreface
In daily O M work, it is inevitable that one or more failures will occur. How can we find the fault in the first place and locate the Fault Cause in time to ensure that the business is not affected, I think this should be a skill that must be mastered in O M. However, human resources cannot control system changes in real time, so the monitoring system emerged. monitoring i
In my previous blog, I set up the zabbix monitoring service in the lamp architecture. In this article, I will build a zabbix service in lnmp. The operation steps are slightly more complex than before, however, lnmp is slightly more detailed, and the general process is similar.
Lab environment:Stkaiti link: https://pan.baidu.com/s/1d6VpWcuQMQuaww4r_KZnNAExtracted code: 90v8Procedure1. Establish lnmp1 instal
First, install the configuration Zabbix serverWeb Server server: 172.28.0.187MySQL server: 172.28.0.2371. Install Web server (172.28.0.187) A, official documentsZabbix officially provides installation documentation based on packages and compiled installation methods.Here server I use the package method installs, the agent uses the source code compiles the way installs, because the server has only one, but the agent has many, needs to modify the config
Based on centos6.5 + zabbix-2.4.6 and most of the commands are under the Zabbix installation path!! Like/usr/local/zabbix/.Yum-y install gcc gcc-c++ autoconf httpd php mysql mysql-server php-mysql httpd-manual mod_ssl mod_perl mod_auth_mysql ph P-GD php-xml php-mbstring php-ldap php-pear php-xmlrpc php-bcmath mysql-connector-odbc mysql-devel libdbi-dbd-mysql Net-
RedHat 7.1 Installing the ZABBIX Monitoring program in detail (for Linux novice users) 2017-05-02Installation steps:1.zabbix need to install lamp architecture2. Installing the Zabbix Service3. Initializing the Zabbix system1. Installation Environment: VMware Virtual
1234
[[emailprotected] ~]# cat /
Experimental system: CentOS 6.6_x86_64Lab Prerequisites: Prepare the build environment in advance, firewall and SELinux are offExperiment Description: There are 4 hosts in this experiment, IP and role assignment such as topology: mariadb software used in the test, http://pan.baidu.com/s/1bnnYiMrExperimental topology: First, the preparatory work1. Modify the hostname and HOSTS file to the following table: Description: MySQL is Zabbix data sto
Zabbix Overview
Zabbix is an enterprise-level open-source solution that provides distributed system monitoring and network monitoring functions based on the Web interface.
Zabbix can monitor various network parameters to ensure secure operation of servers. It also provides flexible notification mechanisms and allows administrators to quickly locate and sol
Debian 9.2 install Zabbix 3.4.2
Recently, I want to install Zabbix monitoring software In Debian 9.2. I have no choice but to find that many documents have not been installed successfully. Many of them are due to installation environment problems and cannot solve the dependency between installation packages. Although there are official instructions, it is still difficult to install them. Fortunately, I foun
Description
The ZABBIX monitoring server has been configured to monitor Linux hosts using Zabbix.
Specific operation:
The following operations are performed on the monitored Linux hosts, with the CentOS 6.x system as an example.
First, configure the firewall, open 10050, 10051 TCP and UDP ports
Vi/etc/sysconfig/iptables #编辑防火墙配置文件
-A input-s 192.168.21.127-m state--state new-m tcp-p TCP--dport 10050:10051-
Rhel6.3 i386
Zabbix 2.0.3
Zabbix is an enterprise-level open-source solution that provides distributed system monitoring and network monitoring functions based on the Web interface.
Zabbix can monitor various network parameters to ensure secure operation of server systems. It also provides a soft notification mechanism for system administrators to quickly l
[Zabbix series] Alarm System Setting and EliminationThere are many solutions for email alert. Here we choose the msmtp + mutt solution with better stability.
A good solution is that you do not need to build an independent mail server on your own. You can use third-party mail. This method not only effectively solves the problem that unknown email addresses are processed as spam emails, at the same time, the third-party stable services provide accurate
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.