From 0c5bb3403a385a2304a40a35b1f126cb734bab36 Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Mon, 7 Apr 2008 18:52:26 +0000 Subject: [PATCH] fix git-svn-id: http://www.observium.org/svn/observer/trunk@223 61d68cd4-352d-0410-923a-c4978735b2b8 --- config.php | 114 -------------------------------- includes/graphing/fortigate.php | 2 +- 2 files changed, 1 insertion(+), 115 deletions(-) delete mode 100755 config.php diff --git a/config.php b/config.php deleted file mode 100755 index 4373850f7..000000000 --- a/config.php +++ /dev/null @@ -1,114 +0,0 @@ -"; -$config['email_headers'] = "From: " . $config['email_from'] . "\r\n"; - - -### Which interface sections should we show? - -$config['int_customers'] = 1; # Enable Customer Port Parsing -$config['int_transit'] = 1; # Enable Transit Types -$config['int_peering'] = 1; # Enable Peering Types -$config['int_core'] = 1; # Enable Core Port Types -$config['int_l2tp'] = 1; # Enable L2TP Port Types - -$config['show_locations'] = 1; # Enable Locations on menu - -### Which additional features should we enable? - -$config['enable_bgp'] = 1; # Enable BGP session collection and display -$config['enable_syslog'] = 1; # Enable Syslog - -## If a syslog entry contails these strings it is deleted from the database -$config['syslog_filter'] = array("last message repeated", "Connection from UDP: [127.0.0.1]:"); - -$config['syslog_age'] = "1 month"; ## Time to keep syslog for in - ## MySQL DATE_SUB format (eg '1 day', '1 month') - -### Interface name strings to ignore -$config['bad_if'] = array("null", "virtual-", "unrouted", "eobc", "mpls", "sl0", "lp0", "faith0", - "-atm layer", "-atm subif", "-shdsl", "-adsl", "-aal5", "-atm", - "async", "plip", "-physical", "-signalling", "control plane", - "bri", "-bearer", "ng", "bluetooth", "isatap", "ras", "qos", "miniport"); - -### Mountpoints to ignore - -$config['ignore_mount'] = array("/kern", "/mnt/cdrom", "/dev", "/dev/pts", "/proc/bus/usb"); - -### Style Options - -$list_colour_a = "#ffffff"; -$list_colour_b = "#e5e5e5"; - -$warn_colour_a = "#ffeeee"; -$warn_colour_b = "#ffcccc"; - -?> diff --git a/includes/graphing/fortigate.php b/includes/graphing/fortigate.php index ec7577170..b4df06fce 100644 --- a/includes/graphing/fortigate.php +++ b/includes/graphing/fortigate.php @@ -37,7 +37,7 @@ function graph_fortigate_memory ($rrd, $graph, $from, $to, $width, $height, $tit global $config; $database = $config['rrd_dir'] . "/" . $rrd; $imgfile = "graphs/" . "$graph"; - $options = "-b 1024 -l 0 -Y -E --start $from --end $to --width $width --height $height "; + $options = "-l 0 -Y -E --start $from --end $to --width $width --height $height "; if($width <= "300") { $options .= " --font LEGEND:7:".$config['mono_font']." --font AXIS:6:".$config['mono_font']." --font-render-mode normal "; } $options .= " DEF:mem=$database:mem:AVERAGE"; $options .= " DEF:kcap=$database:memcapacity:AVERAGE";