FW: [netsaint] check_snmp errors with solaris 8/sparc - No data recieved from host

Subhendu Ghosh sghosh at sghosh.org
Thu Dec 12 21:08:38 CET 2002


Could you run the command under truss and post the sections where snmp 
error happens...

-sg

On Wed, 11 Dec 2002, Michael O'Dea wrote:

> 
> Nope - this didn't get me anywhere. I am baffled by this. I'll have to try the developers list
> 
> 
> thanks
> -m
> 
> -----Original Message-----
> From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com]
> Sent: Wednesday, December 11, 2002 1:57 PM
> To: Michael O'Dea; nagios-users at lists.sourceforge.net
> Subject: RE: [Nagios-users] FW: [netsaint] check_snmp errors with
> solaris 8/sparc - No data recieved from host
> 
> 
> Try using the -H option (as I suggested in my original e-mail).
> 
> jc
> 
> > -----Original Message-----
> > From: Michael O'Dea [mailto:modea at upoc-inc.com]
> > Sent: Wednesday, December 11, 2002 12:54 PM
> > To: Carroll, Jim P [Contractor]; nagios-users at lists.sourceforge.net
> > Subject: RE: [Nagios-users] FW: [netsaint] check_snmp errors with
> > solaris 8/sparc - No data recieved from host
> > 
> > 
> > 
> > 
> > eek! 
> > 
> > I realized that I pasted a bunch of stuff wrong after I 
> > emailed it! So much for attention to detail :(
> > 
> > Here is how it *should* look: (and I am still getting the same error)
> > 
> > bash-2.05$ id
> > uid=6667(nagios) gid=200(upoc)
> > 
> > here I run the plugin:
> > 
> > bash-2.05$ /opt/nagios/libexec/check_snmp  10.10.6.81 -C 
> > test123 -o system.sysName.0
> > SNMP problem - No data recieved from host
> > CMD: /usr/local/bin/snmpget -m ALL -v 1 -c test123 
> > 10.10.6.81:161  system.sysName.0
> > bash-2.05$
> > 
> > It reports 'snmp problem' and gives me the cmdline, which I run:
> > 
> > bash-2.05$ /usr/local/bin/snmpget -m ALL -v 1 -c test123 
> > 10.10.6.81:161  system.sysName.0
> > system.sysName.0 = "message1"
> > bash-2.05$ 
> > 
> > It works with the actual snmpget... but check_snmp (which 
> > calls snmpget?) seems to fail. 
> > 
> > I get the same error with snmpget from UCD-snmp version: 
> > 4.1.2 & UCD-snmp version: 4.2.6 on this solaris 8/sparc system.
> > 
> > I also tried the suggested change in utils.c & recompile - it 
> > had no change.
> > 
> > Thanks for getting back to me
> > 
> > -m
> > 
> > -----Original Message-----
> > From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com]
> > Sent: Wednesday, December 11, 2002 1:35 PM
> > To: Michael O'Dea; nagios-users at lists.sourceforge.net
> > Subject: RE: [Nagios-users] FW: [netsaint] check_snmp errors with
> > solaris 8/sparc - No data recieved from host
> > 
> > 
> > First, it appears that you're testing the command under root.  When in
> > doubt, test it under user nagios.  (I don't think it would 
> > make a difference
> > in this case, but it's all about eliminating possibilities, right?)
> > 
> > Second, it appears that there are 3 different invocations of 
> > the command,
> > and none of them match.  You have (in order shown in your example):
> > 
> > 1) libexec/check_snmp 10.0.0.5 -C test123 -o system.susName.0
> > 2) /usr/local/bin/snmpget -m ALL -v 1 10.10.6.81 1luvUp0C 
> > system.susName.0
> > 3) /usr/local/bin/snmpget -m ALL -v 1 10.0.0.5 test123 
> > system.sysName.0
> > system.sysName.0 = "message1"
> > 
> > As a result, I'm puzzling over the following:
> > 
> > - why do #1 and #2 have different IP addresses?
> > - why are the arguments in #2 and #3 different?
> > - what object is "system.susName.0"?  did you mean "system.sysName.0"?
> > 
> > They're just all... different.  See if you can get some 
> > incantation of the
> > check_snmp command to result in kicking out the correct CMD 
> > (which would
> > mirror the invocation of snmpget).
> > 
> > Try something along the lines of (ie, cut/paste):
> > 
> >    libexec/check_snmp -H 10.0.0.5 -C test123 -o system.sysName.0
> > 
> > HTH.
> > 
> > jc
> > 
> > 
> > > -----Original Message-----
> > > From: Michael O'Dea [mailto:modea at upoc-inc.com]
> > > Sent: Wednesday, December 11, 2002 11:34 AM
> > > To: nagios-users at lists.sourceforge.net
> > > Subject: [Nagios-users] FW: [netsaint] check_snmp errors 
> > with solaris
> > > 8/sparc - No data recieved from host
> > > 
> > > 
> > > 
> > > Hi.
> > > 
> > > I sent this to the netsaint list yesterday - then found out 
> > > about nagios, and installed it & then signed up for the list 
> > > -- and am still having the same problem with the nagios 
> > > check_snmp plugin.
> > > 
> > > the version is: check_snmp (nagios-plugins 1.3.0-beta2) 1.20
> > > 
> > > Any ideas?
> > > 
> > > thanks
> > > -m
> > > -----Original Message-----
> > > From: Michael O'Dea 
> > > Sent: Tuesday, December 10, 2002 12:43 PM
> > > To: netsaint-users at lists.sourceforge.net
> > > Subject: [netsaint] check_snmp errors with solaris 8/sparc - No data
> > > recieved from host
> > > 
> > > 
> > > 
> > > Hello,
> > > 
> > > I seem to be having a problem with the check_snmp plugin, I 
> > > am getting this error:
> > > 
> > > root at host: [/opt/netsaint #] libexec/check_snmp 10.0.0.5 -C 
> > > test123 -o system.susName.0                         
> > > SNMP problem - No data recieved from host
> > > CMD: /usr/local/bin/snmpget -m ALL -v 1 10.10.6.81 1luvUp0C 
> > > system.susName.0
> > > 
> > > so I run the snmpget cmdline and get a answer:
> > > 
> > > root at host: [/opt/netsaint #] /usr/local/bin/snmpget -m ALL -v 
> > > 1 10.0.0.5 test123 system.sysName.0
> > > system.sysName.0 = "message1"
> > > 
> > > It works fine... 
> > > 
> > > So I checked the mailing list archive & google and I came up 
> > > with this:
> > > 
> > > http://www.geocrawler.com/mail/msg.php3?msg_id=7358656&list=739
> > > http://www.geocrawler.com/archives/3/736/2001/8/0/6342925/
> > > 
> > > I tried upping TXTBLK to 256 in the utils.c -- no luck.
> > > 
> > > Any suggestions? 
> > > 
> > > system info:
> > > 
> > > check_snmp (netsaint-plugins 1.2.9-4) 1.21.2.5
> > > UCD-snmp version: 4.2.6
> > > SunOS host 5.8 Generic_108528-15 sun4u sparc SUNW,Sun-Fire-280R
> > > gcc version 3.2
> > > 
> > > 
> > > It does work for me on a solaris 7/intel system, same plugin 
> > > version but ucd-snmp 4.1.2. I tried compiling 4.1.2 on the 
> > > solaris 8/sparc box and got the same error.
> > > 
> > > Anyone else seen this? 
> > > 
> > > thanks
> > > 
> > > ----
> > > Michael A. O'Dea
> > > Senior Systems Administrator
> > > Upoc, Inc - NYC, NY
> > > 212.405.1042 (desk)
> > > modea at upoc-inc.com
> > > Upoc Handle: fddi
> > > 
> > > "when the going gets weird, the weird turn pro" -HST          
> > >                                               
> > > 
> > > 
> > > 
> > > 
> > > 
> > > -------------------------------------------------------
> > > This sf.net email is sponsored by:ThinkGeek
> > > Welcome to geek heaven.
> > > http://thinkgeek.com/sf
> > > _______________________________________________
> > > Netsaint-users mailing list
> > > Netsaint-users at lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/netsaint-users
> > > 
> > > 
> > > -------------------------------------------------------
> > > This sf.net email is sponsored by:
> > > With Great Power, Comes Great Responsibility 
> > > Learn to use your power at OSDN's High Performance Computing Channel
> > > http://hpc.devchannel.org/
> > > _______________________________________________
> > > Nagios-users mailing list
> > > Nagios-users at lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/nagios-users
> > > 
> > 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:
> With Great Power, Comes Great Responsibility 
> Learn to use your power at OSDN's High Performance Computing Channel
> http://hpc.devchannel.org/
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> 

-- 




-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility 
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/




More information about the Users mailing list