Cacti operation manual-SNMP configuration of the server on the monitored Device

Source: Internet
Author: User
Tags snmpwalk

To Enable snmp for devices monitored by cacti, follow these steps to install and configure snmp:

1. Install the snmp service that comes with the Windows system. After installation, configure it as follows:

(1) install the snmp service for Windows
Control Panel-> add and delete programs-> Add/delete windows Components-> management and monitoring tools-> Simple Network Management Protocol (SNMP)

(2) configure the snmp service
Management tools-> services-> SNMP Service-> Security-> Accept group names to add public. This is the logon password, custom-> Accept SNMP Packets from these hosts and fill in your Cacti Server IP Address






Then restart the snmp service to take effect.

2. in Linux, you can install the rpm package or compile the source code (if your system has been installed, skip step (3)

(1) Source code compilation and installation of net-snmp

[Root @ yunweiw.com] # tar zxvf net-snmp-xxx.tar.tar
[Root @ yunweiw.com] # cd net-snmp-xxx
[Root @ yunweiw.com net-snmp-xxx] #./configure
[Root @ yunweiw.com] # make
[Root @ yunweiw.com] # make install

(2) install net-snmp In the rpm package (you can find it in the system disk)

[Root @ yunweiw.com] # rpm-ivh net-snmp-xxx.rpm
Or
[Root @ yunweiw.com] # yum install net-snmp
 
(3) After installation, open the default/etc/snmp/snmpd. conf file and change the following Configuration:

1) Search for the following 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, such as 192.168.0.8.

After modification: com2sec notConfigUser 192.168.0.8 public

2) Search for the following 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 systemview none
Change the "read" field to all.

After modification: access notConfigGroup "" any noauth exact all none

3) Search for the following code:

# 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.
  
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. php/var/www/html/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.