Cacti Graphs for Apache Not Working? Check Your IPv6

I was wondering earlier why my Apache Cacti graphs were all graphing 0s. Looking to test manually, I see it’s either 0s or -1s like below.

Looking at the Apache access log on the target server, I noticed Cacti was trying to connect to the IPv6 loopback address “::1”.

Fortunately this was easy to fix, either disable IPv6 on Apache or allow access to /server-status via the IPv6 loopback address.

From your httpd.conf, you can disable IPv6 by changing the Listen directive to:

Or adding the below Allow directive for /server-status section:

And voila!