Portal Home > Knowledgebase > Articles Database > how confg snmp version2
how confg snmp version2
Posted by mixmox, 08-20-2011, 11:30 AM |
hello
how can i enable and install snmp version 2 on centos and only allow 1 external ip address to access on snmp services?
|
Posted by macmat, 08-20-2011, 11:14 PM |
yum install net-snmp-utils -y
nano /etc/snmp/snmpd.conf
service snmpd restart
# /etc/snmp/snmpd.conf
rocommunity publicNETsnmp
rocommunity publicNETsnmp 0.0.0.0
syslocation City-State
syscontact Support
includeAllDisks
proc httpd
0.0.0.0 being the ip you want to allow
|
Posted by mixmox, 08-21-2011, 01:40 AM |
tnx macmat
i do it but prtg cant monitor this linux device:
Add Sensor to Device x.x.x.x Failed
|
Posted by mixmox, 08-21-2011, 01:42 AM |
i have add these lines at the end of snmpd.conf
rocommunity publicNETsnmp
rocommunity publicNETsnmp prtg-server-ip
syslocation City-State
syscontact Support
includeAllDisks
proc httpd
|
Posted by HSN-Saman, 08-21-2011, 02:15 AM |
Do you have firewall?
- if yes,you should allow snmp port on your firewall.(161 - UDP
also did you restart snmpd service after configuration modifaction ?
service snmpd restart
don't forget to make it auto-startup : chkconfig snmpd on
|
Posted by mixmox, 08-21-2011, 03:23 AM |
tnx from your reply s4m4n
yep . i have disable iptables as well. service iptables stop
and retry bot prtg cant connect to snmp services on this device:
Sorry, the scan for available monitoring items has failed!
Error Message:"No Such Name (SNMP error # 2)"
|
Posted by HSN-Saman, 08-22-2011, 01:25 AM |
You're welcome.
try SNMP Tester to test it: http://www.paessler.com/tools/snmptester
Don't forget to allow yourself ip.
also if you want more information about snmp configuration you may check it out.
http://forums.cacti.net/viewtopic.php?t=15353
|
Add to Favourites Print this Article
Also Read