It is also necessary to perform basic monitoring on a single server or VPS. In the past, Zhao Rong did not monitor VPS, because when some servers were added, his performance became even more tense. There are also a lot of foreign server performance monitoring websites, but it is a little difficult for people like Zhao Rong who rely on Google to read English. Therefore, we will share with you the simple server performance monitoring implemented by using SNMP + monitoring treasure. We recommend using NE for cloudmonitor.
It is also necessary to perform basic monitoring on a single server or VPS. In the past, Zhao Rong did not monitor VPS, because when some servers were added, his performance became even more tense. There are also a lot of foreign server performance monitoring websites, but it is a little difficult for people like Zhao Rong who rely on Google to read English. Therefore, we will share with you the simple server performance monitoring implemented by using SNMP + monitoring treasure.
Monitoring treasure is recommended to use NET-SNMP, so this article also take this as an example.
First, install NET-SNMP.
Yum install net-snmp-devel net-snmp-utils
Next, we will configure NET-SNMP.
Before configuring SELinux, make sure SELinux has been disabled (CentOS system attention), and then temporarily stop the NET-SNMP.
Service snmpd stop
Then, add a read-only account (such as vpsaa.com), create a password (such as 123456), and transmit
Net-snmp-config-create-snmpv3-user-ro-A 123456-a MD5 vpsaa.com
Next, start NET-SNMP
Service snmpd start
Add NET-SNMP to startup item
Chkconfig snmpd on
Then we check the NET-SNMP
Snmpwalk-v 3-u vpsaa.com-a MD5-A "123456"-l authNoPriv 127.0.0.1 sysDescr
If everything is normal, you will see some output information.
Finally, because the server has enabled iptables, you need to add the monitoring IP address of SNMP in the rule:60.195.252.107 60.195.252.110
Iptables-I INPUT-p udp-s 60.195.252.107-dport 161-j ACCEPT
Iptables-I INPUT-p udp-s 60.195.252.110-dport 161-j ACCEPT
Now, after completing the above work, we will log on to our monitoring account (if not, please register it yourself at www.jiankongbao.com)
For example, select "monitoring"-"server performance monitoring" in the account, click "add server" on the right, fill in the required information, and finally add.
After that, you can click "add Monitoring Project" on the following page"
Finally, the server monitoring is added. Note that if you use the OpenVZ architecture to monitor VPS, the last disk IO will prompt "your server does not support this monitoring item, please add diskio module for the Snmp Agent". please cancel this option for OpenVZ users.
Well, the above process is a simple application that uses SNMP + monitoring Bao to monitor server performance. you can monitor your own server or VPS.
(Reproduced from Zhao Rong tribe)