So I installed Cacti on two servers, one of them are production and one is a fresh one to allow me to fool around with.
Anyways, I started off on the prodserver using aptitude install cacti and that one worked like a charm. But cacti on debian came without PIA so
I decided to install using the tarballs.
Fixed me a cacti.domain.tld in /var/www/cacti and installed from there. Fixed the mysql stuff as well using phpmyadmin to setup the cacti user and to import the sql-file. No problems so far.
Did the install with green lights all over. And I use www-data to run the crontab since since it's the apache user and stuff.
Code: Select all
*/5 * * * * www-data php /var/www/cacti-0.8.7i-PIA-3.1/poller.php > /dev/null 2>&1
But after I added a device, no graph was showing up. I have read many pages on this forum but still nothing. I have read gandalfs signature over and over but still have no cluet to what can be wrong.
There is no error reporting going on either when I turn on debuggin in the cacti system. Only this as far as I can tell from syslog:
Code: Select all
suhosin[23276]: ALERT - script tried to disable memory_limit by setting it to a negative value -1 bytes which is not allowed (attacker 'REMOTE_ADDR not set', file 'unknown')
So after beginning to loose some serious hair, I decided to install a fresh debian system. So doing everything above -except installing the debian cacti package. And I did it to be sure there was no problems with snmp/snmpd.
Eventually after installing rrdtool,mysql, php5-gd, snmp/snmpd I still see no graphs on none of the servers.
By the way, this is from the syslog on the "toy-around-server"
Code: Select all
Mar 31 19:05:01 debianmac /USR/SBIN/CRON[2893]: (www-data) CMD (www-data php /www/cacti/poller.php > /dev/null 2>&1)
Mar 31 19:05:01 debianmac /USR/SBIN/CRON[2891]: (CRON) error (grandchild #2893 failed with exit status 127)
So can the problem be with the user www-data?
What have I overlooked?!
There has to be some simple stuff...
Let me know if I should post some stuff from the servers. Lets use the toy server since I can do whatever without being afraid of breaking some production stuff