Re: RE: Help with installation

2010-02-26 Thread Abigail Rebello
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:bluebriarr...@rediffmail.com]



> 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









snmpd.conf
Description: Binary data


snmp.conf
Description: Binary data
--
Download Intel® 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
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


RE: RE: Help with installation

2010-02-26 Thread Mike Ayers
> From: Abigail Rebello [mailto:bluebriarr...@rediffmail.com]
> Sent: Thursday, February 25, 2010 9:11 PM

> 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.

It should be "agentgroup root".

> 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.

Heh?  How old is this?

> /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

That notation has been valid for ages...

> 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??

Exponentially.  Just use 5.5.  Whomever advocates older versions is 
misguiding you.

Also, I'm guessing this snmpd.conf was generated by that old version - 
you should probably re-run net-snmp-config after bringing your version up to 
date.


HTH,

Mike

--
Download Intel® 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
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


RE: Re: RE: Help with installation

2010-02-26 Thread Mike Ayers

[Redirecting to list]

> From: Abigail Rebello [mailto:bluebriarr...@rediffmail.com]
> Sent: Friday, February 26, 2010 3:02 AM

> I've changed back to net-snmp 5.5..
> cccbl:~/Desktop # netstat -an | grep -i udp
> udp 0 0 0.0.0.0:514 0.0.0.0:*
> udp 0 0 0.0.0.0:899 0.0.0.0:*
> udp 0 0 172.16.10.88:161 0.0.0.0:*

Yep - you've got a daemon running!

> udp 0 0 0.0.0.0:162 0.0.0.0:*
> udp 0 0 0.0.0.0:111 0.0.0.0:*
> udp 0 0 0.0.0.0:631 0.0.0.0:*
> udp 0 0 :::899 :::*
> udp 0 0 :::111 :::*

> cccbl:~/Desktop # snmpwalk -H

That was useless... how about the output of `snmpgetnext -cpublic -v1 
172.16.10.88 .1.3`?

Don't (snmp)walk until you can crawl...

> Also attached new snmpd.conf file.. Not sure why sys is showing two
> now..

Most likely you inadvertently attached it twice.  No biggie.


HTH,

Mike

--
Download Intel® 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
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


Re: RE: Re: RE: Help with installation

2010-03-01 Thread Abigail Rebello


Hi,



  cccbl:~ # snmpgetnext -cpublic -v1 172.16.10.88 .1.3

Timeout: No Response from 172.16.10.88.

cccbl:~ # snmpgetnext -cpublic -v1 172.16.10.88 1.3

Timeout: No Response from 172.16.10.88.

cccbl:~ # snmpgetnext -cpublic -v1 172.16.10.88 .1.3

Timeout: No Response from 172.16.10.88.





Attached new snmpd.conf file



Abigail 





On Sat, 27 Feb 2010 05:48:33 +0530  wrote

>



[Redirecting to list]







> From: Abigail Rebello [mailto:bluebriarr...@rediffmail.com]



> Sent: Friday, February 26, 2010 3:02 AM







> I've changed back to net-snmp 5.5..



> cccbl:~/Desktop # netstat -an | grep -i udp



> udp 0 0 0.0.0.0:514 0.0.0.0:*



> udp 0 0 0.0.0.0:899 0.0.0.0:*



> udp 0 0 172.16.10.88:161 0.0.0.0:*







Yep - you've got a daemon running!







> udp 0 0 0.0.0.0:162 0.0.0.0:*



> udp 0 0 0.0.0.0:111 0.0.0.0:*



> udp 0 0 0.0.0.0:631 0.0.0.0:*



> udp 0 0 :::899 :::*



> udp 0 0 :::111 :::*







> cccbl:~/Desktop # snmpwalk -H







That was useless... how about the output of `snmpgetnext -cpublic -v1 
172.16.10.88 .1.3`?







Don't (snmp)walk until you can crawl...







> Also attached new snmpd.conf file.. Not sure why sys is showing two



> now..







Most likely you inadvertently attached it twice. No biggie.











HTH,







Mike









snmpd.conf
Description: Binary data
--
Download Intel® 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
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users