blob: bb086de4208222b96105105b6f5a8ad3f6847f1c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
|
--- config.php.default.orig 2020-07-10 19:56:16 UTC
+++ config.php.default
@@ -2,10 +2,26 @@
## Have a look in misc/config_definitions.json for examples of settings you can set here. DO NOT EDIT misc/config_definitions.json!
+#
+# The FreeBSD package set the following items
+#
+$config['installed_from_package'] = true;
+
+$config['log_dir'] = '/var/log/librenms';
+$config['rrd_dir'] = '/var/db/librenms/rrd';
+
// This is the user LibreNMS will run as
-//Please ensure this user is created and has the correct permissions to your install
-$config['user'] = 'librenms';
+// Please ensure this user is created and has the correct permissions to your install
+// The FreeBSD package sets this.
+// It's up to you to install a webserver, such as Apache or Nginx. By default, they
+// run as the www user.
+//
+$config['user'] = 'www';
+#
+# The FreeBSD package set the above items
+#
+
### 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'] = "/";
@@ -27,7 +43,8 @@ $config['auth_mechanism'] = "mysql"; # default, other
#$config['nets'][] = "192.168.0.0/16";
# Uncomment the next line to disable daily updates
-#$config['update'] = 0;
+# FreeBSD package uncommented this line for you.
+$config['update'] = 0;
# Number in days of how long to keep old rrd files. 0 disables this feature
$config['rrd_purge'] = 0;
@@ -43,3 +60,22 @@ $config['enable_billing'] = 1;
# Enable the in-built services support (Nagios plugins)
$config['show_services'] = 1;
+
+# These paths are supplied by the FreeBSD port and correct those found in
+# the code.
+
+$config['snmpwalk'] = '/usr/local/bin/snmpwalk';
+$config['snmpget'] = '/usr/local/bin/snmpget';
+$config['snmpbulkwalk'] = '/usr/local/bin/snmpbulkwalk';
+$config['snmptranslate'] = '/usr/local/bin/snmptranslate';
+
+$config['ping'] = '/sbin/ping';
+$config['mtr'] = '/usr/local/bin/mtr';
+$config['nmap'] = '/usr/local/bin/nmap';
+
+$config['nagios_plugins'] = '/usr/local/libexec/nagios';
+$config['ipmitool'] = '/usr/local/bin/ipmitool';
+$config['virsh'] = '/usr/local/bin/virsh';
+$config['dot'] = '/usr/local/bin/dot';
+$config['sfdp'] = '/usr/local/bin/sfdp';
+$config['nfdump'] = '/usr/local/bin/nfdump';
|