check_snmp hanging

Jeff Rodriguez jeff at unixisgod.com
Tue Jan 27 02:16:53 CET 2004


[jrod at linmon1 jrod]$ snmpget -V
NET-SNMP version: 5.1


[jrod at linmon1 jrod]$ strace ./nagios-plugins-1.3.1/plugins/check_snmp -H 
xxx.xxx.xxx.xxx -P 1 -C community -t 5 -o .1.3.6.1.2.1.1.5.0
execve("./nagios-plugins-1.3.1/plugins/check_snmp", 
["./nagios-plugins-1.3.1/plugins/check_snmp", "-H", "xxx.xxx.xxx.xxx", 
"-P", "1", "-C", "community", "-t", "5", "-o", ".1.3.6.1.2.1.1.5.0"], 
[/* 22 vars */]) = 0
uname({sys="Linux", node="hidden.somewhere.com", ...}) = 0
brk(0)                                  = 0x804f410
open("/etc/ld.so.preload", O_RDONLY)    = -1 ENOENT (No such file or 
directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=27770, ...}) = 0
old_mmap(NULL, 27770, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40017000
close(3)                                = 0
open("/lib/i686/libc.so.6", O_RDONLY)   = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0 \306\1"..., 
1024) = 1024
fstat64(3, {st_mode=S_IFREG|0755, st_size=5772268, ...}) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, 
-1, 0) = 0x4001e000
old_mmap(NULL, 1290088, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x4001f000
mprotect(0x40151000, 36712, PROT_NONE)  = 0
old_mmap(0x40151000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 
3, 0x131000) = 0x40151000
old_mmap(0x40156000, 16232, PROT_READ|PROT_WRITE, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x40156000
close(3)                                = 0
munmap(0x40017000, 27770)               = 0
brk(0)                                  = 0x804f410
brk(0x804f430)                          = 0x804f430
brk(0x8050000)                          = 0x8050000
getrlimit(0x4, 0xbffff590)              = 0
setrlimit(RLIMIT_CORE, {rlim_cur=0, rlim_max=RLIM_INFINITY}) = 0
getrlimit(0x7, 0xbffff528)              = 0
brk(0x8052000)                          = 0x8052000
pipe([3, 4])                            = 0
pipe([5, 6])                            = 0
fork()                                  = 15984
close(4)                                = 0
fcntl64(0x3, 0x3, 0x40016998, 0)        = 0
fstat64(3, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 
0) = 0x40017000
_llseek(3, 0, 0xbffff3d0, SEEK_CUR)     = -1 ESPIPE (Illegal seek)
close(6)                                = 0
fcntl64(0x5, 0x3, 0x3, 0)               = 0
fstat64(5, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 
0) = 0x40018000
_llseek(5, 0, 0xbffff420, SEEK_CUR)     = -1 ESPIPE (Illegal seek)
read(3,


There it hangs, has anyone else had and fixed this problem?

Note: I've verified SNMP works on the target host.

Jeff


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list