LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-03-2007, 10:37 AM   #1
aspenbr
Member
 
Registered: Aug 2006
Posts: 36

Rep: Reputation: 15
Problem with net-snmp


Hello !!!

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.

How resolve this problem ??

Thanks !!!
 
Old 05-03-2007, 10:42 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982Reputation: 1982
you've even pasted into this thread advice given to you by the program on how to fix the problem it is reporting...
 
Old 05-07-2007, 10:47 AM   #3
aspenbr
Member
 
Registered: Aug 2006
Posts: 36

Original Poster
Rep: Reputation: 15
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.

NET-SNMP version 5.4
 
Old 12-13-2010, 11:56 PM   #4
settntrenz
Member
 
Registered: Aug 2009
Location: Orlando, Florida
Distribution: RHEL, Ubuntu
Posts: 49

Rep: Reputation: 19
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
 
Old 08-07-2012, 02:46 PM   #5
Metuchen
LQ Newbie
 
Registered: Aug 2012
Posts: 1

Rep: Reputation: Disabled
Check SELinux

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:

Code:
# setenforce permissive
...and updated the sysconfig file accordingly:
Code:
# vim /etc/sysconfig/selinux
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
net-snmp subagent problem watsonpan Linux - Software 0 09-21-2005 02:30 AM
How to configure ucd-snmp and net-snmp? Tazzmanian Linux - Networking 1 05-27-2005 09:09 AM
NET-SNMP vs UCD-SNMP nitind Red Hat 1 05-20-2005 07:08 AM
problem in installing net-snmp anubhuti_k Linux - Networking 1 02-03-2005 01:49 PM
snmp (ucd-snmp, net-snmp) markus1982 Linux - Software 1 11-21-2002 11:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration