Skip to end of metadata
Go to start of metadata
You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 7
Next »
|
|
---|
Installation and Update | 1- use the ova file from https://github.com/librenms/packer-builds/releases/tag/1.63 2- update su - librenms git pull ./daily.sh 3- install pip3 and update/install python module python3 as default [ remove the link and create a new one ] sudo apt update -y sudo apt install python3-pip sudo pip3 install -r requirements.txt |
|
|
/opt/librenms/config.php | https://docs.librenms.org/Extensions/Auto-Discovery/ modify the config file by adding the subnet: $config['nets'][] = "172.30.95.0/24"; $config['nets'][] = "172.30.92.0/24"; $config['allow_duplicate_sysName'] = true; Change the password: to juniper123 $config['db_pass'] = 'D42nf23rewD';
librenms@librenms:~$ more /opt/librenms/config.php
<?php
## Have a look in misc/config_definitions.json for examples of settings you can set here. DO NOT EDIT misc/config_definitions.json!
### Database config
$config['db_host'] = 'localhost';
$config['db_user'] = 'librenms';
$config['db_pass'] = 'D42nf23rewD';
$config['db_name'] = 'librenms';
// 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';
### 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'] = "/";
### 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";
### Default community
$config['snmp']['community'] = array('public');
### Authentication Model
$config['auth_mechanism'] = "mysql"; # default, other options: ldap, http-auth
#$config['http_auth_guest'] = "guest"; # remember to configure this user if you use http-auth
### List of RFC1918 networks to allow scanning-based discovery
#$config['nets'][] = "10.0.0.0/8";
#$config['nets'][] = "172.16.0.0/12";
#$config['nets'][] = "192.168.0.0/16";
# JLK Modify
$config['nets'][] = "172.30.95.0/24";
$config['nets'][] = "172.30.92.0/24";
# Uncomment the next line to disable daily updates
#$config['update'] = 0;
# Number in days of how long to keep old rrd files. 0 disables this feature
$config['rrd_purge'] = 0;
# Uncomment to submit callback stats via proxy
#$config['callback_proxy'] = "hostname:port";
# Set default port association mode for new devices (default: ifIndex)
#$config['default_port_association_mode'] = 'ifIndex';
# Enable the in-built billing extension
$config['enable_billing'] = 1;
# Enable the in-built services support (Nagios plugins)
$config['show_services'] = 1;
$config["rrdcached"] = "unix:/var/run/rrdcached/rrdcached.sock";
$config["update_channel"] = "release";
$config["enable_syslog"] = 1;
librenms@librenms:~$
|
slow scanning of the network | /opt/librenms/snmp-scan.py -r -t 10 |
|
|