Graphic for Device > Ports

I can’t figure out where I need to make the right setting or there is a bug on each device in Ports> Details I can’t see the graphing images I access the desired port to see in real time I receive the following error.

Your browser does not support the SVG type! You need to either use Firefox or download the Adobe SVG plugin.

What browser are your using?

firefox internet explorer and chorme.

run ./validate.php

I am run but no change nothing.

post the output please

there probably is some underlying issue with your web server, as those browsers should display SVG without issue. a workaround would be to switch your graphs from SVG to PNG in the RRD graph global settings

most likely you missed a step when setting this up.

I changed from SVG to PNG I run validated config and there is no change maybe it’s a bug I can’t figure out where the problem comes from.

Is there anyone who can help me?

You did not provide much information.
Please attach ./validate.php first.

Then, did you exactly follow the documentation that is provided to install LibreNMS ?

Do you have a reverse proxy or anything different than in the doc ?

Please see the validate.php outpot attached:

Last login: Mon Mar 16 00:00:15 EET 2020
-bash-4.2$ ./validate.php

Component Version
LibreNMS 1.61-40-g4e349ef
DB Schema 2020_02_10_223323_create_alert_location_map_table (159)
PHP 7.2.27
MySQL 5.5.64-MariaDB
RRDTool 1.4.8


[OK] Composer Version: 1.10.1
[OK] Dependencies up-to-date.
[OK] Database connection successful
[OK] Database schema correct
You have new mail in /var/spool/mail/librenms

I do not use any reverse proxy , it’s basic Apache installed 2.4.x and unfortunate the installation was made over a year ago and I do no remember the steps or if I missed something.

This can be fixed in any way ? I see the script is adding an additional /device/device=12/tab=port/port=605/graph.php?.. to the image url which results to not found.

Also I use the latest version / recently updated.

Looks normal to me so far … No real idea.
Anything in the apache logs ? Anything in the /var/spool/mail/librenms ?

error logs: I can see the script is adding an additional ( /device/device ) = /device/device=12/tab=port/port=605/graph.php?.. to the image url which results to not found.

in fact, that’s right, all except /graph.php?.. should be gone. Any special config in “.env” and “config.php” ?

Have a look in for examples of settings you can set here. DO NOT EDIT!

Database config

$config[‘db_host’] = ‘localhost’;
$config[‘db_port’] = ‘3306’;
$config[‘db_user’] = ‘librenms’;
$config[‘db_pass’] = ‘password’;
$config[‘db_name’] = ‘librenms’;
$config[‘db_socket’] = ‘’;

// 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’;
$config[‘enable_syslog’] = 1;
$config[‘syslog_purge’] = 30;

Locations - it is recommended to keep the default

#$config[‘install_dir’] = “/opt/librenms”;

############### Ignore specific storage ###########
$config[‘ignore_mount’][] = ‘/var/tmp’;
$config[‘ignore_mount’][] = ‘/boot’;
$config[‘ignore_mount’][] = ‘/boot/efi’;
$config[‘ignore_mount’][] = ‘/dev’;
$config[‘ignore_mount’][] = ‘/run’;
$config[‘ignore_mount’][] = ‘/usr/share’;
$config[‘ignore_mount’][] = ‘/dev/shm’;
$config[‘ignore_mount’][] = “/kern”;
$config[‘ignore_mount’][] = “/mnt/cdrom”;
$config[‘ignore_mount’][] = “/tmp/vz-guest-tools-iso”;
$config[‘ignore_mount’][] = “/vz/root”;

$config[‘ignore_mount_string’][] = “/vz/root”;
$config[‘ignore_mount_string’][] = “packages”;
$config[‘ignore_mount_string’][] = “devfs”;
$config[‘ignore_mount_string’][] = “virtfs”;
$config[‘ignore_mount_string’][] = “procfs”;
$config[‘ignore_mount_string’][] = “cagefs”;
$config[‘ignore_mount_string’][] = “cagefs-skeleton”;
$config[‘ignore_mount_string’][] = “cgroup”;
$config[‘ignore_mount_string’][] = “run”;
$config[‘ignore_mount_string’][] = “vz-guest-tools-iso”;

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’][] = “”;
#$config[‘nets’][] = “”;
#$config[‘nets’][] = “”;

Update configuration

#$config[‘update_channel’] = ‘release’; # uncomment to follow the monthly release channel
#$config[‘update’] = 0; # uncomment to completely disable updates

========config .env=============




Does anyone know what the solution is?

What are the contents of /etc/hosts and the nginx file for librenms?

If you do not have an entry in /etc/hosts similar to the following    nms

you should add it.

Make sure that there’s an entry as well in your nginx file for librenms that specifies that host as the server_name

Had the same fault using the standard apache conf.

I added these two lines to my VirtualHost to get realtime port working

Header always unset X-Frame-Options
Header set X-Frame-Options “SAMEORIGIN”

1 Like