Permalink
Browse files

adding minimum" option to graph item descriptions

  • Loading branch information...
Douglas E. Warner
Douglas E. Warner committed Jan 5, 2012
1 parent e3bbca5 commit 34af82533b31372d81e5d5d086aeca12624eb276
Showing with 16 additions and 1 deletion.
  1. +3 −0 share/doc/ChangeLog
  2. +5 −0 www/lib/graphing.php
  3. +4 −0 www/webfiles/graph_items.php
  4. +4 −1 www/webfiles/updater.php
View
@@ -1,3 +1,6 @@
2012.01.05 v0.21cvs silfreed
- adding "minimum" option to graph item descriptions
2011.04.14 v0.21cvs balleman
- updated wiki.netmrg.net to mediawiki 1.16.4
View
@@ -447,6 +447,11 @@ function custom_graph_command($id, $timeframe, $templated, $single_ds)
$command .= 'GPRINT:data' . $ds_count . 'm:MAX:"Maximum\\:' . $format . '" ';
}
if (isin($ds_row["stats"], "MINIMUM"))
{
$command .= 'GPRINT:data' . $ds_count . 'm:MIN:"Minimum\\:' . $format . '" ';
}
if (isin($ds_row["stats"], "SUMS"))
{
if ($ds_row['mon_id'] > 0)
@@ -89,6 +89,9 @@ function doedit()
if (isset($_REQUEST["show_maximum"]))
$stats .= "MAXIMUM,";
if (isset($_REQUEST["show_minimum"]))
$stats .= "MINIMUM,";
if (isset($_REQUEST["show_integer"]))
$stats .= "INTEGER,";
@@ -399,6 +402,7 @@ function edit()
make_edit_checkbox("Show Current Value", "show_current", isin($ds_row["stats"], "CURRENT"));
make_edit_checkbox("Show Average Value", "show_average", isin($ds_row["stats"], "AVERAGE"));
make_edit_checkbox("Show Maximum Value", "show_maximum", isin($ds_row["stats"], "MAXIMUM"));
make_edit_checkbox("Show Minimum Value", "show_minimum", isin($ds_row["stats"], "MINIMUM"));
make_edit_checkbox("Show Only Integers", "show_integer", isin($ds_row["stats"], "INTEGER"));
make_edit_checkbox("Show Sums", "show_sums", isin($ds_row["stats"], "SUMS"));
make_edit_checkbox("Apply Multiplier to Sums", "multiply_sum", isin($ds_row['stats'], "MULTSUM"));
View
@@ -256,7 +256,10 @@
"0.21" => array(
array(
"name" => "SNMPv3",
"query" => "ALTER TABLE `devices` ADD `snmp3_user` VARCHAR( 200 ) NOT NULL , ADD `snmp3_seclev` TINYINT NOT NULL , ADD `snmp3_aprot` TINYINT NOT NULL , ADD `snmp3_apass` VARCHAR( 200 ) NOT NULL , ADD `snmp3_pprot` TINYINT NOT NULL , ADD `snmp3_ppass` VARCHAR( 200 ) NOT NULL")
"query" => "ALTER TABLE `devices` ADD `snmp3_user` VARCHAR( 200 ) NOT NULL , ADD `snmp3_seclev` TINYINT NOT NULL , ADD `snmp3_aprot` TINYINT NOT NULL , ADD `snmp3_apass` VARCHAR( 200 ) NOT NULL , ADD `snmp3_pprot` TINYINT NOT NULL , ADD `snmp3_ppass` VARCHAR( 200 ) NOT NULL"),
array(
"name" => "Minimum Graph Option",
"query" => "ALTER TABLE `graph_ds` MODIFY `stats` set('CURRENT','AVERAGE','MAXIMUM','SUMS','INTEGER','MULTSUM', 'MINIMUM') NOT NULL DEFAULT 'CURRENT,AVERAGE,MAXIMUM'"),
), // end 0.21
); // end $dbupdates;

0 comments on commit 34af825

Please sign in to comment.