Thold Locking Up

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Post Reply
kelbyc
Cacti User
Posts: 52
Joined: Mon Nov 28, 2005 8:50 am

Thold Locking Up

Post by kelbyc »

I recently went from a standard cacti install to the plugin version. I have reports, thold and monitor working and all of my old data is working and poller is working properly. I can autocreate a threshold for any given host and it is even alerting me properly. However, if I want to change settings for an individual host I'm having troubles. When I click on the RRD ID from the Thresholds page under Management in the Console tab it starts to load and then just sits there. I can close the window and after about 5 minutes I can open a new browser window and login to cacti. So basically thold is working but I can't click to edit any of my individual thresholds because it locks up the system. Any idea why this would be happening? Below is the URL of the page that is not finishing loading:
http://myserver/cacti/plugins/thold/tho ... ew_rrd=153
It just sits there withh the IE flag waving.

I am running a fresh copy of 0.8.6g with latest patches and the latest thold on a Windows XP SP2 machine.

After doing some research it looks like it's the rrd.php library that is causing the problem. When I took it out of the include statement in thold.php the page loaded but of course it had errors. As soon as I include the rrd.php file that is when it locks up.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Check out http://www.cactiusers.org for Thold help.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
kelbyc
Cacti User
Posts: 52
Joined: Mon Nov 28, 2005 8:50 am

Post by kelbyc »

I removed the graph image from thold.php and it's working fine now.
danwdoo
Cacti User
Posts: 50
Joined: Thu Oct 26, 2006 11:42 pm

Post by danwdoo »

I am experiencing this as well where the page hangs when trying to load. I tried remarking out the following line but it did not help:

<img src="<?php echo $config["url_path"]; ?>graph_image.php?local_graph_id=<?php echo $graph ?>&rra_id=0&graph_start=-32400&graph_height=100&graph_width=300&graph_nolegend=true">

Is there another line I should remove or another fix for this?

Thanks!
kelbyc
Cacti User
Posts: 52
Joined: Mon Nov 28, 2005 8:50 am

Post by kelbyc »

That is the line I removed and it started working. I replaced it with a
&nbsp; within the <TD></TD> tags. I actually ended up deleting the lines completely on my install. I believe it's around line 131.
danwdoo
Cacti User
Posts: 50
Joined: Thu Oct 26, 2006 11:42 pm

Post by danwdoo »

Yea tried that and no help. Oddly enough I managed to get the page to come up once or twice after trying over and over again. WHen it came up it still had the graph displayed at the top of the page even though I had remaked out that line which is what made me think I wasn't removing the right line. Anyone else have any thoughts on this?

Thanks!
danwdoo
Cacti User
Posts: 50
Joined: Thu Oct 26, 2006 11:42 pm

Post by danwdoo »

Well I went back and instead of just remarking out the line I replaced it with &nbsp and that seems to be working!

Thanks a bunch!
cigamit
Developer
Posts: 3369
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

Ya, for some unknown reason, rrdtool locks up on that image, but its not easily reproducible (doesn't lock up on my test 2003 boxes). Maybe you can play around with the settings to see if you can find the exact thing that is killing it.
danwdoo
Cacti User
Posts: 50
Joined: Thu Oct 26, 2006 11:42 pm

Post by danwdoo »

I am on a Win2000 box so that could be something. I'll keep playing and post anythying further I find.
User avatar
TheWitness
Developer
Posts: 17047
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

This has been a problem in the past when you have flawed graph logic. I provided some patch information to Tobi about this issue some time ago. What version of RRDtool are you using.

Oh, it happens most frequently when you are building a custom graph using the user interface. Kinda sucks, I found that it occurred while I was building Stack graphs real time with live data.

When it happens, you must restart Apache/IIS

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
danwdoo
Cacti User
Posts: 50
Joined: Thu Oct 26, 2006 11:42 pm

Post by danwdoo »

I'm using RRDtool 1.2.15 (Installed with the Beta cacti Windows installer kit) In my case it seemed to affect everything from custom graphs to things like Advanced Ping. I restarted IIS dozens of times and would get it to come up maybe one out of twenty tries or so. But at least with it removed it comes up reliably now.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest