Cacti Troubles

I’m having difficulties with the Canopy templates found here:
http://forums.cacti.net/about4345-0-asc-0.html#27990

08/01/2006 06:40:03 PM - CMDPHP: Poller[0] Host[6] DS[36] CMD: perl /var/www/htdocs/cacti/scripts/getCanopyApStats.pl 10.20.101.50 Canopy tempC, output: U
08/01/2006 06:40:03 PM - CMDPHP: Poller[0] Host[6] DS[35] CMD: perl /var/www/htdocs/cacti/scripts/getCanopyApStats.pl 10.20.101.50 Canopy regCount, output: U

Why does this happen? If I execute the exact same command it works great. I’m using the latest stable cacti release (cacti-0.8.6h)

Any ideas would be appreciated. I’ve tried all the obvious (permissions, appending /usr/bin/perl to the beginning of the data input command, etc.)

This is driving me crazy.

Did you clear the Poller Cache after modifying the data input command? As that is required (since its all cached), and from the errors you posted, its not using the full path. Also, are you manually running the script via the same user that the poller is running as? Most people tend to test via root, but their cronjob runs as apache.

I changed it to /usr/bin/perl and cleared the poller cache.

08/11/2006 10:50:03 AM - CMDPHP: Poller[0] Host[4] DS[17] WARNING: Result from CMD not valid. Partial Result:
08/11/2006 10:50:03 AM - CMDPHP: Poller[0] Host[4] DS[17] CMD: /usr/bin/perl /var/www/htdocs/cacti/scripts/getCanopyApStats.pl 10.20.101.50 Canopy tempC, output: U

I can run the same command from the cacti user or the user PHP is running as and it will return a good output. Any ideas?