Getting started

Support

Developing

How do I install LibreNMS?

This is currently well documented within the doc folder of the installation files.

Please see the following doc

How do I add a device?

You have two options for adding a new device into LibreNMS.

  1. Using the command line via ssh you can add a new device by changing to the directory of your LibreNMS install and typing (be sure to put the correct details).
./addhost.php [community] [v1|v2c] [port] [udp|udp6|tcp|tcp6]

Please note that if the community contains special characters such as $ then you will need to wrap it in '. I.e: 'Pa$$w0rd'.

  1. Using the web interface, go to Devices and then Add Device. Enter the details required for the device that you want to add and then click 'Add Host'.

How do I get help?

We have a few methods for you to get in touch to ask for help.

Community Forum

IRC Freenode ##librenms

Bug Reports

What are the supported OSes for installing LibreNMS on?

Supported is quite a strong word :) The 'officially' supported distros are:

However we will always aim to help wherever possible so if you are running a distro that isn't one of the above then give it a try anyway and if you need help then jump on the irc channel.

Do you have a demo available?

We do indeed, you can find access to the demo here

Why do I get blank pages sometimes in the WebUI?

The first thing to do is to add /debug=yes/ to the end of the URI (I.e /devices/debug=yes/).

If the page you are trying to load has a substantial amount of data in it then it could be that the php memory limit needs to be increased in php.ini and then your web service reloaded.

Why do I not see any graphs?

The easiest way to check if all is well is to run ./validate.php as root from within your install directory. This should give you info on why things aren't working.

One other reason could be a restricted snmpd.conf file or snmp view which limits the data sent back. If you use net-snmp then we suggest using the included snmpd.conf file.

How do I debug pages not loading correctly?

A debug system is in place which enables you to see the output from php errors, warnings and notices along with the MySQL queries that have been run for that page.

To enable the debug option, add /debug=yes/ to the end of any URI (I.e /devices/debug=yes/) or ?debug=yes if you are debugging a graph directly.

You will then have a two options in the footer of the website - Show SQL Debug and Show PHP Debug. These will both popup that pages debug window for you to view. If the page itself has generated a fatal error then this will be displayed directly on the page.

How do I debug the discovery process?

Please see the Discovery Support document for further details.

How do I debug the poller process?

Please see the Poller Support document for further details.

Why do I get a lot apache or rrdtool zombies in my process list?

If this is related to your web service for LibreNMS then this has been tracked down to an issue within php which the developers aren't fixing. We have implemented a work around which means you shouldn't be seeing this. If you are, please report this in issue 443.

Why do I see traffic spikes in my graphs?

This occurs either when a counter resets or the device sends back bogus data making it look like a counter reset. We have enabled support for setting a maximum value for rrd files for ports.

Before this all rrd files were set to 100G max values, now you can enable support to limit this to the actual port speed.

rrdtool tune will change the max value when the interface speed is detected as being changed (min value will be set for anything 10M or over) or when you run the included script (./scripts/tune_port.php) - see RRDTune doc

Why do I see gaps in my graphs?

This is most commonly due to the poller not being able to complete it's run within 300 seconds. Check which devices are causing this by going to /poll-log/ within the Web interface.

When you find the device(s) which are taking the longest you can then look at the Polling module graph under Graphs -> Poller -> Poller Modules Performance. Take a look at what modules are taking the longest and disabled un used modules.

If you poll a large number of devices / ports then it's recommended to run a local recurisve dns server such as pdns-recursor.

Running RRDCached is also highly advised in larger installs but has benefits no matter the size.

How do I change the IP / hostname of a device?

There is a host rename tool called renamehost.php in your librenms root directory. When renaming you are also changing the device's IP / hostname address for monitoring. Usage:

./renamehost.php <old hostname> <new hostname>

My device doesn't finish polling within 300 seconds

We have a few things you can try:

Things aren't working correctly?

Run ./validate.php as root from within your install.

Re-run ./validate.php once you've resolved any issues raised.

You have an odd issue - we'd suggest you join our irc channel to discuss.

What do the values mean in my graphs?

The values you see are reported as metric values. Thanks to a post on Reddit here are those values:

10^-18  a - atto
10^-15  f - femto
10^-12  p - pico
10^-9   n - nano
10^-6   u - micro
10^-3   m - milli
0    (no unit)
10^3    k - kilo
10^6    M - mega
10^9    G - giga
10^12   T - tera
10^15   P - peta

Why does a device show as a warning?

This is indicating that the device has rebooted within the last 24 hours (by default). If you want to adjust this threshold then you can do so by setting $config['uptime_warning'] in config.php. The value must be in seconds.

Why do I not see all interfaces in the Overall traffic graph for a device?

By default numerous interface types and interface descriptions are excluded from this graph. The excluded defailts are:

$config['device_traffic_iftype'][] = '/loopback/';
$config['device_traffic_iftype'][] = '/tunnel/';
$config['device_traffic_iftype'][] = '/virtual/';
$config['device_traffic_iftype'][] = '/mpls/';
$config['device_traffic_iftype'][] = '/ieee8023adLag/';
$config['device_traffic_iftype'][] = '/l2vlan/';
$config['device_traffic_iftype'][] = '/ppp/';

