Page 2 of 4
Re: NRPE:Unable to read output
Posted: Fri Jul 18, 2014 2:30 pm
by snapon_admin
Same problem.
Re: NRPE:Unable to read output
Posted: Fri Jul 18, 2014 2:31 pm
by abrist
Is the disk full? It is really odd as it builds the check_nrpe bin just fine, and then immediately has a stat error . . .
Re: NRPE:Unable to read output
Posted: Fri Jul 18, 2014 2:38 pm
by snapon_admin
Nope. Plus, you should know by now, I'm famous for my "odd" issues.
Code: Select all
[root@nagiosTEST nrpe-2.15]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup-lv_root
97G 30G 63G 32% /
tmpfs 3.9G 0 3.9G 0% /dev/shm
/dev/sda1 485M 50M 410M 11% /boot
Re: NRPE:Unable to read output
Posted: Mon Jul 21, 2014 11:13 am
by lmiltchev
Let's try to get some more info. Run the following commands:
Code: Select all
./configure --enable-command-args | tee /tmp/configure.txt
make | tee /tmp/make.txt
make install | tee /tmp/make-install.txt
then post the three files, that were generated from running the above commands in the /tmp (configure.txt, make.txt, and make-install.txt).
Re: NRPE:Unable to read output
Posted: Mon Jul 21, 2014 11:50 am
by snapon_admin
Attached.
Re: NRPE:Unable to read output
Posted: Mon Jul 21, 2014 4:02 pm
by tmcdonald
It *looks* like it made it this time. Let's find out:
Code: Select all
ls -l /usr/local/nagios/libexec/check_nrpe
Re: NRPE:Unable to read output
Posted: Tue Jul 22, 2014 11:29 am
by snapon_admin
It definitely does look like it took it that time.
Code: Select all
-rwxrwxr-x 1 nagios nagios 76769 Jul 21 16:14 /usr/local/nagios/libexec/check_nrpe
But, it's still showing the "Unable to read output" alert as warning and not unknown. Here is my modifications to nrpe.c. Note, the line that needed to be changed wasn't on line 1389, but line 1370.
Code: Select all
else if(!strcmp(buffer,"")) {
snprintf(buffer,sizeof(buffer)-1,"NRPE: Unable to read output\n");
result=STATE_UNKNOWN;
}
Re: NRPE:Unable to read output
Posted: Wed Jul 23, 2014 10:22 am
by abrist
What version of nrpe are you running?
Re: NRPE:Unable to read output
Posted: Wed Jul 23, 2014 10:38 am
by snapon_admin
The one that I just downloaded to modify is 2.15.
Re: NRPE:Unable to read output
Posted: Wed Jul 23, 2014 12:18 pm
by abrist
Dang, I might have been testing on a local branch of the source. I will test this change on a virgin 2.15 clone.