Cacti/spine

[SPINE latest] does not exist or is not executable - scripts

Closed this issue · 3 comments

Hi @TheWitness,

with latest patches merged i have these errors into cacti log:

2023-07-31 08:40:10 - SPINE: Poller[cacti-collector] PID[3607501] PT[140493405021760] Device[CACTI - APACHE - (SERVER)] ERROR: Problem executing POPEN. File 'perl /var/www/html/cacti/scripts/ws_apachestats.pl '10.8.30.201'' does not exist or is not executable.
2023-07-31 08:40:10 - SPINE: Poller[cacti-collector] PID[3607501] PT[140493405021760] Device[CACTI - APACHE - (SERVER)] ERROR: Problem executing POPEN. File 'perl /var/www/html/cacti/scripts/ws_apachestats.pl '10.8.30.201'' does not exist or is not executable.
2023-07-31 08:40:10 - SPINE: Poller[cacti-collector] PID[3607501] PT[140493405021760] Device[CACTI - APACHE - (SERVER)] ERROR: Problem executing POPEN. File 'perl /var/www/html/cacti/scripts/ws_apachestats.pl '10.8.30.201'' does not exist or is not executable.
2023-07-31 08:40:10 - SPINE: Poller[cacti-collector] PID[3607501] PT[140493405021760] Device[CACTI - APACHE - (SERVER)] ERROR: Problem executing POPEN. File 'perl /var/www/html/cacti/scripts/ws_apachestats.pl '10.8.30.201'' does not exist or is not executable.
2023-07-31 08:40:10 - SPINE: Poller[cacti-collector] PID[3607501] PT[140493405021760] Device[CACTI - APACHE - (SERVER)] ERROR: Problem executing POPEN. File 'perl /var/www/html/cacti/scripts/ws_apachestats.pl '10.8.30.201'' does not exist or is not executable.
2023-07-31 08:40:10 - SPINE: Poller[cacti-collector] PID[3607501] PT[140493405021760] Device[CACTI - APACHE - (SERVER)] ERROR: Problem executing POPEN. File 'perl /var/www/html/cacti/scripts/ws_apachestats.pl '10.8.30.201'' does not exist or is not executable.

If you can see isn't the case, script is present and executable:
ls -lrt /var/www/html/cacti/scripts/ws_apachestats.pl
-rwxrwxr-x 1 www-data www-data 3405 Apr 17 2017 /var/www/html/cacti/scripts/ws_apachestats.pl

perl /var/www/html/cacti/scripts/ws_apachestats.pl 127.0.0.1
apache_total_hits:43082 apache_total_kbytes:282741 apache_busy_workers:1 apache_idle_workers:9 thread_O:140 threadC:0 threadD:0 threadG:0 threadI:0 threadK:0 threadL:0 threadR:0 threadS:0 threadW:1 thread_W:9 apache_cpuload:.0216556r

can you check? thanks a lot. stefano.

Funny, we were talking about just this before I made the change. There are two options, I make another change that allows some known commands without a path, or we change the data input method.

I have made a modification to configuration of the script server and now it working:

from
perl <path_cacti>/scripts/ws_apachestats.pl

to
/usr/bin/perl <path_cacti>/scripts/ws_apachestats.pl

thanks. stefano.

I've now updated to at least search for these missing paths in /usr/bin/