Configuration of SNMP on the monitored side of cacti

Source: Internet
Author: User
Tags snmpwalk
Article Title: configuration of SNMP on the monitored side of cacti. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

  Install net-snmp

[Root @ jacktest jackNet-snmp-5.2.1.tar.tar] # tar zxvf

[Root @ jacktest jack] # net-snmp-5.2.1 cd

[Root @ jacktest net-snmp-5.2.1] #./configure

[Root @ jacktest jack] # make

[Root @ jacktest jack] # make install

Open the default/etc/snmp. conf file and change the following Configuration:

1. Search for the following fields:

Code:

# Sec. name source community

Com2sec notConfigUser default public

Change the "comunity" field to the password you want to set, for example, "public ".

Change "default" to which machine you want to view your snmp information, for example, 192.168.1.210.

2. Search for the following fields: code:

####

# Finally, grant the group read-only access to the systemview view.

# Group context sec. model sec. level prefix read write notif

Access notConfigGroup "" any noauth exact all none

Change the "read" field to all.

Code:

# Access notConfigGroup "" any noauth exact systemview none

3. Search for the following fields: code:

# Incl/excl subtree mask

# View all supported ded. 1 80

Remove "#" before this row.

Save and close.

4. Run the/etc/init. d/snmpd start command to run snmpd. or service snmpd start.

5. If a firewall exists, open UDP port 161.

Run netstat-ln to check whether port 161 is enabled.

Use ntsysv to enable the snmp service to run automatically at each startup.

If the snmp service is not installed, find the net-snmp.rpm on the RH installation CD and install it again.

  Troubleshooting

On the cacti monitoring management workstation

1. First, check whether there is data In rra /.

2. snmpwalk-v 2c-c public ServerIP if is used to test whether the SNMP service is enabled for the controlled object (serverIP ).

3. snmpwalk-v 2c ServerIP-c public. 1.3.6.1.4.1.2021.10.1.3 check whether the controlled end has CPU load data returned

4./www/php/bin/php/www/htdocs/cacti/poller. php is used to test whether PHP can collect data.

Related Article

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.