[Pkg-cacti-maint] Bug#566609: bug not in cacti

Francois Beaulieu francois.beaulieu at securebyknowledge.com
Tue May 1 15:51:55 UTC 2012


Hi Paul,

I've confirmed that cacti continues to work with "--define suhosin.memory_limit=512M" specified and php5-suhosin uninstalled. There seems to be no negative impact on having it specified when not using suhosin.

However, I've determined that for all error messages to disappear, you must make three changes:

- Set memory_limit to a reasonable value (like 128M) in /etc/php5/cli/php.ini, it cannot be "-1".
- Modify /etc/cron.d/cacti to look like this:
"*/1 * * * * www-data php --define suhosin.memory_limit=512M /usr/share/cacti/site/poller.php >/dev/null 2>/var/log/cacti/poller-error.log"
- and modify /usr/share/cacti/site/poller.php, line 297 to look like this:
"$extra_args     = "-q --define suhosin.memory_limit=512M \"" . $config["base_path"] . "/cmd.php\"";"

Thanks,

[cid:3397740431_6573995]
François Beaulieu
1194 Stanley
Montréal (Québec) H3B 2S7
Bureau: 514.667.0691 poste 2061
Courriel: francois.beaulieu at securebyknowledge.com<mailto:francois.beaulieu at securebyknowledge.com> | Web: www.securebyknowledge.com<http://www.securebyknowledge.com/>

On 2012-04-09, at 7:03 AM, Paul Gevers wrote:

clone 566609 -1
reassign -1 php5-cli
retitle -1 provide proper memory_limit in /etc/php5/cli/php.ini
retitle 566609 add suhosin.memory_limit in /etc/cron.d/cacti
thanks

Sorry for not responding for such a long time.

Question, does this "--define suhosin.memory_limit=512M" also work if
php5-suhosin is not installed? I.e. does it break systems that don't use it?

Paul


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-cacti-maint/attachments/20120501/cccae065/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 6766 bytes
Desc: image.png
URL: <http://lists.alioth.debian.org/pipermail/pkg-cacti-maint/attachments/20120501/cccae065/attachment.png>


More information about the Pkg-cacti-maint mailing list