truss check_nrpe

Edwin Zoeller Edwin.Zoeller at ama-assn.org
Tue Jan 30 18:04:29 CET 2007


 When I run check_nrpe from the Nagios monitoring box it takes an
average of 25 seconds to bring back a return code. If I run the same
command locally it takes about 1 second. I have supplied a truss output
from my Nagios monitoring server and any help would be great.

-----Original Message-----
From: ezoeller at netmon01.ama-assn.org
[mailto:ezoeller at netmon01.ama-assn.org] 
Sent: Tuesday, January 30, 2007 10:52 AM
To: Edwin Zoeller
Subject: truss check_nrpe


netmon01 @ /apps/nagios/current/libexec > truss ./check_nrpe -H prds01
-t 300 -c check_advantage execve("check_nrpe", 0x08047E04, 0x08047E24)
argc = 7 resolvepath("/usr/lib/ld.so.1", "/lib/ld.so.1", 1023) = 12
getcwd("/apps/nagios/2.5/libexec", 1012)        = 0
resolvepath("/apps/nagios/2.5/libexec/check_nrpe",
"/apps/nagios/2.5/libexec/check_nrpe", 1023) = 35
sysconfig(_CONFIG_PAGESIZE)                     = 4096
xstat(2, "/apps/nagios/2.5/libexec/check_nrpe", 0x08047BF8) = 0
open("/var/ld/ld.config", O_RDONLY)             = 3
fxstat(2, 3, 0x08047B30)                        = 0
mmap(0x00000000, 112, PROT_READ, MAP_SHARED, 3, 0) = 0xFEFC0000
close(3)                                        = 0
xstat(2, "/usr/local/ssl/lib/libssl.so.0.9.8", 0x08047490) = 0
resolvepath("/usr/local/ssl/lib/libssl.so.0.9.8",
"/usr/local/ssl/lib/libssl.so.0.9.8", 1023) = 34
open("/usr/local/ssl/lib/libssl.so.0.9.8", O_RDONLY) = 3
mmap(0x00010000, 4096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ALIGN, 3, 0)
= 0xFEFB0000 mmap(0x00010000, 303104, PROT_NONE,
MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFEF60000
mmap(0xFEF60000, 223814, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xFEF60000 mmap(0xFEFA6000,
15344, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3, 221184) = 0xFEFA6000
munmap(0xFEF97000, 61440)                       = 0
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFEF50000 memcntl(0xFEF60000, 39640,
MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
close(3)                                        = 0
xstat(2, "/usr/local/ssl/lib/libcrypto.so.0.9.8", 0x08047490) = 0
resolvepath("/usr/local/ssl/lib/libcrypto.so.0.9.8",
"/usr/local/ssl/lib/libcrypto.so.0.9.8", 1023) = 37
open("/usr/local/ssl/lib/libcrypto.so.0.9.8", O_RDONLY) = 3
mmap(0xFEFB0000, 4096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0)
= 0xFEFB0000 mmap(0x00010000, 1310720, PROT_NONE,
MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFEE00000
mmap(0xFEE00000, 1151957, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xFEE00000 mmap(0xFEF29000,
83936, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3, 1150976) = 0xFEF29000
mmap(0xFEF3E000, 7944, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED|MAP_ANON, -1, 0) = 0xFEF3E000
munmap(0xFEF1A000, 61440)                       = 0
memcntl(0xFEE00000, 215564, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
close(3)                                        = 0
xstat(2, "/usr/local/ssl/lib/libnsl.so.1", 0x08047490) Err#2 ENOENT
xstat(2, "/usr/sfw/lib/libnsl.so.1", 0x08047490) Err#2 ENOENT
xstat(2, "/lib/libnsl.so.1", 0x08047490)        = 0
resolvepath("/lib/libnsl.so.1", "/lib/libnsl.so.1", 1023) = 16
open("/lib/libnsl.so.1", O_RDONLY)              = 3
mmap(0xFEFB0000, 4096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0)
= 0xFEFB0000 mmap(0x00010000, 577536, PROT_NONE,
MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFED70000
mmap(0xFED70000, 522485, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xFED70000 mmap(0xFEDF0000,
19753, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3,
524288) = 0xFEDF0000 mmap(0xFEDF5000, 29920, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANON, -1, 0) = 0xFEDF5000 memcntl(0xFED70000,
57484, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
close(3)                                        = 0
xstat(2, "/usr/local/ssl/lib/libsocket.so.1", 0x08047490) Err#2 ENOENT
xstat(2, "/usr/sfw/lib/libsocket.so.1", 0x08047490) Err#2 ENOENT
xstat(2, "/lib/libsocket.so.1", 0x08047490)     = 0
resolvepath("/lib/libsocket.so.1", "/lib/libsocket.so.1", 1023) = 19
open("/lib/libsocket.so.1", O_RDONLY)           = 3
mmap(0xFEFB0000, 4096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0)
= 0xFEFB0000 mmap(0x00010000, 114688, PROT_NONE,
MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFED50000
mmap(0xFED50000, 43330, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xFED50000 mmap(0xFED6B000,
2605, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3,
45056) = 0xFED6B000
munmap(0xFED5B000, 65536)                       = 0
memcntl(0xFED50000, 11632, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
close(3)                                        = 0
xstat(2, "/usr/local/ssl/lib/libc.so.1", 0x08047490) Err#2 ENOENT
xstat(2, "/usr/sfw/lib/libc.so.1", 0x08047490)  Err#2 ENOENT
xstat(2, "/lib/libc.so.1", 0x08047490)          = 0
resolvepath("/lib/libc.so.1", "/lib/libc.so.1", 1023) = 14
open("/lib/libc.so.1", O_RDONLY)                = 3
mmap(0xFEFB0000, 4096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0)
= 0xFEFB0000 mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFED40000 mmap(0x00010000, 851968,
PROT_NONE, MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) =
0xFEC60000 mmap(0xFEC60000, 751381, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xFEC60000 mmap(0xFED28000,
24239, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3,
753664) = 0xFED28000 mmap(0xFED2E000, 5656, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANON, -1, 0) = 0xFED2E000
munmap(0xFED18000, 65536)                       = 0
memcntl(0xFEC60000, 120400, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
close(3)                                        = 0
xstat(2, "/usr/local/lib/libcrypto.so.0.9.8", 0x08047490) Err#2 ENOENT
xstat(2, "/usr/local/lib/libsocket.so.1", 0x08047490) Err#2 ENOENT
xstat(2, "/usr/local/ssl/lib/libsocket.so.1", 0x08047490) Err#2 ENOENT
xstat(2, "/usr/local/lib/libnsl.so.1", 0x08047490) Err#2 ENOENT xstat(2,
"/usr/local/ssl/lib/libnsl.so.1", 0x08047490) Err#2 ENOENT xstat(2,
"/usr/local/lib/libdl.so.1", 0x08047490) Err#2 ENOENT xstat(2,
"/usr/local/ssl/lib/libdl.so.1", 0x08047490) Err#2 ENOENT
xstat(2, "/lib/libdl.so.1", 0x08047490)         = 0
resolvepath("/lib/libdl.so.1", "/lib/libdl.so.1", 1023) = 15
open("/lib/libdl.so.1", O_RDONLY)               = 3
mmap(0xFEFB0000, 4096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED, 3, 0)
= 0xFEFB0000
close(3)                                        = 0
xstat(2, "/usr/local/lib/libgcc_s.so.1", 0x08047490) = 0
resolvepath("/usr/local/lib/libgcc_s.so.1",
"/usr/local/lib/libgcc_s.so.1", 1023) = 28
open("/usr/local/lib/libgcc_s.so.1", O_RDONLY)  = 3 mmap(0x00010000,
4096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ALIGN, 3, 0) = 0xFEC50000
mmap(0x00010000, 94208, PROT_NONE,
MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFEC30000
mmap(0xFEC30000, 25184, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 3, 0) = 0xFEC30000 mmap(0xFEC46000,
3372, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 3, 24576) = 0xFEC46000
munmap(0xFEC37000, 61440)                       = 0
memcntl(0xFEC30000, 4984, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
close(3)                                        = 0
xstat(2, "/usr/local/lib/libsocket.so.1", 0x08047490) Err#2 ENOENT
xstat(2, "/usr/local/ssl/lib/libsocket.so.1", 0x08047490) Err#2 ENOENT
xstat(2, "/usr/local/lib/libnsl.so.1", 0x08047490) Err#2 ENOENT xstat(2,
"/usr/local/ssl/lib/libnsl.so.1", 0x08047490) Err#2 ENOENT xstat(2,
"/usr/local/lib/libdl.so.1", 0x08047490) Err#2 ENOENT xstat(2,
"/usr/local/ssl/lib/libdl.so.1", 0x08047490) Err#2 ENOENT xstat(2,
"/usr/local/lib/libc.so.1", 0x08047490) Err#2 ENOENT xstat(2,
"/usr/local/ssl/lib/libc.so.1", 0x08047490) Err#2 ENOENT
mmap(0x00000000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFEC20000
munmap(0xFEC50000, 4096)                        = 0
mmap(0x00010000, 24576, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFEC50000
getcontext(0x08047990)
getrlimit(RLIMIT_STACK, 0x08047988)             = 0
getpid()                                        = 1191 [1190]
lwp_private(0, 1, 0xFEC52000)                   = 0x000001C3
setustack(0xFEC52060)
sigfillset(0xFED2E6E8)                          = 0
sysconfig(_CONFIG_STACK_PROT)                   = 7
sysi86(SI86FPSTART, 0xFED2ECD8, 0x0000133F, 0x00001F80) = 0x00000001
brk(0x08064A30)                                 = 0
brk(0x08066A30)                                 = 0
sysconfig(_CONFIG_PAGESIZE)                     = 4096
brk(0x08066A30)                                 = 0
brk(0x08068A30)                                 = 0
brk(0x08068A30)                                 = 0
brk(0x0806AA30)                                 = 0
brk(0x0806AA30)                                 = 0
brk(0x0806CA30)                                 = 0
brk(0x0806CA30)                                 = 0
brk(0x0806EA30)                                 = 0
brk(0x0806EA30)                                 = 0
brk(0x08070A30)                                 = 0
brk(0x08070A30)                                 = 0
brk(0x08072A30)                                 = 0
brk(0x08072A30)                                 = 0
brk(0x08074A30)                                 = 0
sigaction(SIGALRM, 0x080474D0, 0x08047550)      = 0
alarm(300)                                      = 0
brk(0x08074A30)                                 = 0
brk(0x08076A30)                                 = 0
open("/etc/netconfig", O_RDONLY|O_LARGEFILE)    = 3
fcntl(3, F_DUPFD, 0x00000100)                   Err#22 EINVAL
read(3, " # p r a g m a   i d e n".., 1024)     = 1024
read(3, " t s           t p i _ c".., 1024)     = 215
read(3, 0x080757A0, 1024)                       = 0
lseek(3, 0, SEEK_SET)                           = 0
read(3, " # p r a g m a   i d e n".., 1024)     = 1024
read(3, " t s           t p i _ c".., 1024)     = 215
read(3, 0x080757A0, 1024)                       = 0
close(3)                                        = 0
open("/dev/udp", O_RDONLY)                      = 3
ioctl(3, SIOCGLIFNUM, 0x08047468)               = 0
close(3)                                        = 0
open64("/var/run/name_service_door", O_RDONLY)  = 3
fcntl(3, F_SETFD, 0x00000001)                   = 0
door_info(3, 0xFED2E3A0)                        = 0
door_call(3, 0x080453D8)                        = 0
open("/etc/nsswitch.conf", O_RDONLY|O_LARGEFILE) = 4
fcntl(4, F_DUPFD, 0x00000100)                   Err#22 EINVAL
read(4, " #\n #   / e t c / n s s".., 1024)     = 1024
mmap(0x00010000, 65536, PROT_READ|PROT_WRITE|PROT_EXEC,
MAP_PRIVATE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFEC00000
read(4, " f i l e s\n s e r v i c".., 1024)     = 100
read(4, 0xFEC52400, 1024)                       = 0
close(4)                                        = 0
xstat(2, "/lib/nss_files.so.1", 0x08046C60)     = 0
resolvepath("/lib/nss_files.so.1", "/lib/nss_files.so.1", 1023) = 19
open("/lib/nss_files.so.1", O_RDONLY)           = 4
mmap(0x00010000, 4096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_ALIGN, 4, 0)
= 0xFEBF0000 mmap(0x00010000, 90112, PROT_NONE,
MAP_PRIVATE|MAP_NORESERVE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFEBD0000
mmap(0xFEBD0000, 17470, PROT_READ|PROT_EXEC,
MAP_PRIVATE|MAP_FIXED|MAP_TEXT, 4, 0) = 0xFEBD0000 mmap(0xFEBE5000,
1104, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_INITDATA, 4,
20480) = 0xFEBE5000
munmap(0xFEBD5000, 65536)                       = 0
memcntl(0xFEBD0000, 4580, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0
close(4)                                        = 0
munmap(0xFEBF0000, 4096)                        = 0
open("/etc/protocols", O_RDONLY|O_LARGEFILE)    = 4
fcntl(4, F_DUPFD, 0x00000100)                   Err#22 EINVAL
read(4, " #   C o p y r i g h t  ".., 1024)     = 1024
close(4)                                        = 0
so_socket(PF_INET, SOCK_STREAM, IPPROTO_TCP, "", SOV_DEFAULT) = 4
connect(4, 0x08047530, 16, SOV_DEFAULT)         = 0
brk(0x08076A30)                                 = 0
brk(0x08078A30)                                 = 0
time()                                          = 1170175285
getpid()                                        = 1191 [1190]
brk(0x08078A30)                                 = 0
brk(0x0807CA30)                                 = 0
brk(0x0807CA30)                                 = 0
brk(0x08080A30)                                 = 0
brk(0x08080A30)                                 = 0
brk(0x08086A30)                                 = 0
time()                                          = 1170175285
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
open("/dev/urandom", O_RDONLY|O_NONBLOCK|O_NOCTTY) = 5
fxstat(2, 5, 0x08047230)                        = 0
pollsys(0x080470B0, 1, 0x08047130, 0x00000000)  = 1
read(5, "CB =FE98 !B2 > (8B9CC7 X".., 32)       = 32
close(5)                                        = 0
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getuid()                                        = 0 [0]
getpid()                                        = 1191 [1190]
time()                                          = 1170175285
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
write(4, "160301\0 901\0\0 50301 E".., 62)      = 62
read(4, "160301\0 J02\0", 7)                    = 7
brk(0x08086A30)                                 = 0
brk(0x08088A30)                                 = 0
time()                                          = 1170175285
time()                                          = 1170175285
getpid()                                        = 1191 [1190]
read(4, "\0 F0301 EBF u 51BFFE7 s".., 72)       = 72
read(4, "160301\08B", 5)                        = 5
read(4, "\f\0\087\0 @B5C7 vF5D593".., 139)      = 139
read(4, "160301\004", 5)                        = 5
read(4, "0E\0\0\0", 4)                          = 4
time()                                          = 1170175285
getpid()                                        = 1191 [1190]
getpid()                                        = 1191 [1190]
write(4, "160301\0 F10\0\0 B\0 @99".., 134)     = 134
read(4, "140301\001", 5)                        = 5
read(4, "01", 1)                                = 1
read(4, "160301\0 0", 5)                        = 5
read(4, " CC1 r (F59F |1EAB9B92 ;".., 48)       = 48
open("/dev/urandom", O_RDONLY)                  = 5
fstat64(5, 0x08047460)                          = 0
fstat64(5, 0x080473A0)                          = 0
ioctl(5, TCGETA, 0x08047434)                    Err#6 ENXIO
read(5, " :99B115F1\bC3C4 c8E1FD9".., 8192)     = 1040
llseek(5, 0xFFFFFFFFFFFFFBF1, SEEK_CUR)         = 1
close(5)                                        = 0
write(4, "170301\0   PB2 S84 6 m o".., 1114)    = 1114
read(4, 0x0807BBB8, 5)          (sleeping...)
read(4, "170301\0  ", 5)                        = 5
read(4, "FB10B89C9DE701BE\fFA u V".., 32)       = 32
read(4, "17030104 0", 5)                        = 5
read(4, " ,D4C9931A j9F91C115B0 b".., 1072)     = 1072
alarm(0)                                        = 272
write(4, "150301\0  1A88AE94 e Y1E".., 37)      = 37
close(4)                                        = 0
ioctl(1, TCGETA, 0x08047464)                    = 0
fstat64(1, 0x080473D0)                          = 0
Ok
write(1, " O k\n", 3)                           = 3
_exit(0)

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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