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.
HP-UX Template Thold Problems
Moderators: Developers, Moderators
HP-UX Template Thold Problems
- Attachments
-
- error-THOLD.JPG (99.44 KiB) Viewed 3526 times
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.
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.
LInk Off
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 !
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 !
Who is online
Users browsing this forum: No registered users and 2 guests