diff --git a/addhost.php b/addhost.php index 67b859d2e..56e35765c 100755 --- a/addhost.php +++ b/addhost.php @@ -36,7 +36,7 @@ if (!empty($argv[1])) // These values are the same as in defaults.inc.php $v3 = array( 'authlevel' => "noAuthNoPriv", - 'authname' => "observium", + 'authname' => "root", 'authpass' => "", 'authalgo' => "MD5", 'cryptopass' => "", @@ -192,8 +192,7 @@ if (!empty($argv[1])) } } -print Console_Color::convert(" -Observium v".$config['version']." Add Host Tool +print Console_Color::convert("\n" . $config['project_name_version']." Add Host Tool Usage (SNMPv1/2c): ./addhost.php <%Whostname%n> [community] [v1|v2c] [port] [" . implode("|",$config['snmp']['transports']) . "] Usage (SNMPv3) : Config Defaults : ./addhost.php <%Whostname%n> any v3 [user] [port] [" . implode("|",$config['snmp']['transports']) . "] diff --git a/check-errors.php b/check-errors.php index 0a430bfed..9290425ef 100755 --- a/check-errors.php +++ b/check-errors.php @@ -52,7 +52,7 @@ if (is_array($errored)) $i++; } // Send the alert email - notify($device, "Observium detected errors on $i interface" . ($i != 1 ? 's' : ''), $msg); + notify($device, $config['project_name'] . " detected errors on $i interface" . ($i != 1 ? 's' : ''), $msg); } echo("$errored interfaces with errors over the past 5 minutes.\n"); diff --git a/config.php.default b/config.php.default index 53e4b4569..0813c9761 100755 --- a/config.php.default +++ b/config.php.default @@ -13,17 +13,14 @@ $config['memcached']['enable'] = FALSE; $config['memcached']['host'] = "localhost"; $config['memcached']['port'] = 11211; -### Locations -$config['install_dir'] = "/opt/librenms"; -$config['html_dir'] = $config['install_dir'] . "/html"; -$config['rrd_dir'] = $config['install_dir'] . "/rrd"; -$config['log_file'] = $config['install_dir'] . "/librenms.log"; +### Locations - it is recommended to keep the default +#$config['install_dir'] = "/opt/librenms"; -### Thie should *only* be set if you want to *force* a particular hostname/port +### This should *only* be set if you want to *force* a particular hostname/port ### It will prevent the web interface being usable form any other hostname #$config['base_url'] = "http://librenms.company.com"; -### Enable the below to use rrdcached. be sure rrd_dir is within the rrdcached dir +### Enable this to use rrdcached. Be sure rrd_dir is within the rrdcached dir ### and that your web server has permission to talk to rrdcached. #$config['rrdcached'] = "unix:/var/run/rrdcached.sock"; diff --git a/discovery.php b/discovery.php index 459659145..a0ba79757 100755 --- a/discovery.php +++ b/discovery.php @@ -30,7 +30,7 @@ $options = getopt("h:m:i:n:d::a::q"); if (!isset($options['q'])) { - echo("Observium v".$config['version']." Discovery\n\n"); + echo($config['project_name_version']." Discovery\n\n"); } if (isset($options['h'])) diff --git a/html/includes/functions.inc.php b/html/includes/functions.inc.php index b91b13c36..87cc59379 100644 --- a/html/includes/functions.inc.php +++ b/html/includes/functions.inc.php @@ -613,5 +613,14 @@ function generate_ap_url($ap, $vars=array()) return generate_url(array('page' => 'device', 'device' => $ap['device_id'], 'tab' => 'accesspoint', 'ap' => $ap['accesspoint_id']), $vars); } +function report_this($message) +{ + return '
System
- Network Management and Monitoring
- Copyright (C) 2006-2012 Adam Armstrong
- Copyright (C) 2013- LibreNMS Contributors
-
-
Paul Gear Project Founder
-
Tyler Christiansen Developer
-
About