Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > dd1eded079f2b42f96e276fd4e59a3e6 > files > 16

nisca-2.3.2-1mdk.noarch.rpm

<? // ( -*- php -*- this makes emacs users happy )
/*
 Network Interface Statistics Collection Agent
 by Brett Baugh

 This is the path configuration file for NISCA.
 It needs to go into /etc/nisca/... you can change its location,
 but you'll have to run "move_niscaconf_to" to do so before you run
 anything because every NISCA script references this file directly.
 It has to be hardcoded into every script; sorry.

 You don't have to put a trailing "/" on any of the directories, but
 it shouldn't hurt if you do by accident. "//" is usually just like "/".
 */

// The set of fonts you want to use on the HTML pages,
// separated by commas. These will NOT be used on graphs.
// Try to use fonts that have bold and italic versions built-in,
// or the <B> and <I> HTML tags won't do anything.
   $fontface="arial,helvetica,univers,futura,sans";
   
// Top-level directories:
// Where your nisca.conf and db.conf are.
   $location["configs"]          = "/etc/nisca";
// Where your main Nisca installation directory ended up.
   $location["install"]          = "/home/httpd/htdocs/nisca";
// Where your system puts runtime data, like in /var/run.
   $location["runtime"]          = "/var/run";
// Where your snmp client binaries are (snmpwalk and snmpbulkwalk).
   $location["snmpdir"]          = "/usr/bin";

// Directories usually derived from TLD's above:
// Where your functions.php is.
   $location["lib"]              = "{$location["install"]}/lib";
// Where you want to keep various Nisca-specific images, like backgrounds.
   $location["imagedir"]         = "{$location["install"]}/images";
// Where you want trimmed/deleted database entries to be kept.
   $location["archive"]          = "{$location["install"]}/archive";

// Specific file locations usually derived from directories above:
// The db.conf file.
   $location["db_config"]        = "{$location["configs"]}/db.conf";
// The functions.php file.
   $location["functions"]        = "{$location["lib"]}/functions.php";
// The cfunctions.php file, for functions unique to the collection scripts.
   $location["cfunctions"]       = "{$location["lib"]}/cfunctions.php";
// The security.php file.
   $location["security"]         = "{$location["lib"]}/security.php";
// The help.php file.
   $location["help"]             = "{$location["lib"]}/help.php";
// The image you want "watermarked" on all created graphs.
   $location["wmimg"]            = "{$location["imagedir"]}/wm.png";
// The file to use to store the PID of the collect.php script while it runs.
   $location["local_pidfile"]    = "{$location["runtime"]}/nisca_local.pid";
// The file to use to store the PID of the snmp_collect.php script while it runs.
   $location["snmp_pidfile"]     = "{$location["runtime"]}/nisca_snmp.pid";
// The snmpwalk and snmpbulkwalk binaries' filenames AND options to use
// with them. This MUST include "-Oenq" or Nisca will be bitter!
   $location["bin_snmpwalk"]     = "{$location["snmpdir"]}/snmpwalk -Oenq -t 2 -r 1";
   $location["bin_snmpbulkwalk"] = "{$location["snmpdir"]}/snmpbulkwalk -Oenq -t 2 -r 1";

// URLs:
// Like "http://my.host.com/nisca" (or just "/nisca" if you prefer a relative URL base).
// This does affect session cookies and login credentials and such.
   $location["home"]             = "/nisca";
// The admin/ directory's URL.
   $location["admin"]            = "{$location["home"]}/admin";
// The help/ directory's URL.
   $location["helpurl"]          = "{$location["home"]}/help";
// The images/ directory's URL.
   $location["images"]           = "{$location["home"]}/images";
// The image to put on the background of most all Nisca pages.
   $location["background"]       = "{$location["images"]}/bg1.jpg";
?>