Wow that's great.. i'll try it out...llull wrote:NOW SOLVED !!!!
I was experiencing the same problem: thresholds not triggering after upgrade of thold to 0.4.3 or 0.4.4.
The problem seemed in the conversion of the graph which has to be sent by email, and was related to PHP, as it is used for converting PNG -> JPG.
To make THOLD trigger working again (and email to be sent) I only made a modification in PHP.INI, adding the red row:
; Directory in which the loadable extensions (modules) reside.
extension_dir ="C:\PHP\ext"
extension=php_mysql.dll
extension=php_snmp.dll
extension=php_sockets.dll
extension=php_gd2.dll
Now, my THOLD (0.4.4-41) is triggering again with email sent all right, but the graph is not converted and in the body of the email there is no graph, only an error message.
My php.log file (has to be activated in the php.ini) shows:
[15-Apr-2011 17:28:50] PHP Warning: Missing argument 4 for rrdtool_function_graph(), called in C:\Programmi\Apache2\htdocs\cacti\plugins\thold\thold_functions.php on line 1504 and defined in C:\Programmi\Apache2\htdocs\cacti\lib\rrd.php on line 523
[15-Apr-2011 17:28:50] PHP Notice: Undefined variable: rrdtool_pipe in C:\Programmi\Apache2\htdocs\cacti\lib\rrd.php on line 545
[15-Apr-2011 17:28:51] PHP Warning: fopen(/tmp/1302881331.png): failed to open stream: No such file or directory in C:\Programmi\Apache2\htdocs\cacti\plugins\thold\thold_functions.php on line 1697
[15-Apr-2011 17:28:51] PHP Warning: fwrite(): supplied argument is not a valid stream resource in C:\Programmi\Apache2\htdocs\cacti\plugins\thold\thold_functions.php on line 1698
[15-Apr-2011 17:28:51] PHP Warning: fclose(): supplied argument is not a valid stream resource in C:\Programmi\Apache2\htdocs\cacti\plugins\thold\thold_functions.php on line 1699
[15-Apr-2011 17:28:51] PHP Warning: imagecreatefrompng(/tmp/1302881331.png): failed to open stream: No such file or directory in C:\Programmi\Apache2\htdocs\cacti\plugins\thold\thold_functions.php on line 1702
[15-Apr-2011 17:28:51] PHP Notice: Undefined variable: imgname in C:\Programmi\Apache2\htdocs\cacti\plugins\thold\thold_functions.php on line 1711
[15-Apr-2011 17:28:51] PHP Warning: unlink(/tmp/1302881331.png): No such file or directory in C:\Programmi\Apache2\htdocs\cacti\plugins\thold\thold_functions.php on line 1721
The problem now is related to graph conversion.
Any idea on how to solve it?
tnx
llull
thanks for the info..