Page 1 of 1
Receiving The script that failed was: './A-subcomponents'
Posted: Thu Jul 10, 2014 12:02 pm
by tfgroup
Hi,
Trying to install Nagios XI Centos agent an getting:
The script that failed was: './A-subcomponents'
attached is the install.log
Re: Receiving The script that failed was: './A-subcomponents
Posted: Thu Jul 10, 2014 5:09 pm
by scottwilkerson
Does this machine not have iptables on it?
If not you could bypass this step by running
Code: Select all
touch installed.firewall
./upgrade
Re: Receiving The script that failed was: './A-subcomponents
Posted: Fri Jul 11, 2014 9:38 am
by tfgroup
Thanks so much for your response!
I removed the entire linux-nrpe-agent directory and re-installed and had no issues this time.
What I am seeing now is:
CPU Stats NRPE: Unable to read output
Memory Usage NRPE: Unable to read output
Open Files NRPE: Unable to read output
all the other checks are reporting fine.
I have attached the nrpe.cfg and the libexec ls results.
Thanks for your assistance.
Re: Receiving The script that failed was: './A-subcomponents
Posted: Fri Jul 11, 2014 2:07 pm
by abrist
How was nrpe installed on the remote system? With our agent, or through source? Usually, the nrpe daemon is controlled by xinetd, so you may have to edit the xinetd settings to allow your nagios server to access the daemon remotely. See the following doc for more info:
http://assets.nagios.com/downloads/nagi ... utions.pdf
Re: Receiving The script that failed was: './A-subcomponents
Posted: Fri Jul 11, 2014 2:09 pm
by tmcdonald
Might be a permissions problem. Can you run the ls again but this time as "ls -l" for the long output?
Also, do you have anything listed in /usr/local/nagios/etc/nrpe? Your current NRPE config looks like it has nothing defined.
Re: Receiving The script that failed was: './A-subcomponents
Posted: Thu Jul 17, 2014 3:53 pm
by tfgroup
here is the ls -l
and the nrpe.conf file
I ran the linux server wizard and copied the nrpe.conf from the same centos 5.9 server in the cluster that has no issues.
Re: Receiving The script that failed was: './A-subcomponents
Posted: Thu Jul 17, 2014 3:56 pm
by tfgroup
this is the issue now:
NRPE: Unable to read output on check_nrpe!check_cpu_stats!-a '-w 85 -c 95'
Re: Receiving The script that failed was: './A-subcomponents
Posted: Thu Jul 17, 2014 5:23 pm
by abrist
Can you run the check from the cli?
Re: Receiving The script that failed was: './A-subcomponents
Posted: Mon Jul 21, 2014 10:06 am
by tfgroup
./check_cpu_stats.sh -w 85 -c 95
./check_cpu_stats.sh: line 139: [: 0.10: integer expression expected
./check_cpu_stats.sh: line 142: [: 0.10: integer expression expected
./check_cpu_stats.sh: line 152: [: 0.00: integer expression expected
./check_cpu_stats.sh: line 156: [: 0.10: integer expression expected
./check_cpu_stats.sh: line 160: [: 0.10: integer expression expected
./check_cpu_stats.sh: line 164: [: 99.80: integer expression expected
CPU STATISTICS OK: user=0.00% system=0.10% iowait=0.10% idle=99.80% | user=0.00% system=0.10% iowait=0.10%;85;95 idle=99.80%
Re: Receiving The script that failed was: './A-subcomponents
Posted: Mon Jul 21, 2014 1:13 pm
by slansing
What version of "check_cpu_stats" are you trying to use, can you provide a link to it's exchange listing? I'd like to try and reproduce this. If you could also attach the plugin itself here that would be great.