On Sat, Jan 12, 2008, Victor G. Bolshakov wrote: > While installing cacti under openpkg i found several problems. > First - Cacti poller executed through apache using this command from > cacti-cron.sh > "/openpkg/bin/wget -qO /dev/null http://$server/cacti/poller.php || > true" > actually poller.php not work from web server and return: > "<br><strong>This script is only meant to run at the command > line.</strong>" > > This problem very easy to solve - comment this string and add > /openpkg/bin/php /openpkg/share/cacti/poller.php > /dev/null 2>&1
Now fixed. > But next problem that poller.php return > sh: /usr/local/php/bin/php: not found > sh: /usr/local/php/bin/rrdtool: not found > Last time i correct this using bad hack - put copy of "php" and "rrdtool" > into "/usr/local//php/bin/". Now i try to find real problem, but without > any suspect. > > Anyone using cacti under openpkg? Are there better way to correct this > problem? > > Forgot to note that i got this problem under Solaris 10 (Sparc) and FreeBSD > 6.2 on x86. Should be now fixed, too. At least when one reinstalls Cacti from scratch. I hacked the installer so it now checks for <prefix>/{bin,sbin} first when searching the tools like php(1) and rrdtool(1). Ralf S. Engelschall [EMAIL PROTECTED] www.engelschall.com ______________________________________________________________________ OpenPKG http://openpkg.org User Communication List openpkg-users@openpkg.org