Bitcoin Forum
May 27, 2024, 09:41:16 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Cacti Template for CGMINER - timeout fix  (Read 1545 times)
xenocit (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
July 04, 2013, 08:18:22 AM
 #1

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.htm
Implementing eval with alarm works just fine. Tested it myself Smiley

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 Smiley I'm going to write this to the author post so he can implement it in the official version once my newbie limits drop Smiley Anyone else is welcome to do it meanwhile.

-Ivan
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!