$config['device_traffic_descr'][] = '/loopback/';
$config['device_traffic_descr'][] = '/vlan/';
$config['device_traffic_descr'][] = '/tunnel/';
$config['device_traffic_descr'][] = '/bond/';
$config['device_traffic_descr'][] = '/null/';
$config['device_traffic_descr'][] = '/dummy/';

If you would like to re-include l2vlan interfaces for instance, you first need to unset the config array and set your options:

unset($config['device_traffic_iftype']);
$config['device_traffic_iftype'][] = '/loopback/';
$config['device_traffic_iftype'][] = '/tunnel/';
$config['device_traffic_iftype'][] = '/virtual/';
$config['device_traffic_iftype'][] = '/mpls/';
$config['device_traffic_iftype'][] = '/ieee8023adLag/';
$config['device_traffic_iftype'][] = '/ppp/';

How do I move my LibreNMS install to another server?

If you are moving from one CPU architecture to another then you will need to dump the rrd files and re-create them. If you are in
this scenario then you can use Dan Brown's migration scripts.

If you are just moving to another server with the same CPU architecture then the following steps should be all that's needed:

- Install LibreNMS as per our normal documentation, you don't need to run through the web installer or building the sql schema.   
- Stop cron by commenting out all lines in `/etc/cron.d/librenms`
- Dump the MySQL database `librenms` and import this into your new server.
- Copy the `rrd/` folder to the new server.
- Copy the `config.php` file to the new server.
- Renable cron by uncommenting all lines in `/etc/cron.d/librenms`

Why is my EdgeRouter device not detected?

If you have service snmp description set in your config then this will be why, please remove this. For some reason Ubnt have decided setting this value should override the sysDescr value returned which breaks our detection.

If you don't have that set then this may be then due to an update of EdgeOS or a new device type, please create an issue.

Why are some of my disks not showing?

If you are monitoring a linux server then net-snmp doesn't always expose all disks via hrStorage (HOST-RESOURCES-MIB). We have additional support which will retrieve disks via dskTable (UCD-SNMP-MIB). To expose these disks you need to add additional config to your snmpd.conf file. For example, to expose /dev/sda1 which may be mounted as /storage you can specify:

disk /dev/sda1

Or

disk /storage

Restart snmpd and LibreNMS should populate the additional disk after a fresh discovery.

Why are my disks reporting an incorrect size?

There is a known issue for net-snmp, which causes it to report incorrect disk size and disk usage when the size of the disk (or raid) are larger then 16TB, a workaround has been implemented but is not active on Centos 6.8 by default due to the fact that this workaround breaks official SNMP specs, and as such could cause unexpected behaviour in other SNMP tools. You can activate the workaround by adding to /etc/snmp/snmpd.conf :

realStorageUnits 0

What is the Difference between Disable Device and Ignore a Device?

How do I add support for a new OS?

Please see Supporting a new OS

What information do you need to add a new OS?

Under the device, click the gear and select Capture. Please provide the output of Discovery, Poller, and Snmpwalk as separate non-expiring https://p.libren.ms/ links.

You can also use the command line to obtain the information. Especially, if snmpwalk results in a large amount of data. Replace the relevant information in these commands such as HOSTNAME and COMMUNITY. Use snmpwalk instead of snmpbulkwalk for v1 devices.

These commands will automatically upload the data to LibreNMS servers.

./discovery.php -h HOSTNAME -d | ./pbin.sh
./poller.php -h HOSTNAME -r -f -d | ./pbin.sh
snmpbulkwalk -OUneb -v2c -c COMMUNITY HOSTNAME .  | ./pbin.sh

You can use the links provided by these commands within the issue.

If possible please also provide what the OS name should be if it doesn't exist already.

What can I do to help?

Thanks for asking, sometimes it's not quite so obvious and everyone can contribute something different. So here are some ways you can help LibreNMS improve.

How can I test another users branch?

LibreNMS can and is developed by anyone, this means someone may be working on a new feature or support for a device that you want. It can be helpful for others to test these new features, using Git, this is made easy.

cd /opt/librenms

Firstly ensure that your current branch is in good state:

git status

If you see nothing to commit, working directory clean then let's go for it :)

Let's say that you want to test a users (f0o) new development branch (issue-1337) then you can do the following:

git remote add f0o https://github.com/f0o/librenms.git
git remote update f0o
git checkout issue-1337

Once you are done testing, you can easily switch back to the master branch:

git checkout master

If you want to pull any new updates provided by f0o's branch then whilst you are still in it, do the following:

git pull f0o issue-1337

Why can't Normal and Global View users see Oxidized?

Configs can often contain sensitive data. Because of that only global admins can see configs.

What is the Demo User for?

Demo users allow full access except adding/editing users and deleting devices and can't change passwords.

Why does modifying 'Default Alert Template' fail?

This template's entry could be missing in the database. Please run:

mysql -u librenms -p < sql-schema/202.sql

Why would alert un-mute itself?

If alert un-mutes itself then it most likely means that the alert cleared and is then triggered again. Please review eventlog as it will tell you in there.