Details
-
Improvement
-
Resolution: Fixed
-
Minor
-
None
-
None
-
None
-
r5742
Description
Here is a simple path to support a common prefix on nfsen files (like suffixes that are already supported)
Index: html/includes/functions.inc.php
|
===================================================================
|
--- html/includes/functions.inc.php (revision 5742)
|
+++ html/includes/functions.inc.php (working copy)
|
@@ -1283,10 +1283,16 @@
|
} else {
|
$nfsen_filename = $basefilename_underscored;
|
}
|
+ if ($config['nfsen_prefix'])
|
+ {
|
+ $nfsen_filename = (substr($nfsen_filename, strlen($config['nfsen_prefix'])));
|
+ } else {
|
+ $nfsen_filename = $basefilename_underscored;
|
+ }
|
$nfsen_rrd_file = $nfsen_rrd . $nfsen_filename . '.rrd';
|
if (is_file($nfsen_rrd_file))
|
{
|
return $nfsen_rrd_file;
|
}
|
}
|
|
Index: includes/defaults.inc.php
|
===================================================================
|
--- includes/defaults.inc.php (revision 5742)
|
+++ includes/defaults.inc.php (working copy)
|
@@ -383,6 +383,7 @@
|
#$config['nfsen_split_char'] = "_";
|
#$config['nfsen_rrds'] = "/var/nfsen/profiles-stat/live/";
|
#$config['nfsen_suffix'] = "_yourdomain_com";
|
+#$config['nfsen_prefix'] = "";
|
|
// Location Mapping
|
// Use this feature to map ugly locations to pretty locations
|
Tested and working