If we have a lot of VPS and do not have time to 100% online monitoring for stability, we can use some monitoring tools to achieve real-time monitoring. For example, we can use“ 4 free domestic online website monitoring tools "If the VPS is down, the website will also be inaccessible. In this way, we can send a reminder. Because sometimes the alerts on the website cannot represent a problem with the server, you can directly set the VPS to monitor alerts if necessary.
On“ NodeQuery Free Linux VPS/Server Monitoring Online Tool "In the article, Lao Zuo has already shared the use of NodeQuery, a free online tool, to achieve real-time alerts, and there are many domestic products. Here we want to share the VPS monitoring effect by using the method of monitoring treasure+SNMP.
First, deploy and install Net SNMP
yum install net-snmp net-snmp-devel net-snmp-utils
In this article, Lao Zuo was tested with the CENTOS system.
Second, configure Net SNMP
Service snmpd stop # Stop the SNMP service first net-snmp-config --create-snmpv3-user -ro -A laozuo.org -a MD5 jiankongbao
Here we create a snmpv3 user, bit read-only, using MD5 encryption transmission. The user name is Jiankongbao, and the password is laozuo.org. It needs to be set here, and later we need to fill in the monitoring treasure website.
Third, run Net SNMP
Service snmpd start # Start Chkconfig snmpd on # Set startup detection
Fourth, detect Net SNMP
snmpwalk -v 3 -u jiankongbao -a MD5 -A "laozuo.org" -l authNoPriv 127.0.0.1 sysDescr
If there is no problem in the detection, there will be a correct return data.
Fifth, configure the firewall
If our VPS server has enabled the iptables firewall setting, we need to add 2 lines to the iptables setting.
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
Sixth, configure the background account of the monitoring treasure website
We need to have a monitoring treasure account. If not, we need to register. Two server monitors and five website monitors can be added to the free account.

The above information is filled in according to the matching set above. For example, if the transmission protocol version is 3, the user name and password should correspond. The settings below are specific items to be monitored. I won't take screenshots here, but check them if necessary.
VII. Whether the test is effective
After setting up, we can use the http://www.jiankongbao.com/labs/snmp This online tool is used to check whether it is effective.

In this way, we have completed the purpose of using Monitoring Treasure+SNMP to configure monitoring.