[Nagiosplug-devel] Last CVS check_snmp command problem

Pietro Bandera pietrob at lansystems.it
Fri Jul 11 07:35:12 CEST 2003


Hi all i found this problem in the last CVS check_snmp command

If i do the command 

./check_snmp 10.11.58.44 -C public -o
enterprises.ibm.ibmProd.ibmServeRaid.ibmServeRaidMIB.ibmServeRaidMibObje
cts.ibmServeRaidInfo.ibmServeRaidPhysDeviceTable.ibmServeRaidPhysDeviceE
ntry.ibmServeRaidPhysDeviceStatus.\"113\" -l Disco -s "online(2)"

Instead of having this output:

OK online(2)

I got this one

Could not open pipe: ./snmpget -m ALL -v 1 -c public 10.11.58.44:161
enterprises.ibm.ibmProd.ibmServeRaid.ibmServeRaidMIB.ibmServeRaidMibObje
cts.ibmServeRaidInfo.ibmServeRaidPhysDeviceTable.ibmServeRaidPhysDeviceE
ntry.ibmServeRaidPhysDeviceStatus."113"

Here there is the strace of the command


[root at dns plugins]# strace -v ./check_snmp 10.11.58.44 -C public -o
enterprises.ibm.ibmProd.ibmServeRaid.ibmServeRaidMIB.ibmServeRaidMibObje
cts.ibmServeRaidInfo.ibmServeRaidPhysDeviceTable.ibmServeRaidPhysDeviceE
ntry.ibmServeRaidPhysDeviceStatus.\"113\" -l Disco -s "online(2)"
execve("./check_snmp", ["./check_snmp", "10.11.58.44", "-C", "public",
"-o",
"enterprises.ibm.ibmProd.ibmServeRaid.ibmServeRaidMIB.ibmServeRaidMibObj
ects.ibmServeRaidInfo.ibmServeRaidPhysDeviceTable.ibmServeRaidPhysDevice
Entry.ibmServeRaidPhysDeviceStatus.\"113\"", "-l", "Disco", "-s",
"online(2)"], [/* 18 vars */]) = 0
uname({sysname="Linux", nodename="dns.lansystems.it",
release="2.4.18-24.7.x", version="#1 Fri Jan 31 07:06:03 EST 2003",
machine="i686"}) = 0
brk(0)                                  = 0x804e290
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_dev=makedev(104, 3), st_ino=17680, st_mode=S_IFREG|0644,
st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=56,
st_size=24707, st_atime=2003/07/11-16:35:39,
st_mtime=2003/06/13-17:18:16, st_ctime=2003/06/13-17:18:16}) = 0
old_mmap(NULL, 24707, PROT_READ, MAP_PRIVATE, 3, 0) = 0x40014000
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\0Pv\1B4\0"...,
1024) = 1024
fstat64(3, {st_dev=makedev(104, 3), st_ino=55883, st_mode=S_IFREG|0755,
st_nlink=1, st_uid=0, st_gid=0, st_blksize=4096, st_blocks=2752,
st_size=1402035, st_atime=2003/07/11-16:35:39,
st_mtime=2002/10/10-14:58:59, st_ctime=2002/11/08-12:21:58}) = 0
old_mmap(0x42000000, 1264960, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) =
0x42000000
mprotect(0x4212c000, 36160, PROT_NONE)  = 0
old_mmap(0x4212c000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED,
3, 0x12c000) = 0x4212c000
old_mmap(0x42131000, 15680, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x42131000
close(3)                                = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS,
-1, 0) = 0x4001b000
munmap(0x40014000, 24707)               = 0
brk(0)                                  = 0x804e290
brk(0x804e2c0)                          = 0x804e2c0
brk(0x804f000)                          = 0x804f000
getrlimit(0x4, 0xbffff2a0)              = 0
setrlimit(RLIMIT_CORE, {rlim_cur=0, rlim_max=RLIM_INFINITY}) = 0
fstat64(1, {st_dev=makedev(0, 6), st_ino=3, st_mode=S_IFCHR|0620,
st_nlink=1, st_uid=502, st_gid=5, st_blksize=1024, st_blocks=0,
st_rdev=makedev(136, 1), st_atime=2003/07/11-16:35:39,
st_mtime=2003/07/11-16:35:39, st_ctime=2003/07/11-16:25:28}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
0) = 0x40014000
write(1, "Could not open pipe: /usr/bin/sn"..., 271Could not open pipe:
/usr/bin/snmpget -t 1 -r 9 -m ALL -v 1 -c public 10.11.58.44:161
enterprises.ibm.ibmProd.ibmServeRaid.ibmServeRaidMIB.ibmServeRaidMibObje
cts.ibmServeRaidInfo.ibmServeRaidPhysDeviceTable.ibmServeRaidPhysDeviceE
ntry.ibmServeRaidPhysDeviceStatus."113"
) = 271
munmap(0x40014000, 4096)                = 0
_exit(3)                                = ?
[root at dns plugins]#




Lan Systems Srl
via Roncati 9
40143 Bologna (Italy)
tel +39 051 6150511
fax +39 051 6150535
mobile 348 7112587

 





More information about the Devel mailing list