Manual Threshold fails

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Post Reply
agregoire
Posts: 1
Joined: Wed Jan 31, 2007 3:03 pm

Manual Threshold fails

Post by agregoire »

I am using cacti 0.8.6j and recently upgraded thold plugin to 0.3.1

Since then, I am not able to create manual thresholds. Clicking on the data source -> template name, the server freezes

Auto thresholds are working, thresholds are checked and emails are sent when the threshold is trigerred.

It is working on a window box.

Any idea?
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

This has been a Windows issue that I have not been able to reproduce. Its the graph preview on the page that is causing it, just dont know why.
Gaurhoth
Posts: 3
Joined: Wed Dec 21, 2005 9:04 am

Post by Gaurhoth »

I'm having the same type of freezing with thold 0.3.2

Cacti 0.8.6j + Plugin Arch 1.1

The URL that seems to be hanging is http://servername/cacti/plugins/thold/t ... &hostid=43

Obviously the RRA and HOSTID parameters are different in each case.

Is there are any extra permissions that need to be changed vs the standard windows install of cacti?

Gaurhoth
Gaurhoth
Posts: 3
Joined: Wed Dec 21, 2005 9:04 am

Post by Gaurhoth »

Looks like it was a permissions issue. I gave IUSR_XXX read/execute permissions on the cacti\plugins\thold folder and all seems to be working now.
Gaurhoth
Posts: 3
Joined: Wed Dec 21, 2005 9:04 am

Post by Gaurhoth »

Okay, so maybe this is NOT resolved. It seemed to work for a short while but now the same thing is happening again. Using Process Monitor (sysinternals), it looks like RRDTOOL is hanging with a Buffer Overflow whenever you bring up a THOLD related page that shows a graph.

Not sure what else to do to troubleshoot this. Anyone with an idea?

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

Post by kelbyc »

As was stated earlier this is a known issue. What I did to fix it was edit thold.php and somewhere around line 130 there is a piece of code as follows:
<img id=graphimage 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">

Delete all of that code and replace it with:
&nbsp;

That gets rid of the graph and fixed the problem for me. However, on my Win32 box my graphs starting showing up correctly in thold 0.3.2 when I could never get it to work in other versions of Thold. Too bad thold 0.3.2 has incorrect current values and isn't working for me which forced me to roll back to 0.3.0 where life is good.
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

Incorrect values? How so? The exact value returned by the script is passed to thold before it even hits the rrd file, does the thold value match the value that the debug log shows the script returned?
kelbyc
Cacti User
Posts: 52
Joined: Mon Nov 28, 2005 8:50 am

Thold Current Values

Post by kelbyc »

Cigamit,
I'm glad you finally saw my post, I posted this in another thread and on another site for almost 2 weeks with no replies. I have screenshots below and a description of my issue:

After updating to 0.3.2 Thold is displaying incorrect numbers between the Threshold Management interface and each individual threshold. I have attached two pictures to better show what I'm describing.
For example on the Thold Mangement page where all thresholds are shown I have a data source with the value of 21.749. If I click on that threshold to look at its details it then shows that the value is 23.6425. Unfortunately the value from the main page that shows all thresholds is the one that is used to send e-mail alerts if a threshold is breached. What makes this unfortunate is that value does not match my graph values and it is incorrect. I have a 10Mb link that the management page reported as being at 11.2Mb at one point last week. This is not a CDEF issue becasue I have the same problem when I do not apply a CDEF to the results. The value on the details page for the threshold is the one that matches the Cacti graph and is correct. Am I the only person whose management values do not match their details page values?? Please help. I tried a fresh install of Thold but didn't help. I rolled back to 0.3.0 Thold and all is working correctly.

OS: Windows XP
Cacti: 0.8.6j
Plugin Arch: 1.1
Thold: 0.3.2
RRD: 1.2.15
PHP: 5.0.5
Attachments
Thold Individual Detail page
Thold Individual Detail page
thold1.jpg (14.7 KiB) Viewed 4217 times
Thold management screen
Thold management screen
thold2.jpg (9.83 KiB) Viewed 4217 times
cigamit
Developer
Posts: 3367
Joined: Thu Apr 07, 2005 3:29 pm
Location: B/CS Texas
Contact:

Post by cigamit »

Run the poller in Medium mode to see the output of the script, and afterwards check what the script returns versus what thold and the graphs show.

The data on the thold page is exactly what is returned by the script (unless its a counter, then its the returned value minus the last value). What is shown on the details page is the average pulled from the rrd file.

RRD does some averaging depending on the graph templates, whether they are set to AVERAGE, LAST, or MAX I believe.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests