In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-10-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Both the monitoring and the monitored end should install and configure snmp:
[root@HE1bin] # yum install net-snmp*
[root@HE1bin] # vi / etc/snmp/snmpd.conf
Line 41 change the default to the monitoring server ip; community name is the same as the monitoring machine, as shown below:
Com2secnotConfigUser 192.168.1.250 ikongjian
Line 62 change systemview to all for all snmp access
Access notConfigGroup "" any noauth exact all none none
Line 85 removes the # comment symbol
Viewall included. 1 80
Modify the snmp level to reduce log output
[root@HE1 home] # vi / etc/init.d/snmpd
# OPTIONS= "- LS0-6d-Lf / dev/null-p / var/run/snmpd.pid"
OPTIONS= "- LS 4 d-p / var/run/snmpd.pid-a"
[root@HE1bin] # / etc/init.d/snmpd restart
Stoppingsnmpd: [OK]
Startingsnmpd: [OK]
Verify the snmp service
[root@HE1 bin] # ps-ef | grep 'snmpd'
Root 26100 10 11:20? 00:00:00 / usr/sbin/snmpd-LS 4d-p/var/run/snmpd.pid-a
Root 26114 25540 0 11:30 pts/0 00:00:00 grep snmpd
The monitoring machine modifies the lepus configuration file to add 44GRIN 45pct 46 lines.
[root@HE3lepus] # vi / usr/local/lepus/check_os.sh
Add 44, 45, 46 lines of content after line 43.
40 mem_buffered= `/ usr/bin/snmpwalk-v1-c ${community} ${ip} UCD-SNMP-MIB::memBuffer.0 | cut-d =-f2 | awk-F'{print $2}'`
41 mem_cached= `/ usr/bin/snmpwalk-v1-c ${community} ${ip} UCD-SNMP-MIB::memCached.0 | cut-d =-f2 | awk-F'{print $2}'`
42 mem_usage_rate= `/ usr/bin/snmpdf-v1-c ${community} ${ip} | grep "Physical" | awk'{print $6}'`
43 mem_available=$ [$mem_free+$mem_buffered+$mem_cached]
44 if [- z $mem_shared]; then
45 mem_shared=0
46 fi
[root@HE3 lepus] # python check_os.py
Start the graphical interface to add hosts
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.