How to Use Cacti to obtain snmp Service data (1)

Source: Internet
Author: User
Tags rrdtool snmpwalk

The suspicious snmp service is reflected in many software. So we will introduce the Cacti software today. Now I will give a brief introduction to some functions and operations of this software. The Cacti Chinese version is a software implemented in php. Its main function is to use the snmp service to obtain data and then use rrdtool to store and update data, when you need to view data, use rrdtool to generate charts and present them to users.

1. test whether the snmp service is normal

 
 
  1. #snmpwalk -c public -v 2c localhost  
  2. #snmpwalk -v 1 -c public localhost IP-MIB::ipAdEntIfIndex  
  3. IP-MIB::ipAdEntIfIndex.61.xxx.xxx.xxx = INTEGER: 2  
  4. IP-MIB::ipAdEntIfIndex.127.0.0.1 = INTEGER: 1  
  5. IP-MIB::ipAdEntIfIndex.172.xxx.xxx.xxx = INTEGER: 3 

You can also run the snmpd-f-Le command to check whether any errors have occurred.

FQA:

1. If the disk is not monitored

Use the ucd/net-Get Monitored Partitions template in the Cacti Chinese version, and add it to the snmpd. conf (/etc/snmp/snmpd. conf) of the Monitored machine.

Disk/(for example, we monitor the root partition)

Then you can use the snmpwalk-v 1-c public 192.168.0.52 dsktable command to check

2. If the image comes

1. Check whether your host is active. You must pass the test and the status is active. You can use commands to check whether output exists.

2. In addition, the default rrdtool version of Cacti is RRDTool 1.1.x! -- Choose Console> System Utilities> Technical Support> RRDTool Version and select RRDTool 1.2.x. Otherwise, the figure may fail.

3. Why is there a problem when the network card Traffic reaches MB?

This is related to the snmp version. The data in snmp1 is 32 bits, while that in snmp2c is 64 bits (AS4 does not support 64 bits by default ).

1. Make sure that you are using snmp2c or above and whether the 64-bit MIB library is supported. If the returned rows contain "Counter64:", the returned rows are supported.

 
 
  1. #snmpwalk -c public -v 2c localhost IF-MIB::ifHCInOctets  
  2. IF-MIB::ifHCInOctets.1 = Counter64: 3174458  
  3. IF-MIB::ifHCInOctets.2 = Counter64: 1585772167  
  4. IF-MIB::ifHCInOctets.3 = Counter64: 35696997927  
  5. IF-MIB::ifHCInOctets.4 = Counter64: 0 

2. Click "Console->; Create New Graphs->; Data Query" on the Cacti Chinese Version page ". The drop-down menu "Select a graph type:" is "In/Out bits" by default "), change the 64 bits data 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 site must be set to more than MB.

3. In device management, select the SNMP Version of the host, which must be 2.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.