Last update at :2024-07-12,Edit by888u
If we have a lot of VPS and don’t have time to completely monitor 100% online whether it is stable, we can use some monitoring tools to achieve real-time monitoring. For example, we can use "4 free mainland China online websites" "Monitoring tools\\" This kind of website monitoring tool, if the VPS goes down, the website will also be inaccessible, so we can give reminders by sending reminders. Because sometimes the website's reminder does not mean that it is a server problem, so if necessary, you can directly set the VPS reminder monitoring.
In the article "NodeQuery Free Linux VPS/Server Monitoring Online Tool", Snail has already shared the use of NodeQuery, a free online tool, to achieve real-time reminders. There are also many products in mainland China. I want to share them here. It uses the method of monitoring treasure + SNMP to achieve the monitoring effect of VPS.
First, deploy and install Net-SNMP
yum install net-snmp net-snmp-devel net-snmp-utilsIn this article, Snail was tested using 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 jiankongbaoWe create snmpv3 users here, which are read-only and use MD5 encrypted transmission. The user name is jiankongbao and the password is laozuo.org. It needs to be set here. We need to fill it in later on the monitoring treasure website.
Third, run Net-SNMP
service snmpd start #Start chkconfig snmpd on #Set boot detectionFourth, detect Net-SNMP
snmpwalk -v 3 -u jiankongbao -a MD5 -A \\\"laozuo.org\\\" -l authNoPriv 127.0.0.1 sysDescrIf there is no problem with the detection, there is a correct return data.
Fifth, configure the firewall
If our VPS server has iptables firewall settings turned on, then we need to add 2 lines to the iptables settings.
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 ACCEPTSixth, configure the backend account of the monitoring treasure website
We need to have a Monitoring Account. If not, you need to register. The free account can add 2 server monitoring and 5 website monitoring.
The above information is filled in based on the package we set above. For example, if the transmission protocol version is 3, the user name and password must correspond. The settings below are the specific items to be monitored. I won’t take screenshots here. Anyway, just check them if necessary.
Seventh, whether the test is effective
After the settings are completed, we use the online tool http://www.jiankongbao.com/labs/snmp to check whether it takes effect.
In this way, we have completed the purpose of using monitoring treasure + SNMP to configure monitoring.
Recommended site searches: Western Digital registration, US host network, free website domain name application, site group server rental, best US server, Ministry of Industry and Information Technology website registration system, domain name transfer, game high defense server rental, Ranking of the top ten server brands, renting servers,
发表评论