Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The solution of testing snmp and snmp in Cacti Chinese version

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article introduces the relevant knowledge of "Cacti Chinese version testing snmp and snmp solution". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Cacti Chinese version is a software implemented in PHP language. Its main function is to use snmp services to obtain data, then use rrdtool to store and update data, and use rrdtool to generate charts and present them to users when they need to view the data.

one。 Test whether the snmp is normal

# snmpwalk-c public-v 2c localhost

# snmpwalk-v 1-c public localhost IP-MIB::ipAdEntIfIndex

IP-MIB::ipAdEntIfIndex.61.xxx.xxx.xxx = INTEGER: 2

IP-MIB::ipAdEntIfIndex.127.0.0.1 = INTEGER: 1

IP-MIB::ipAdEntIfIndex.172.xxx.xxx.xxx = INTEGER: 3

You can also use the snmpd-f-Le command to see if there is anything wrong

FQA:

1. If the disk cannot be monitored

Please use the template ucd/net-Get Monitored Partitions that comes with the Chinese version of Cacti, and then add disk / (for example, we monitor the root partition) in the snmpd.conf (/ etc/snmp/snmpd.conf) of the monitored machine, and then you can check it with the command snmpwalk-v 1-c public 192.168.0.52 dsktable

2. If the picture doesn't come out,

1. Check whether your host is alive, must be able to pass the test, the status is alive, you can use commands to check whether there is any output

two。 In addition, the default version of rrdtool for the Chinese version of Cacti is RRDTool 1.1.x! Click Console- > System Utilities- > Technical Support- > RRDTool Version to select RRDTool 1.2.x, otherwise you may not be able to produce the picture.

3. Is there a problem with the image when the traffic of the network card reaches more than 100m?

This is related to the version of snmp, where the data for snmp1 is 32-bit and above snmp2c is 64-bit (AS4 does not support 64-bit by default).

1. First of all, make sure that you are using snmp2c or above and whether you support 64-bit MIB libraries. Below, if there are several lines returned with "Counter64:". Then it shows that it is supportive.

# snmpwalk-c public-v 2c localhost IF-MIB::ifHCInOctets

IF-MIB::ifHCInOctets.1 = Counter64: 3174458

IF-MIB::ifHCInOctets.2 = Counter64: 1585772167

IF-MIB::ifHCInOctets.3 = Counter64: 35696997927

IF-MIB::ifHCInOctets.4 = Counter64: 0

two。 Then click on the Chinese version of Cacti page: "Console->; Create New Graphs->; Data Query". You see the drop-down menu of "Select a graph type:" below (the default is "In/Out bits"). To take the data from 64bits, change it to "In/Out bits (64-bit Counters)", and then select the network card you want to monitor. In addition, the "Maximum Value" of the monitoring point must be set to more than 100m.

3. In device management, the SNMP version in the selected host must be 2. 5.

2. RedHat AS4's (not supported below net-snmp5.2) snmp does not support the solution of 64-bit counters (this method is provided by http://www.haw-haw.org/node/654)

You can download a src.rpm and add a sentence-enable-mfd-rewrites\ under the configure of the / usr/src/redhat/SPECS/net-snmp.spec file

And then

# cd / usr/src/redhat/

# rpmbuild-bb SPECS/net-snmp.spec

Generate a pile of x86_64.rpm under / usr/src/redhat/RPMS/x86_64, or 32-bit under i386. Just install it.

Note: 64-bit counter is a new IF-MIB added on net-snmp 5.2.It can convert more MIB objects (e.g. IfXTable with 64-bit ifHC* counters). On all RHEL4,Centosd4, if you use the default 5.2src package, even if you join enable-mfd-rewrites, it will not work. So download the 5. 2 src package to install.

Download address

Net-snmp5.2.src.rpm

Enable-mfd-rewrites is added by default in this package. After downloading, just compile and install it with rpmbuild-bb SPECS/net-snmp.spec in the above method.

Sometimes you can't get the data, so pay attention to whether your snmpd.conf is configured correctly. One of the following, read options if all.

Access notConfigGroup "" any noauth exact all none none

If you don't want to compile, you can download the rpm of redhat4 here and install it directly.

Http://ftp.freshrpms.net/pub/freshrpms/redhat/testing/EL4/net-snmp/

This is the end of the content of "Cacti Chinese version of testing snmp and snmp solutions". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report