FW: [netsaint] check_snmp errors with solaris8/sparc - No data recieved from host
Michael O'Dea
modea at upoc-inc.com
Thu Dec 12 22:20:48 CET 2002
Thanks for getting back to me
Here is the truss output:
16:08:14 (1) nagios at build: [/ $] truss /opt/nagios/libexec/check_snmp -H 10.10.6.81 -C test123 -o system.sysName.0
execve("/opt/nagios/libexec/check_snmp", 0xFFBEFC34, 0xFFBEFC54) argc = 7
mmap(0x00000000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFF3A0000
resolvepath("/usr/lib/ld.so.1", "/usr/lib/ld.so.1", 1023) = 16
open("/var/ld/ld.config", O_RDONLY) Err#2 ENOENT
open("/usr/local/lib/libkvm.so.1", O_RDONLY) Err#2 ENOENT
open("/usr/share/lib/libkvm.so.1", O_RDONLY) Err#2 ENOENT
open("/lib/libkvm.so.1", O_RDONLY) = 3
fstat(3, 0xFFBEF35C) = 0
mmap(0x00000000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xFF390000
mmap(0x00000000, 90112, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xFF370000
mmap(0xFF384000, 912, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 16384) = 0xFF384000
munmap(0xFF374000, 65536) = 0
memcntl(0xFF370000, 3940, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
close(3) = 0
open("/usr/local/lib/libelf.so.1", O_RDONLY) Err#2 ENOENT
open("/usr/share/lib/libelf.so.1", O_RDONLY) Err#2 ENOENT
open("/lib/libelf.so.1", O_RDONLY) = 3
fstat(3, 0xFFBEF35C) = 0
mmap(0xFF390000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF390000
mmap(0x00000000, 196608, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xFF330000
mmap(0xFF35E000, 3616, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 122880) = 0xFF35E000
munmap(0xFF34E000, 65536) = 0
memcntl(0xFF330000, 12056, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
close(3) = 0
open("/usr/local/lib/libc.so.1", O_RDONLY) Err#2 ENOENT
open("/usr/share/lib/libc.so.1", O_RDONLY) Err#2 ENOENT
open("/lib/libc.so.1", O_RDONLY) = 3
fstat(3, 0xFFBEF35C) = 0
mmap(0xFF390000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF390000
mmap(0x00000000, 794624, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xFF200000
mmap(0xFF2BA000, 24668, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 696320) = 0xFF2BA000
munmap(0xFF2AA000, 65536) = 0
memcntl(0xFF200000, 113332, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
close(3) = 0
open("/usr/local/lib/libdl.so.1", O_RDONLY) Err#2 ENOENT
open("/usr/share/lib/libdl.so.1", O_RDONLY) Err#2 ENOENT
open("/lib/libdl.so.1", O_RDONLY) = 3
fstat(3, 0xFFBEF35C) = 0
mmap(0xFF390000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0) = 0xFF390000
close(3) = 0
open("/usr/platform/SUNW,Sun-Fire-280R/lib/libc_psr.so.1", O_RDONLY) = 3
fstat(3, 0xFFBEF1EC) = 0
mmap(0x00000000, 8192, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xFF320000
close(3) = 0
brk(0x00029F40) = 0
brk(0x0002BF40) = 0
getrlimit(RLIMIT_CORE, 0xFFBEF718) = 0
setrlimit(RLIMIT_CORE, 0xFFBEF718) = 0
pipe() = 3 [4]
pipe() = 5 [6]
fork() = 1688
close(4) = 0
close(6) = 0
fstat64(3, 0xFFBEF648) = 0
brk(0x0002BF40) = 0
brk(0x0002DF40) = 0
ioctl(3, TCGETA, 0xFFBEF5D4) Err#22 EINVAL
read(3, 0x0002BB6C, 5120) = 0
ioctl(1, TCGETA, 0xFFBEE93C) = 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
write(1, " S N M P p r o b l e m".., 127) = 127
llseek(0, 0, SEEK_CUR) = 134153
llseek(3, 0, SEEK_CUR) Err#29 ESPIPE
llseek(5, 0, SEEK_CUR) Err#29 ESPIPE
_exit(3)
16:08:24 (2) nagios at build: [/ $] ldd /opt/nagios/libexec/check_snmp
libkvm.so.1 => /lib/libkvm.so.1
libelf.so.1 => /lib/libelf.so.1
libc.so.1 => /lib/libc.so.1
libdl.so.1 => /lib/libdl.so.1
/usr/platform/SUNW,Sun-Fire-280R/lib/libc_psr.so.1
16:09:32 (3) nagios at build: [/ $]
-----Original Message-----
From: Subhendu Ghosh [mailto:sghosh at sghosh.org]
Sent: Thursday, December 12, 2002 3:09 PM
To: nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] FW: [netsaint] check_snmp errors with
solaris8/sparc - No data recieved from host
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/
_______________________________________________
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