Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I trying configure net-snmp, start daemon with command - ./snmpd -c /var/net-snmp/snmpd.conf -I -V -Ls 0, display follow warning in syslog
Apr 30 18:34:08 linuxteste snmpd[6593]: Warning: no access control information configured. It's unlikely this agent can serve any useful purpose in this state. Run "snmpconf -g basic_setup" to help you configure the snmpd.conf file for this agent.
I trying configuration running " snmpconf -g basic_setup " but run daemon continue message for configuration "Agent"
How configure agent with net-snmp ? ?
Follow my configuration of net-snmp
Configuration agent access control
Allow SNMPv1/v2c read-write community access -> y
** Comuninity read-write --> comurwlinux
All network address or host accepting this comunity
OID that this comunity should be restricted -> No-restriction
One community create
Do you want the agent to send snmp2c informs to a trap receiver (y)
Trap destination setup
SHould traps be sent when authentication failures occur -> yes
Configuration: trapcomunity
Descritption: Default trap sink comunity to use argumento: comunity-string
The default comunity name to use when sending traps : comutrap
Do you want the agent to send snmpv2c informs to a trap receiver : y
Finished Output: Informsink: vmserver comutrap
A host name that should receive the trap: vmserver
The comonity to be used in the trap sent [optional]: comutrap
Finished output: informsink vmserver comutrap
Do you want the agent to send snmpv2c traps to a trap receiver (default =y)
A host name that should receive the trap : vmserver
The comunity to be used in the trap sent [optional]: comutrap
Do you want the agent to send snmpv1 traps to a trap receiver (default =y)
A host name that should receive the trap : vmserver
The comonity to be used in the trap sent [optional]: comutrap
cat /var/log/snmpd.log
Warning: no access control information configured.
It's unlikely this agent can serve any useful purpose in this state.
Run "snmpconf -g basic_setup" to help you configure the snmpd.conf file for this agent.
I realize that I'm bringing up a rather old thread by replying here, but I found this by googling the same error the OP saw. My intent is to help others who encounter this issue save some time in the future as apparently the search terms I used are still relevant. I've installed net-snmp on hundreds of boxes, so this not working came as a surprise to me. In my scenario, I was deploying a new server that matched the hardware and O/S(Centos 5.5) of the other servers in the farm so I know that my config file was a "known working" example. After breaking down the /etc/snmpd.conf file to the bare essentials I still couldn't snmpwalk localhost. I ended up simply removing and reinstalling net-snmp and net-snmp-utils via yum and my problem was resolved. Apparently something was corrupted during my initial download/install which could be another issue in itself. At first, I tested with the default config file but then replaced it with my known working config from the other boxen and it worked as expected. Thus, this error can be seen with a good config file.
details:
CentOS release 5.5 (Final)
Linux hostname.tld 2.6.18-194.26.1.el5 #1 SMP Tue Nov 9 12:54:40 EST 2010 i686 i686 i386 GNU/Linux
NET-SNMP version: 5.3.2.2
Again, for the benefit of those of us who got here via Google, I'll post my solution here.
In my case, the problem was the SELinux context of my /etc/snmp/snmpd.conf file. When the snmp daemon starts, it's forbidden from reading the file. Restoring the correct context would fix it (or uninstalling / reinstalling as the last poster did). On the other hand, I'm no SELinux expert, so I simply did:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.