Closed laghao closed 7 years ago
No idea. You need to trace the nrpe daemon with strace and see which command it actually executes.
Hi there here's the strace output, are you able to help me digging into this problem?
[root@monitoring ~]# /usr/lib64/nagios/plugins/check_nrpe -H 10.9.80.21 -c check_load
OK - load average: 0.00, 0.05, 0.07|load1=0.000;15.000;30.000;0; load5=0.050;10.000;25.000;0; load15=0.070;5.000;20.000;0;
[root@monitoring~]# /usr/lib64/nagios/plugins/check_nrpe -H 10.9.80.21 -c check_Oracle_tablespaces
NRPE: Unable to read output
[root@monitoring ~]# strace /usr/lib64/nagios/plugins/check_nrpe -H 10.9.80.21 -c check_Oracle_tablespaces
execve("/usr/lib64/nagios/plugins/check_nrpe", ["/usr/lib64/nagios/plugins/check_"..., "-H", "10.9.80.21", "-c", "check_Oracle_tablespaces"], [/* 22 vars */]) = 0
brk(0) = 0x17d2000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fac6c290000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
fstat(3, {st_mode=S_IFREG|0644, st_size=33601, ...}) = 0
mmap(NULL, 33601, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7fac6c287000
close(3) = 0
open("/lib64/libssl.so.10", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\360\205\1\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=454024, ...}) = 0
mmap(NULL, 2544944, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fac6be04000
mprotect(0x7fac6be68000, 2093056, PROT_NONE) = 0
mmap(0x7fac6c067000, 45056, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x63000) = 0x7fac6c067000
close(3) = 0
open("/lib64/libcrypto.so.10", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300\204\6\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=2025472, ...}) = 0
mmap(NULL, 4104152, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fac6ba1a000
mprotect(0x7fac6bbda000, 2097152, PROT_NONE) = 0
mmap(0x7fac6bdda000, 155648, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1c0000) = 0x7fac6bdda000
mmap(0x7fac6be00000, 16344, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fac6be00000
close(3) = 0
open("/lib64/libnsl.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240@\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=113584, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fac6c286000
mmap(NULL, 2198200, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fac6b801000
mprotect(0x7fac6b817000, 2093056, PROT_NONE) = 0
mmap(0x7fac6ba16000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15000) = 0x7fac6ba16000
mmap(0x7fac6ba18000, 6840, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fac6ba18000
close(3) = 0
open("/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0@\34\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=2118128, ...}) = 0
mmap(NULL, 3932672, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fac6b440000
mprotect(0x7fac6b5f6000, 2097152, PROT_NONE) = 0
mmap(0x7fac6b7f6000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1b6000) = 0x7fac6b7f6000
mmap(0x7fac6b7fc000, 16896, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fac6b7fc000
close(3) = 0
open("/lib64/libgssapi_krb5.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`\306\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=324888, ...}) = 0
mmap(NULL, 2414784, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fac6b1f2000
mprotect(0x7fac6b23d000, 2097152, PROT_NONE) = 0
mmap(0x7fac6b43d000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x4b000) = 0x7fac6b43d000
close(3) = 0
open("/lib64/libkrb5.so.3", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240U\2\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=959008, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fac6c285000
mmap(NULL, 3041536, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fac6af0b000
mprotect(0x7fac6afe1000, 2097152, PROT_NONE) = 0
mmap(0x7fac6b1e1000, 69632, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xd6000) = 0x7fac6b1e1000
close(3) = 0
open("/lib64/libcom_err.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0p\25\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=15848, ...}) = 0
mmap(NULL, 2109928, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fac6ad07000
mprotect(0x7fac6ad0a000, 2093056, PROT_NONE) = 0
mmap(0x7fac6af09000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7fac6af09000
close(3) = 0
open("/lib64/libk5crypto.so.3", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0pF\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=202568, ...}) = 0
mmap(NULL, 2298328, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fac6aad5000
mprotect(0x7fac6ab04000, 2093056, PROT_NONE) = 0
mmap(0x7fac6ad03000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2e000) = 0x7fac6ad03000
mmap(0x7fac6ad06000, 472, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fac6ad06000
close(3) = 0
open("/lib64/libdl.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0`\16\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=19776, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fac6c284000
mmap(NULL, 2109744, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fac6a8d1000
mprotect(0x7fac6a8d3000, 2097152, PROT_NONE) = 0
mmap(0x7fac6aad3000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7fac6aad3000
close(3) = 0
open("/lib64/libz.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0p!\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=90664, ...}) = 0
mmap(NULL, 2183688, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fac6a6bb000
mprotect(0x7fac6a6d0000, 2093056, PROT_NONE) = 0
mmap(0x7fac6a8cf000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x14000) = 0x7fac6a8cf000
close(3) = 0
open("/lib64/libkrb5support.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\3406\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=62744, ...}) = 0
mmap(NULL, 2156136, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fac6a4ac000
mprotect(0x7fac6a4b9000, 2097152, PROT_NONE) = 0
mmap(0x7fac6a6b9000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xd000) = 0x7fac6a6b9000
close(3) = 0
open("/lib64/libkeyutils.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\260\25\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=15688, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fac6c283000
mmap(NULL, 2109720, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fac6a2a8000
mprotect(0x7fac6a2ab000, 2093056, PROT_NONE) = 0
mmap(0x7fac6a4aa000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7fac6a4aa000
close(3) = 0
open("/lib64/libresolv.so.2", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\3209\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=111080, ...}) = 0
mmap(NULL, 2202264, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fac6a08e000
mprotect(0x7fac6a0a4000, 2097152, PROT_NONE) = 0
mmap(0x7fac6a2a4000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16000) = 0x7fac6a2a4000
mmap(0x7fac6a2a6000, 6808, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fac6a2a6000
close(3) = 0
open("/lib64/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\240l\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=143944, ...}) = 0
mmap(NULL, 2208864, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fac69e72000
mprotect(0x7fac69e89000, 2093056, PROT_NONE) = 0
mmap(0x7fac6a088000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16000) = 0x7fac6a088000
mmap(0x7fac6a08a000, 13408, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fac6a08a000
close(3) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fac6c282000
open("/lib64/libselinux.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300j\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=155744, ...}) = 0
mmap(NULL, 2255216, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fac69c4b000
mprotect(0x7fac69c6f000, 2093056, PROT_NONE) = 0
mmap(0x7fac69e6e000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x23000) = 0x7fac69e6e000
mmap(0x7fac69e70000, 6512, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7fac69e70000
close(3) = 0
open("/lib64/libpcre.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\360\25\0\0\0\0\0\0"..., 832) = 832
fstat(3, {st_mode=S_IFREG|0755, st_size=398264, ...}) = 0
mmap(NULL, 2490888, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7fac699ea000
mprotect(0x7fac69a4a000, 2093056, PROT_NONE) = 0
mmap(0x7fac69c49000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x5f000) = 0x7fac69c49000
close(3) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fac6c281000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fac6c280000
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fac6c27e000
arch_prctl(ARCH_SET_FS, 0x7fac6c27e840) = 0
mprotect(0x7fac6b7f6000, 16384, PROT_READ) = 0
mprotect(0x7fac6a088000, 4096, PROT_READ) = 0
mprotect(0x7fac69c49000, 4096, PROT_READ) = 0
mprotect(0x7fac6aad3000, 4096, PROT_READ) = 0
mprotect(0x7fac69e6e000, 4096, PROT_READ) = 0
mprotect(0x7fac6a2a4000, 4096, PROT_READ) = 0
mprotect(0x7fac6a4aa000, 4096, PROT_READ) = 0
mprotect(0x7fac6a6b9000, 4096, PROT_READ) = 0
mprotect(0x7fac6a8cf000, 4096, PROT_READ) = 0
mprotect(0x7fac6ad03000, 8192, PROT_READ) = 0
mprotect(0x7fac6af09000, 4096, PROT_READ) = 0
mprotect(0x7fac6b1e1000, 57344, PROT_READ) = 0
mprotect(0x7fac6b43d000, 4096, PROT_READ) = 0
mprotect(0x7fac6ba16000, 4096, PROT_READ) = 0
mprotect(0x7fac6bdda000, 106496, PROT_READ) = 0
mprotect(0x7fac6c067000, 16384, PROT_READ) = 0
mprotect(0x604000, 4096, PROT_READ) = 0
mprotect(0x7fac6c291000, 4096, PROT_READ) = 0
munmap(0x7fac6c287000, 33601) = 0
set_tid_address(0x7fac6c27eb10) = 13763
set_robust_list(0x7fac6c27eb20, 24) = 0
rt_sigaction(SIGRTMIN, {0x7fac69e78780, [], SA_RESTORER|SA_SIGINFO, 0x7fac69e81370}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x7fac69e78810, [], SA_RESTORER|SA_RESTART|SA_SIGINFO, 0x7fac69e81370}, NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RTMIN RT_1], NULL, 8) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
statfs("/sys/fs/selinux", 0x7fffad25fdf0) = -1 ENOENT (No such file or directory)
statfs("/selinux", 0x7fffad25fdf0) = -1 ENOENT (No such file or directory)
brk(0) = 0x17d2000
brk(0x17f3000) = 0x17f3000
open("/proc/filesystems", O_RDONLY) = 3
fstat(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fac6c28f000
read(3, "nodev\tsysfs\nnodev\trootfs\nnodev\tr"..., 1024) = 294
stat("/etc/sysconfig/64bit_strstr_via_64bit_strstr_sse2_unaligned", 0x7fffad25fcd0) = -1 ENOENT (No such file or directory)
read(3, "", 1024) = 0
close(3) = 0
munmap(0x7fac6c28f000, 4096) = 0
access("/etc/selinux/config", F_OK) = 0
access("/etc/system-fips", F_OK) = -1 ENOENT (No such file or directory)
open("/dev/urandom", O_RDONLY|O_NOCTTY|O_NONBLOCK) = 3
fstat(3, {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 9), ...}) = 0
poll([{fd=3, events=POLLIN}], 1, 10) = 1 ([{fd=3, revents=POLLIN}])
read(3, "\25\367\2659\4\272\324\217\20`o%B\371\316\2351\17\364\263\266\376\251\253\331Y\26\250\231\6*\33"..., 48) = 48
close(3) = 0
getuid() = 0
rt_sigaction(SIGALRM, {0x401fb0, [ALRM], SA_RESTORER|SA_RESTART, 0x7fac6b475250}, {SIG_DFL, [], 0}, 8) = 0
alarm(10) = 0
socket(PF_INET, SOCK_STREAM, IPPROTO_TCP) = 3
connect(3, {sa_family=AF_INET, sin_port=htons(5666), sin_addr=inet_addr("10.9.80.21")}, 16) = 0
brk(0) = 0x17f3000
brk(0x1814000) = 0x1814000
write(3, "\26\3\1\0x\1\0\0t\3\3Y>^\230;\325\267\343qS\322\r5s\300\205\246aFvH"..., 125) = 125
read(3, "\26\3\3\0:\2\0", 7) = 7
read(3, "\0006\3\3Y>^\230d\25y\332\350\271:\221\217J\331\371\271\365<B}h\335v\354\314\274V"..., 56) = 56
read(3, "\26\3\3\0\213", 5) = 5
read(3, "\f\0\0\207\0@\345f|\200\241\327q\226\377\210\340\314\202(K\250A\23\365g\351g\2:\263\242"..., 139) = 139
read(3, "\26\3\3\0\4", 5) = 5
read(3, "\16\0\0\0", 4) = 4
write(3, "\26\3\3\0F\20\0\0B\0@\207Q'\272\223\23\225\276lsv\302C8\4}\272{\ta\326"..., 126) = 126
read(3, "\26\3\3\0\252", 5) = 5
read(3, "\4\0\0\246\0\0\1,\0\240\20\350D\373g\237\251\255\273\373TP\r;\224\33\262p\367aj\f"..., 170) = 170
read(3, "\24\3\3\0\1", 5) = 5
read(3, "\1", 1) = 1
read(3, "\26\3\3\0(", 5) = 5
read(3, "\237hpa\367\177\244\254\371I\304\32\300O\213o2\372*\335'\7\200\261\316\261\177Y\226\213\336\213"..., 40) = 40
open("/dev/urandom", O_RDONLY) = 4
fstat(4, {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 9), ...}) = 0
ioctl(4, SNDCTL_TMR_TIMEBASE or SNDRV_TIMER_IOCTL_NEXT_DEVICE or TCGETS, 0x7fffad25f450) = -1 EINVAL (Invalid argument)
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fac6c28f000
read(4, "\302e]\364\216\\\203\363\177\1\355\206\v7z\322\233Q\363*\252?L\231\5J\\\260*\221*\373"..., 4096) = 4096
close(4) = 0
munmap(0x7fac6c28f000, 4096) = 0
write(3, "\27\3\3\4$\332.]Fa\266\34\3668\210t\335\24\265\4jk\277b\231\274\342\243)?\305."..., 1065) = 1065
read(3, "\27\3\3\4$", 5) = 5
read(3, "\237hpa\367\177\244\255F\221\223\237\311\6\2\332\217\231\364\304\4\256\376\325|\361\374K&\346B\340"..., 1060) = 1060
alarm(0) = 10
write(3, "\25\3\3\0\32\332.]Fa\266\34\367\275@\236\346`N\245\6j\3[\203\t\23(\337\302\351", 31) = 31
shutdown(3, SHUT_WR) = 0
select(4, [3], NULL, NULL, {1, 0}) = 1 (in [3], left {0, 999999})
recvfrom(3, "\25\3\3\0\32\237hpa\367\177\244\256g\244b\232Y\225hr\177\262\\\343\33\314\210\216\306\315", 1000, 0, NULL, NULL) = 31
select(4, [3], NULL, NULL, {1, 0}) = 1 (in [3], left {0, 999999})
recvfrom(3, "", 1000, 0, NULL, NULL) = 0
close(3) = 0
fstat(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 8), ...}) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7fac6c28f000
write(1, "NRPE: Unable to read output\n", 28NRPE: Unable to read output
) = 28
exit_group(3) = ?
+++ exited with 3 +++
That was an strace of check_nrpe. You need to strace the nrpe daemon on the database server.
Try This depending your starting nrpe daemon
Thanks for the feedback, actually setting up the environment in a wrapper did fix the problem, and a question for @sdouce did you find out this from strace ? if so how ? :)
Sorry i find it with an long experience troubleshooting NRPE .... I did'nt read your strace result . ;-) If you need to use DB2 plugins this will be the same resolution . Cheers !!!
I installed the [ https://labs.consol.de/nagios/check_oracle_health/ | check_oracle_health ] plugin and it's working when I execute it manually so I get the output message, but when I run it using nrpe I get the following error: "NRPE: Unable to read output"
Any ideas about the NRPE: Unable to read output problem ?