PHP script for providing trending data to the Cacti poller