Are you stuck with an error while converting SVG Nagios? We can help you with it.
Here at Bobcares, we have seen several such Nagios-related errors as part of our Server Management Services for web hosts and online service providers.
Today we’ll take a look at the causes for this error and see the fix.
Why does error while converting SVG Nagios occur
Normally, you come across this error message when saving a performance graph as a PNG, JPEG image in Nagios XI.
Sometimes, you may also see the below error message is logged in /var/log/httpd/error_log:
sh: ./phantomjs: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory
This problem mainly relates to the phantomjs libraries that are used to export the images to a file.
How we fix the error while converting SVG Nagios
Now let’s see how our Support Engineers resolve this error message to our customers.
In order to fix this error, we suggest reinstalling the phantomjs libraries on Nagios XI.
For that, first, establish a terminal session to your Nagios XI server and run the below commands.
# cd /tmp
# rm -rf phantomjs*
# uname -a
As a result, the output will either contain i686 or x86_64. This is necessary for the following file download.
Now, run the below command to download the right 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
After that, run the below 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
Once you execute the above commands, the graph should now export successfully to images.
[Need any further assistance in fixing Nagios errors? – We are here to help you]
Conclusion
In short, this Nagios error occurs when saving a performance graph as a PNG, JPEG image in Nagios XI. Today, we saw the solution our Support Engineers provide to this error.
0 Comments