<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi Paul,</div><div><br></div><div>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.</div><div><br></div><div>However, I've determined that for all error messages to disappear, you must make three changes:</div><div><br></div><div>- Set memory_limit to a reasonable value (like 128M) in /etc/php5/cli/php.ini, it cannot be "-1".</div><div>- Modify /etc/cron.d/cacti to look like this:</div><div>"*/1 * * * * www-data php <b>--define suhosin.memory_limit=512M</b> /usr/share/cacti/site/poller.php >/dev/null 2>/var/log/cacti/poller-error.log"</div><div>- and modify /usr/share/cacti/site/poller.php, line 297 to look like this:</div><div>"$extra_args     = "-q <b>--define suhosin.memory_limit=512M</b> \"" . $config["base_path"] . "/cmd.php\"";"</div><div><br></div><div>Thanks,</div><br><div>
<span><img height="58" width="182" id="99c817aa-e2c2-4177-9fc0-c04a8893750f" apple-width="yes" apple-height="yes" src="cid:3397740431_6573995"></span><span class="Apple-style-span" style="color: rgb(21, 23, 187); font-family: Calibri, Verdana, Helvetica, Arial; font-size: 12px; font-style: italic; font-weight: bold; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="color: rgb(21, 23, 187); font-family: Calibri, Verdana, Helvetica, Arial; font-size: 12px; font-style: italic; font-weight: bold; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="color: rgb(21, 23, 187); font-family: Calibri, Verdana, Helvetica, Arial; font-size: 12px; font-style: italic; font-weight: bold; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><font face="Calibri, Verdana, Helvetica, Arial"><font color="#1517BB"><span style="font-size: 9pt; "><b><i><br></i></b></span></font></font><span style="font-size: 9pt; "><font face="Times New Roman">François Beaulieu<br>1194 Stanley<br>Montréal (Québec) H3B 2S7<br>Bureau: 514.667.0691 poste 2061<br>Courriel: <a href="mailto:francois.beaulieu@securebyknowledge.com">francois.beaulieu@securebyknowledge.com</a> | Web: <font color="#0000FB"><u><a href="http://www.securebyknowledge.com/">www.securebyknowledge.com</a></u></font> </font></span></span></span></span></span></span></span>
</div>
<br><div><div>On 2012-04-09, at 7:03 AM, Paul Gevers wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div>clone 566609 -1<br>reassign -1 php5-cli<br>retitle -1 provide proper memory_limit in /etc/php5/cli/php.ini<br>retitle 566609 add suhosin.memory_limit in /etc/cron.d/cacti<br>thanks<br><br>Sorry for not responding for such a long time.<br><br>Question, does this "--define suhosin.memory_limit=512M" also work if<br>php5-suhosin is not installed? I.e. does it break systems that don't use it?<br><br>Paul<br><br></div></blockquote></div><br></body></html>