Cacti+PHP-PRCE upgrade+2 little time= :(

Earlier today I upgraded some ports on my FreeBSD box, and without thinking more about that, I went on living my life. About an hour ago I went in to check how things where going on. Cacti, my dear old friend, are so perfect for doing this. But, HEY!, where did all my stats go?

Time to investigate!
Cruising through cacti logs I came over my first clue.

POLLER: Poller[0] WARNING: Poller Output Table not Empty. Issues Found: 3, Data Sources: (DS[5]), ping(DS[32]), (DS[37])

Now what?
Google is my friend, but this time it was not much help…
Time to do some research. Let’s run the poller manually…

PHP Fatal error: Call to undefined function preg_match() in /usr/local/share/cacti/lib/functions.php on line 855

Hmm.. I could swear I remembered that PHP or some of the PHP components where updated today. Getting closer, it was time to give Google one more chance. I knew I could trust Google in the end! Getting closer and closer, and while reading up on php5-pcre, and how it now it is included in PHP, it was time to do some testing.

cd /usr/ports/devel/php5-pcre && make config

And guess what, you are presented with a dialog box that says:
[ ] BUNDLED_PCRE – Select if you use apache 2.0.x“.

Time to feel stupid..
Due to my lack of attention to the upgrade process, I’ve actually overlooked this. Since I also run Apache 2.0.x it is kind of self explaining? After a reinstall of php5-pcre with the right options, cacti was up and running again…

So today’s moral
Don’t just press enter on every default dialog box you see!!

Leave a Comments