I'm using the Cacti Template and script provided
HERE to draw statistics for my rig.
My ATI drivers hang from time to time and cgminer will just hang. What happens is that the perl script provided does not have timeouts and will also hang forever.
It seems that the problem in the provided perl script lies with IO::Socket::INET - even if you define timeout it won't terminate the script because the timeout is only of the IO:Socket handshake, and if the linux box is alive and cgminer is listening on it's API port (and it is, just not returning any reasults) the script will hang.
I found this old post discussing the same issue:
http://www.webmasterworld.com/forum13/3140.htmImplementing eval with alarm works just fine. Tested it myself
The problem with cacti and hanging perl script is that it started ruining my other graphs for the time scripts hang in the background. Also the logs started filling with these error messages:
07/04/2013 06:24:39 AM - SPINE: Poller[0] Host[76] ERROR: The NIFTY POPEN timed out
07/04/2013 06:24:14 AM - SPINE: Poller[0] Host[76] ERROR: The NIFTY POPEN timed out
07/04/2013 06:23:49 AM - SPINE: Poller[0] Host[76] ERROR: The NIFTY POPEN timed out
07/04/2013 06:23:24 AM - SPINE: Poller[0] Host[76] ERROR: The NIFTY POPEN timed out
07/04/2013 06:22:59 AM - SPINE: Poller[0] Host[76] ERROR: The NIFTY POPEN timed out
07/04/2013 06:22:34 AM - SPINE: Poller[0] Host[76] ERROR: The NIFTY POPEN timed out
07/04/2013 06:22:08 AM - SPINE: Poller[0] Host[76] ERROR: The NIFTY POPEN timed out
07/04/2013 06:21:43 AM - SPINE: Poller[0] Host[76] ERROR: The NIFTY POPEN timed out
07/04/2013 06:21:18 AM - SPINE: Poller[0] Host[76] ERROR: The NIFTY POPEN timed out
So... problem solved. But since I'm still a newbie in the forum and I'm not allowed to post anywhere else
I'm going to write this to the author post so he can implement it in the official version once my newbie limits drop
Anyone else is welcome to do it meanwhile.
-Ivan