{"id":295,"date":"2013-09-12T08:46:24","date_gmt":"2013-09-12T08:46:24","guid":{"rendered":"https:\/\/olkn.myvnc.com\/?p=295"},"modified":"2013-09-12T08:46:24","modified_gmt":"2013-09-12T08:46:24","slug":"cacti-poller-settings","status":"publish","type":"post","link":"https:\/\/olkn.myvnc.com\/?p=295","title":{"rendered":"cacti-poller settings"},"content":{"rendered":"<p>after activating the cacti poller I get the following error:<br \/>\n<code>script tried to disable memory_limit by setting it to a negative value -1 bytes which is not allowed<\/code><br \/>\nafter some googling I found the following solution:<\/p>\n<ul>\n<li> the memory_limit must be set to a reasonable value (like 128M) in \/etc\/php5\/cli\/php.ini; value &#8220;-1&#8221; is not allowed<\/li>\n<li> the file \/etc\/cron.d\/cacti should be modified like this:<br \/>\n<code>\"*\/1 * * * * www-data php --define suhosin.memory_limit=512M \/usr\/share\/cacti\/site\/poller.php >\/dev\/null 2>\/var\/log\/cacti\/poller-error.log\"<\/code><\/li>\n<li> and the file \/usr\/share\/cacti\/site\/poller.php, line 297 as:<br \/>\n<code>\"$extra_args     = \"-q --define suhosin.memory_limit=512M \"\" . $config[\"base_path\"] . \"\/cmd.php\"\";\"<\/code><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>after activating the cacti poller I get the following error: script tried to disable memory_limit by setting it to a negative value -1 bytes which is not allowed after some googling I found the following solution: the memory_limit must be set to a reasonable value (like 128M) in \/etc\/php5\/cli\/php.ini; value &#8220;-1&#8221; is not allowed the &hellip; <a href=\"https:\/\/olkn.myvnc.com\/?p=295\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">cacti-poller settings<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10],"tags":[45,83,101,118],"class_list":["post-295","post","type-post","status-publish","format-standard","hentry","category-sniplets","tag-cacti","tag-memory_limit","tag-php-ini","tag-sniplets-2"],"_links":{"self":[{"href":"https:\/\/olkn.myvnc.com\/index.php?rest_route=\/wp\/v2\/posts\/295","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/olkn.myvnc.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/olkn.myvnc.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/olkn.myvnc.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/olkn.myvnc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=295"}],"version-history":[{"count":0,"href":"https:\/\/olkn.myvnc.com\/index.php?rest_route=\/wp\/v2\/posts\/295\/revisions"}],"wp:attachment":[{"href":"https:\/\/olkn.myvnc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=295"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/olkn.myvnc.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=295"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/olkn.myvnc.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=295"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}