indicates that the verification failed on the agent side. You still need to restart the agent.In this case, if the standby inventory is displayed as a problem, the value is 0, which must be clearly identified.If the standby database does have a problem, the displayed result will be greater than 0.#./Zabbix_get-s 10.127.133.45-k check. dg1Of course, to enable zabbix users to switch to oracle users, you still need to use sudo to grant
Percona-zabbix-templates plugin installation and monitoring MySQL and perconamysql monitoring
The monitored machine has installed php.
1. Install the mysql monitoring plug-in rpm package on the zabbix Client
Rpm-ivh https://www.percona.com/downloads/percona-
root account to log on to the database. The password is empty.
Click OK! Generate a random password
Ubuntu @ ubuntu :~ $ Sudo apt-get install zabbix-agent-y
4. Set apache
Ubuntu @ ubuntu :~ $ Sudo vim/etc/php5/apache2/php. ini
Date. timezone = PRC (enable the timezone option and set it to PRC)
Ubuntu @ ubuntu :~ $ Sudo vim/etc/php5/apache2/php. ini
Ubuntu @ ubuntu :~ $ Sudo/etc/init. d/apache2 restart
5.
]
tengine.upstream_status[{#UPINDEX},{#UPSTREAM},{#UPNAME},status]
tengine.upstream_status[{#UPINDEX},{#UPSTREAM},{#UPNAME},type]
These key types are all Zabbix trapperAdd an alarm when the status value of the backend host is down{Template tengine status:tengine.upstream_status[{#UPINDEX},{#UPSTREAM},{#UPNAME},status].str (down)}=1When testing a script, it is best to use Zabbix_get to test
/get_mysql_stats_wrapper.sh gg If a number is returned, the success of the execution is proven. Note: by vim get_mysql_stats_wrapper.sh default in the CACHEFILE="/tmp/$HOST-mysql_cacti_stats.txt" /tmp/ next generation of a temporary file, this file after the test to be manually deleted! Otherwise, the program will not be able to delete the file, resulting in Zabbix unable to collect data! If the generated file is not data with the root user login manu
testing[Email protected] ~]#/usr/local/zabbix/bin/zabbix_get-s 10.188.1.44-k Tcpportlisten650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/53/A6/wKioL1RtQfSRFwdAAAHwlLm0gEU429.jpg "style=" float: none; "title=" Image 13.png "alt=" Wkiol1rtqfsrfwdaaahwllm0geu429.jpg "/>Note: You can see that the monitoring host scanned out of the port has 10050, and I added a 10050 later, do not matter, then look
Zabbix adds cpu usage graph monitoring and zabbix adds cpu graphics
Zabbix version: 3.2.5
If zabbix's windows template does not monitor cpu usage, you can add it in the template.
1. Configure ---> Template OS Windows
2. Monitoring items ----> Add
request instruction connection.4. Write the script to monitor Nginx on Agentd, and set the owner and the group as Zabbix, give execute permission.Cd/usr/local/zabbix/scriptscatnginx_status.sh #!/bin/bash#scripttofetchnginxstatusesfortribilymonitoring systems#author:[emailprotected]bkup_date= '/bin/date+%y%m%d ' LOG= "/data/
When installing the client, the package and server are the same, but the Configure configuration parameters are different.
Add users, user groups, unpack packages
The code is as follows
Copy Code
[ROOT@LOGSEC/USR/LOCAL/SRC]#groupadd Zabbix-g 201[ROOT@LOGSEC/USR/LOCAL/SRC]#useradd-G zabbix-u 201-m Zabbix[ROOT@LOGSEC/USR/LOCAL/SRC]#tar
I. Overview of ZabbixZabbix is an enterprise-class open source solution that provides distributed system monitoring and network monitoring capabilities based on a web interface.Zabbix can monitor various network parameters, ensure the safe operation of the server system, and provide a flexible notification mechanism to enable system administrators to quickly locate/resolve various problems.Zabbix consists o
Environment: CENTOS7has been installedZabbix-agent-3.2.4-2.el7.x86_64Zabbix-server-mysql-3.2.4-2.el7.x86_64Zabbix-web-3.2.4-2.el7.noarchZabbix-web-mysql-3.2.4-2.el7.noarchZabbix-release-3.2-1.el7.noarchZabbix-get-3.2.4-2.el7.x86_64To view the zabbix_agentd.conf configuration file:pidfile=/var/run/zabbix/Zabbix_agentd.pidlogfile=/var/log/zabbix/zabbix_agentd.loglo
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.16
console of the host and run:
[[emailprotected] local]# pkill httpd[[emailprotected] local]# ss -tnl | grep 80
Make sure port 80 has been disabled.
Now goMonitoring (Monitoring) → latest data (latest data)To check whether the last value has been changed to 0.
InMonitoring (Monitoring) → triggers), You will see that the trigger status shows a green blinking 'problem'
You will receive an exception notifi
25.png "alt=" Wkiom1rttwksycqhaadjlvr3kxu118.jpg "/>4. View the monitor image (found in last data)You can see that because there is no Zabbix Agent2 this service, return 255, 2 is removed and then observed to see that the return value is 0650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/53/A7/wKioL1RtT3qhbubBAAEyszkTBm0319.jpg "style=" float: none; "title=" Image 26.png "alt=" Wkiol1rtt3qhbubbaaeyszktbm0319.jpg "/>III. Automatic
/zabbix-2.4.4.tar.gz[Email protected] ~]# tar xvf zabbix-2.4.4.tar.gz[Email protected] ~]# mysql-u root-pEnter Password:Welcome to the MySQL Monitor. Commands End With; or \g.Your MySQL Connection ID is 3Server Version:5.6.21-log MySQL Community Server (GPL)Copyright (c), the Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of th
the server zabbix/conf650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/54/08/wKiom1R16J7CCc4xAAIydhkwGwc742.jpg "title=" z7.png "Style=" Float:none; "alt=" wkiom1r16j7ccc4xaaiydhkwgwc742.jpg "/>15, the Default user name Admin password Zabbix650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/54/07/wKioL1R16SCiaSwGAAGnTFevQ28507.jpg "title=" z8.png "Style=" Float:none; "alt=" wkiol1r16sciaswgaagntfevq28507.jpg "/>16. Server is no runn
you set authentication, you do not have to log in by parameters:650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/53/BF/wKioL1Ru3s7w_WgoAAMhcsIZ2gQ705.jpg "title=" Qq20141121144006.png "alt=" Wkiol1ru3s7w_wgoaamhcsiz2gq705.jpg "/>5. View monitoring ResultsMonitoring status OK indicates that the page responds properly:650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/53/BF/wKioL1Ru32yDdAlZ
/etc/init. d/mysqld start to start the database in mysql-uroot-p and enter the default password 1 to log on to the database. Create database zabbix character set utf8; # create a database named zabbix grant all on zabbix. * to zabbix @ localhost identified by 'redhat'; # aut
database host, modify the vi/usr/local/etc/zabbix_agentd.conf
Unsafeuserparameters=1 default is 0 (no custom script allowed)
Then add Userparameter=key,command to the back
Key,command for format
The key here is filled in when you create the item
Add the following monitoring items in this area:
Unsafeuserparameters=1
Userparameter=mysql.ping_test[*],mysqladmin-u$1-p$2 Ping|grep Alive|wc–l
8.2 Restart the ZABBIX_AGENTD service.
8.3 Check Service
[Ro
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.