Re: RE: Help with installation

"Abigail Rebello" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <1267147785.S.3276.21027.f4mail-234-203.rediffmail.com.1267161030.33431@webmail.rediffmail.com>
Hi,



   First of all,  thanks for helping.



Have copied the errors below and config file is attached. 



cccbl:~ # ps h -eo pid,args | grep snmpd

 4767 grep snmpd

cccbl:~ # snmpd -Le -f-Dread_config

/usr/local/share/snmp/snmpd.conf: line 60: Error: Blank line following agentgroup token.

ucd-snmp: 1 error(s) in config file(s)

Turning on AgentX master support.

Note this is still experimental and shouldn't be used on critical systems.

/usr/local/share/snmp/snmpd.conf: line 60: Error: Blank line following agentgroup token.

ucd-snmp: 1 error(s) in config file(s)

illegal port transport 172.16.10.88:161

Server Exiting with code 1

cccbl:~ # 



I'd started with net-snmp 5.5. After reading on somewhere that older versions might work better i changed to net-snmp 5.4.2 and now ucd-snmp-4.2.3 ...



Does this add to my problems??



Abigail 





On Fri, 26 Feb 2010 06:59:45 +0530  wrote

>> From: Abigail Rebello [mailto:[email protected]]



> Sent: Wednesday, February 24, 2010 11:26 PM







> i'm a linux beginner..







Yep.







> i've insstalled and configured net-snmp a number of times on my system



> but have a problem getting it to work... am not sure what's wrong...







Actually, it may be working, but we'll get back to that in a moment...







> have attached config files







That's not the config file, it's the net-snmp-config session. The config file we want is the generated snmpd.conf file.







Note that user "root" should have group "root" - "public" is what you want for the rocommunity (read-only).







Thanks for the screenshot. Note that snmpd backgrounds by default, so see if you still have an snmpd running:







# ps h -eo pid,args | grep snmpd







If there is any output to that, then







# kill [pid]







...replacing [pid] with the number in the first column. Now do this:







# snmpd -Le -f -Dread_config







This will run the agent in the foregrouns and log all errors to the console. That's a start - let's see how far that gets you.











HTH,







Mike

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
snmpd.conf (application/octet-stream, 2.4 KB)
###########################################################################
#
# snmpd.conf
#
#   - created by the snmpconf configuration program
#
###########################################################################
# SECTION: System Information Setup
#
#   This section defines some of the information reported in
#   the "system" mib group in the mibII tree.

# sysservices: The proper value for the sysServices object.
#   arguments:  sysservices_number

sysservices 77

# syscontact: The contact information for the administrator
#   arguments:  contact_string

syscontact  abby

# syslocation: The [typically physical] location of the system.
#   arguments:  location_string

syslocation  "ccb-dit corner"






###########################################################################
# SECTION: Agent Operating Mode
#
#   This section defines how the agent will operate when it
#   is running.

# agentaddress: The IP address and port number that the agent will listen on.
#   By default the agent listens to any and all traffic from any
#   interface on the default SNMP port (161).  This allows you to
#   specify which address, interface, transport type and port(s) that you
#   want the agent to listen on.  Multiple definitions of this token
#   are concatenated together (using ':'s).
#   arguments: [transport:]port[@interface/address],...

agentaddress  172.16.10.88:161

# master: Should the agent operate as a master agent or not.
#   Currently, the only supported master agent type for this token
#   is "agentx".
#   
#   arguments: (on|yes|agentx|all|off|no)

master  all

# agentgroup: The system group that the agent runs as.
#   arguments: group|#GID

agentgroup  

# agentuser: The system user that the agent runs as.
#   arguments: name|#uid

agentuser  root



###########################################################################
# SECTION: Access Control Setup
#
#   This section defines who is allowed to talk to your running
#   snmp agent.

# rwuser: a SNMPv3 read-write user
#   arguments:  user [noauth|auth|priv] [restriction_oid]

rwuser  root  

# rocommunity: a SNMPv1/SNMPv2c read-only access community name
#   arguments:  community [default|hostname|network/bits] [oid]

rocommunity  public  
rocommunity  public  

# rwcommunity: a SNMPv1/SNMPv2c read-write access community name
#   arguments:  community [default|hostname|network/bits] [oid]

rwcommunity  private  
rwcommunity  root
snmp.conf (application/octet-stream, 1.4 KB)
###########################################################################
#
# snmp.conf
#
#   - created by the snmpconf configuration program
#
###########################################################################
# SECTION: Default Authentication Options
#
#   This section defines the default authentication
#   information.  Setting these up properly in your
#   ~/.snmp/snmp.conf file will greatly reduce the amount of
#   command line arguments you need to type (especially for snmpv3).

# defaultport: The default port number to use
#   This token specifies the default port number you want packets to 
#   be sent to and received from.
#   override: with -p on the command line.
#   arguments: portnum

defaultport  161

# defversion: The default snmp version number to use.
#   override: with -v on the command line.
#   arguments: 1|2c|3

defversion  3

# defsecurityname: The default snmpv3 security name to use when using snmpv3
#   override: with -u on the command line.
#   arguments: securityname

defsecurityname  oursnmp

# defsecuritylevel: The default snmpv3 security level to use
#   override: with -l on the command line.
#   arguments: noAuthNoPriv|authNoPriv|authPriv

defsecuritylevel  authPriv

# defprivpassphrase: The default snmpv3 privacy pass phrase to use
#   Note: It must be at least 8 characters long.
#   override: with -X on the command line.
#   arguments: passphrase

defprivpassphrase  waterwater
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.