HP-UX Template Thold Problems

Support questions about the Threshold plugin

Moderators: Developers, Moderators

Post Reply
lucgomes
Posts: 8
Joined: Wed Apr 06, 2005 11:31 am

HP-UX Template Thold Problems

Post by lucgomes »

Please, when i apply the CDEF "relative percentage" in my treshold i see one message error :
CDEF property not implemented yet: ALL_DATA_SOURCES_NODUPS,

And the values are long number like 1904673.67 and the value correct should be 95.04.

Howto resolve the problem ?


Thanks.
Attachments
error-THOLD.JPG
error-THOLD.JPG (99.44 KiB) Viewed 3527 times
adumont
Posts: 16
Joined: Sat Nov 26, 2005 8:43 am
Location: Spain
Contact:

Post by adumont »

Hi Luciano,

I've not tryed thold, but anyway, if you look at this link
http://forums.cacti.net//files/thold_fu ... _135.patch , you'll see the following piece of code from thold:

+ if ($cdef['type'] == 4) {
+ $cdef['type'] = 6;
+ switch ($cdef['value']) {
+ case 'CURRENT_DATA_SOURCE':
+ $cdef['value'] = get_current_value($rra, $ds, 0);
+ break;
+ case 'CURRENT_GRAPH_MAXIMUM_VALUE':
+ $cdef['value'] = get_current_value($rra, 'upper_limit', 0);
+ break;
+ case 'CURRENT_GRAPH_MINIMUM_VALUE':
+ $cdef['value'] = get_current_value($rra, 'lower_limit', 0);
+ break;
+ case 'CURRENT_DS_MINIMUM_VALUE':
+ $cdef['value'] = get_current_value($rra, 'rrd_minimum', 0);
+ break;
+ case 'CURRENT_DS_MAXIMUM_VALUE':
+ $cdef['value'] = get_current_value($rra, 'rrd_maximum', 0);
+ break;
+ default:
+ print "CDEF property not implemented yet: " . $cdef['value'];
+ break;
+ }

As you can see, the implemented CDEF are:
CURRENT_DATA_SOURCE
CURRENT_GRAPH_MAXIMUM_VALUE
CURRENT_GRAPH_MINIMUM_VALUE
...

IMHO, it lacks a "CURRENT_GRAPH_VALUE" CDEF...

The problem seems to come from thold not having implemented the CDEF.
Last edited by adumont on Wed Mar 21, 2007 9:34 am, edited 1 time in total.
lucgomes
Posts: 8
Joined: Wed Apr 06, 2005 11:31 am

LInk Off

Post by lucgomes »

hi Adumont,

The link http://forums.cacti.net//files/thold_fu ... _135.patch is off. Please, if i apply the patch, my problem will be solved ?

Thanks !
adumont
Posts: 16
Joined: Sat Nov 26, 2005 8:43 am
Location: Spain
Contact:

Post by adumont »

I corrected the link to the patch.

I think the patch is already applied to you thold distribution. In fact I paste here the patch to argument what I say.

If you don't get it to work with the implemented CDEF, I'm afraid you'll have to wait until they implement more CDEF.
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest