Ugly way of calculating % for threshold
Moderators: Developers, Moderators
hello,
when i modify config_arrays.php i have "Parse error: syntax error, unexpected ',' in /usr/share/cacti/site/include/config_arrays.php on line 228"
my config_arrays.php
$custom_data_source_types = array(
"CURRENT_DATA_SOURCE" => "Current Graph Item Data Source",
"ALL_DATA_SOURCES_NODUPS" => "All Data Sources (Don't Include Duplicates)",
"ALL_DATA_SOURCES_DUPS" => "All Data Sources (Include Duplicates)",
"CURRENT_DS_MINIMUM_VALUE" => "Current Data Source Item: Minimum Value",
"SIMILAR_DATA_SOURCES_NODUPS" => "All Similar Data Sources (Don't Include Duplicates)",
"CURRENT_DS_MAXIMUM_VALUE" => "Current Data Source Item: Maximum Value",
"CURRENT_GRAPH_MINIMUM_VALUE" => "Graph: Lower Limit",
"CURRENT_GRAPH_MAXIMUM_VALUE" => "Graph: Upper Limit"),
"VALUE_OF_HDD_TOTAL" => "Value of hdd_total data source");
can some one help me to fix it?
when i modify config_arrays.php i have "Parse error: syntax error, unexpected ',' in /usr/share/cacti/site/include/config_arrays.php on line 228"
my config_arrays.php
$custom_data_source_types = array(
"CURRENT_DATA_SOURCE" => "Current Graph Item Data Source",
"ALL_DATA_SOURCES_NODUPS" => "All Data Sources (Don't Include Duplicates)",
"ALL_DATA_SOURCES_DUPS" => "All Data Sources (Include Duplicates)",
"CURRENT_DS_MINIMUM_VALUE" => "Current Data Source Item: Minimum Value",
"SIMILAR_DATA_SOURCES_NODUPS" => "All Similar Data Sources (Don't Include Duplicates)",
"CURRENT_DS_MAXIMUM_VALUE" => "Current Data Source Item: Maximum Value",
"CURRENT_GRAPH_MINIMUM_VALUE" => "Graph: Lower Limit",
"CURRENT_GRAPH_MAXIMUM_VALUE" => "Graph: Upper Limit"),
"VALUE_OF_HDD_TOTAL" => "Value of hdd_total data source");
can some one help me to fix it?
Host MIB Available Disk Space
I dont have a template for Host MIB - Available Disk Space. Is this a show stopper or can I import it from somewhere ?
Thanks
Thanks
You should remove the red character.mechin wrote:hello,
when i modify config_arrays.php i have "Parse error: syntax error, unexpected ',' in /usr/share/cacti/site/include/config_arrays.php on line 228"
my config_arrays.php
$custom_data_source_types = array(
"CURRENT_DATA_SOURCE" => "Current Graph Item Data Source",
"ALL_DATA_SOURCES_NODUPS" => "All Data Sources (Don't Include Duplicates)",
"ALL_DATA_SOURCES_DUPS" => "All Data Sources (Include Duplicates)",
"CURRENT_DS_MINIMUM_VALUE" => "Current Data Source Item: Minimum Value",
"SIMILAR_DATA_SOURCES_NODUPS" => "All Similar Data Sources (Don't Include Duplicates)",
"CURRENT_DS_MAXIMUM_VALUE" => "Current Data Source Item: Maximum Value",
"CURRENT_GRAPH_MINIMUM_VALUE" => "Graph: Lower Limit",
"CURRENT_GRAPH_MAXIMUM_VALUE" => "Graph: Upper Limit"),
"VALUE_OF_HDD_TOTAL" => "Value of hdd_total data source");
can some one help me to fix it?
Hello ! i've implemented this way. It's work but when I show the Threshold, my value are in red with a current value 180225325 by example but when a open the Threshold for a specific graph, the current value is 18...
How can I do for fix this problem ?
How can I do for fix this problem ?
Cacti 0.8.7b
-> Architecture plugin
-> Thold plugin
-> Monitor plugin
-> Weathermap plugin
-> Architecture plugin
-> Thold plugin
-> Monitor plugin
-> Weathermap plugin
I do not understand why its not working. Sometimes Thold takes the value and sometimes not. Yet all my graphics work and that is all the same.
Show the following:
why this difference ???
Please help me !
Show the following:
Code: Select all
chmscoswin - Used Space - C: Label:Coswin [hdd_used] 90 off 37.1844 no
chmscoswin - Used Space - D: Label:INGDAT [hdd_used] 90 off 0 no
Please help me !
Cacti 0.8.7b
-> Architecture plugin
-> Thold plugin
-> Monitor plugin
-> Weathermap plugin
-> Architecture plugin
-> Thold plugin
-> Monitor plugin
-> Weathermap plugin
Does this still work? I'm trying to get THold percentages working as well and would much rather have it calculated real-time vs. adding more data to my RRAs. I know there are other methods, but they all appear to expand the data template.
When I add the line to my config_arrays.php, I cannot get it to show up when adding a "Special Data Source" item to my new CDEF. Here is how my array looks now:
UPDATE: it's global_arrays.php now (as of 0.8.7a I believe), not config_arrays.php.
When I add the line to my config_arrays.php, I cannot get it to show up when adding a "Special Data Source" item to my new CDEF. Here is how my array looks now:
Code: Select all
$custom_data_source_types = array(
"CURRENT_DATA_SOURCE" => "Current Graph Item Data Source",
"ALL_DATA_SOURCES_NODUPS" => "All Data Sources (Don't Include Duplicates)",
"ALL_DATA_SOURCES_DUPS" => "All Data Sources (Include Duplicates)",
"CURRENT_DS_MINIMUM_VALUE" => "Current Data Source Item: Minimum Value",
"SIMILAR_DATA_SOURCES_NODUPS" => "All Similar Data Sources (Don't Include Duplicates)",
"CURRENT_DS_MAXIMUM_VALUE" => "Current Data Source Item: Maximum Value",
"CURRENT_GRAPH_MINIMUM_VALUE" => "Graph: Lower Limit",
"CURRENT_GRAPH_MAXIMUM_VALUE" => "Graph: Upper Limit",
"VALUE_OF_HDD_TOTAL" => "Value of hdd_total data source");
[b]dune[/b]
Cacti v0.8.7b/Spine v0.8.7c-beta2 (PA 2.1, Settings 0.5, THold 0.3.9) on Server 2003 SP2/IIS 6.0/PHP5/MySQL 5.0.45
Cacti v0.8.7b/Spine v0.8.7c-beta2 (PA 2.1, Settings 0.5, THold 0.3.9) on Server 2003 SP2/IIS 6.0/PHP5/MySQL 5.0.45
Who is online
Users browsing this forum: No registered users and 3 guests