Applications Systems
SAM Apache template Perl Error unable access to xxx
When setting up the Apache Perl template you receive the following message: SAM Apache template Perl Error unable access to xxx Testing on node '10.xx.xxxxxxxxxxxxxx.xxx' failed with 'Down' status ('Down' might be different if script exits with a different exit code). unable access to xxx Output: == perl /tmp/APM_1445605608.pl $ixxxx xxx Message: unable access to xx Statistic: 0 "; print "Statistic: 0\n"; exit
First published date
Last published date
Overview
When setting up the Apache Perl template according to these instructions, you receive the following message during testing:
Testing on node '10.xx.xxxxxxxxxxxxxx.xxx' failed with 'Down' status ('Down' might be different if script exits with a different exit code).
unable access to xxx
Output: =====================================================
perl /tmp/APM_1445605608.pl $ixxxx xxx
Message: unable access to xx
Statistic: 0
"; print "Statistic: 0\n"; exit
Product section
Cause
The body of the scripts must be modified to input your custom port as it does not support redirection.
Resolution
- Edit the Apache template.
- Expand the component monitors used in the SAM template.
- Edit the script body of each component and add after the $hostname: your custom port.
Example, if you have a custom port of 4400 you would replace: $url = "$hostname/server-status?auto&match=www&errors=0";
with:$url variable: $url = "$hostname:4400/server-status?auto&match=www&errors=0";