Receiving The script that failed was: './A-subcomponents'

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
tfgroup
Posts: 13
Joined: Mon Apr 07, 2014 8:56 am

Receiving The script that failed was: './A-subcomponents'

Post by tfgroup »

Hi,
Trying to install Nagios XI Centos agent an getting:
The script that failed was: './A-subcomponents'
attached is the install.log
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Receiving The script that failed was: './A-subcomponents

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
tfgroup
Posts: 13
Joined: Mon Apr 07, 2014 8:56 am

Re: Receiving The script that failed was: './A-subcomponents

Post 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.
You do not have the required permissions to view the files attached to this post.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Receiving The script that failed was: './A-subcomponents

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Receiving The script that failed was: './A-subcomponents

Post 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.
Former Nagios employee
tfgroup
Posts: 13
Joined: Mon Apr 07, 2014 8:56 am

Re: Receiving The script that failed was: './A-subcomponents

Post 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.
You do not have the required permissions to view the files attached to this post.
tfgroup
Posts: 13
Joined: Mon Apr 07, 2014 8:56 am

Re: Receiving The script that failed was: './A-subcomponents

Post by tfgroup »

this is the issue now:
NRPE: Unable to read output on check_nrpe!check_cpu_stats!-a '-w 85 -c 95'
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Receiving The script that failed was: './A-subcomponents

Post by abrist »

Can you run the check from the cli?

Code: Select all

./check_cpu_stats.sh -w 85 -c 95
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
tfgroup
Posts: 13
Joined: Mon Apr 07, 2014 8:56 am

Re: Receiving The script that failed was: './A-subcomponents

Post 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%
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Receiving The script that failed was: './A-subcomponents

Post 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.
Locked