Home » Categories » Products » Nagios XI » Troubleshooting » Common Problems

Nagios XI - Error while converting SVG

Problem Description

In Nagios XI, when saving a performance graph as a PNG, JPEG image you receive the following error:

Error while converting SVG

 

You may also see the following error logged in /var/log/httpd/error_log:

sh: ./phantomjs: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

 

The problem relates to the phantomjs libraries that are used to export the images to a file.

 

 

Resolution

The resolution is to reinstall the phantomjs libraries on Nagios XI.

Establish a terminal session to your Nagios XI server and execute the following commands:

cd /tmp
rm -rf phantomjs*
uname -a

 

The output with either contain i686 or x86_64, this is required for the following file download.

Execute the following command to download the correct file:

i686

wget phantomjs-1.9.8-linux-i686.tar https://assets.nagios.com/downloads/nagiosxi/packages/phantomjs-1.9.8-linux-i686.tar

 

x86_64

wget phantomjs-1.9.8-linux-x86_64.tar https://assets.nagios.com/downloads/nagiosxi/packages/phantomjs-1.9.8-linux-x86_64.tar

 

Now execute the following commands to reinstall phantomjs:

tar xf phantomjs*.tar
mkdir -p /usr/local/nagiosxi/html/includes/components/highcharts/exporting-server/temp
/bin/cp -f phantomjs*/bin/phantomjs /usr/local/nagiosxi/html/includes/components/highcharts/exporting-server/
chown -R nagios:nagios /usr/local/nagiosxi/html/includes/components/highcharts/exporting-server
chmod 775 /usr/local/nagiosxi/html/includes/components/highcharts/exporting-server/temp

 

After executing these commands the graphs should now export successfully to images.

 

 

Final Thoughts

For any support related questions please visit the Nagios Support Forums at:

http://support.nagios.com/forum/

0 (0)
Article Rating (No Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
Nagios XI - ERROR: unable to open include file: /etc/mrtg/conf.d/xxxxxxx.cfg
Viewed 4315 times since Wed, Jun 1, 2016
Nagios XI - MK Livestatus Problems With Mod-Gearman
Viewed 2866 times since Thu, Feb 25, 2016
Nagios XI - Notifications Not Sending In XI 5.3.0
Viewed 2557 times since Tue, Oct 4, 2016
Nagios XI - SNMPTT Service generates Cannot find module errors
Viewed 3088 times since Sun, Apr 9, 2017
Nagios XI - Reset Upgrade Status In Web Interface
Viewed 5996 times since Tue, May 7, 2019
Nagios XI - Crashed Database Tables
Viewed 40043 times since Tue, Jan 27, 2015
Nagios XI - MSSQL Query Wizard - Invalid characters in the username
Viewed 2725 times since Thu, Aug 3, 2017
Nagios XI - Configuration Applies, but still get "Configuration File Is Out Of Date" Error
Viewed 2413 times since Tue, Jan 26, 2016
Nagios XI - Login Screen Keeps Redirecting To Itself
Viewed 3780 times since Wed, Jan 27, 2016
Nagios XI - Last Check Time Not Updating
Viewed 10898 times since Tue, Jan 6, 2015