Focus on cloud service provider activities
Notes on website operation and maintenance

Configure Monitoring Treasure+SNMP to regularly monitor VPS host performance reminders

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 "For such website monitoring tools, if the VPS is down, the website will also be inaccessible, so we can send a reminder to let us make a prompt. Because sometimes the website reminder cannot represent a server problem, so if necessary, we can directly set the VPS to alert monitoring.

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 reminders. There are many products in China. Here, we want to share by using Monitor Treasure + SNMP To achieve the monitoring effect of VPS.

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.

 Monitoring treasure configuration SNMP

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.

 jiankongbao-SNMP-2

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

Domain name host preferential information push QQ group: six hundred and twenty-seven million seven hundred and seventy-five thousand four hundred and seventy-seven Get preferential promotion from merchants.
Like( zero )
Do not reprint without permission: Lao Zuo's Notes » Configure Monitoring Treasure+SNMP to regularly monitor VPS host performance reminders


Scan the code to follow the official account

Get more news about webmaster circle!
Entrepreneurship, operation and new knowledge