Cactiusers.org


It is currently Thu May 17, 2012 8:27 am




Post new topic Reply to topic  [ 4 posts ] 
 thold stopped running 
Author Message
New User

Joined: Wed Dec 07, 2005 4:46 am
Posts: 13
Post thold stopped running
Hello,

I had thold running fine but all of a sudden it stopped running - I noticed this from the "last run" time and also the cacti.log which didnt show the usual output...is their a log file/debug option with thold?

I ran check-thold.php from a prompt and all seemed o.k.

Also - how does thold schedule itself to run on a win2k server?

Many thanks,

Larry


Sat Dec 10, 2005 8:31 am
New User

Joined: Wed Dec 07, 2005 4:46 am
Posts: 13
Post 
Hello,

I ran php poller.php /show and the following was at the bottom of the output where the usual "thold running" message would appear:

12/10/2005 07:46:40 PM - SYSTEM STATS: Time:40.4216 Method:cactid Processes:1 Th
reads:20 Hosts:174 HostsPerProcess:174 DataSources:9013 RRDsProcessed:4400
OK u:1.55 s:26.03 r:40.37
OK u:1.55 s:26.03 r:40.38
OK u:1.55 s:26.05 r:40.38
OK u:1.55 s:26.05 r:40.39
OK u:1.55 s:26.06 r:40.40
OK u:1.55 s:26.06 r:40.41
OK u:1.55 s:26.08 r:40.41
OK u:1.55 s:26.08 r:40.42
OK u:1.55 s:26.08 r:40.43
PHP Warning: mysql_error(): supplied argument is not a valid MySQL-Link resourc
e in E:\Apache2\htdocs\cacti\plugins\reports\setup.php on line 59


I have the report plugin but admit that this never sent out any emails (one of the reasons I installed thold :) ) - could this be why neither are now working?

Thanks,

Larry


Sat Dec 10, 2005 2:50 pm
Site Admin

Joined: Thu Nov 11, 2004 11:12 am
Posts: 2007
Post 
lard wrote:
Hello,

I ran php poller.php /show and the following was at the bottom of the output where the usual "thold running" message would appear:

PHP Warning: mysql_error(): supplied argument is not a valid MySQL-Link resourc
e in E:\Apache2\htdocs\cacti\plugins\reports\setup.php on line 59


I have the report plugin but admit that this never sent out any emails (one of the reasons I installed thold :) ) - could this be why neither are now working?

Thanks,

Larry


More than likely it is the reports plugin killing the thold (after most errors, it stops executing code). Just to check and see if this is the case, just disable the reports plugin (or remove the reports) and try and see if they run. If that is the case, then we know its not a problem with thold, and we can begin to work on the reports error.

Oh, and the thold plugin uses the regular cacti poller to do its work (runs after all polling), the original module used its own cron job, but I found that its easier to not have to set it up :)


Sun Dec 11, 2005 6:25 pm
Post 
[quote="jimmy"][quote="lard"]Hello,

I ran php poller.php /show and the following was at the bottom of the output where the usual "thold running" message would appear:

PHP Warning: mysql_error(): supplied argument is not a valid MySQL-Link resourc
e in E:\Apache2\htdocs\cacti\plugins\reports\setup.php on line 59


I have the report plugin but admit that this never sent out any emails (one of the reasons I installed thold :) ) - could this be why neither are now working?

Thanks,

Larry[/quote]

More than likely it is the reports plugin killing the thold (after most errors, it stops executing code). Just to check and see if this is the case, just disable the reports plugin (or remove the reports) and try and see if they run. If that is the case, then we know its not a problem with thold, and we can begin to work on the reports error.

Oh, and the thold plugin uses the regular cacti poller to do its work (runs after all polling), the original module used its own cron job, but I found that its easier to not have to set it up :)[/quote]

Hi Jimmy,

Thanks for the response - to disable the reporting plugin I just removed the $plugins[] = 'reports'; section from the include/config.php file and thold is now checking the thresholds!

Any info required then let me know,

Thanks,

Larry


Mon Dec 12, 2005 5:25 am
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for: