Requirements to Export Reports as PDF
PhantomJs is a third party tool that is used for generating PDF reports in NetFlow Analyzer. The phantomjs.org link suggests the following requirement to use their tool.
For Linux
First, install the development packages of the following tools and libraries: gcc, bison, flex, gperf, Perl, Ruby, SQLite, FreeType, Fontconfig, OpenSSL, and ICU. The actual package names may vary from one distribution to another.
1. If PDF not generated in Linux machine then execute the following commands:
2. If PDF generated with garbled characters then try the following command:
Note: For font issues, it is also recommended to install ttf-mscorefonts-installer package.
- For CentOS:
sudo yum install libXext libXrender xorg-x11-fonts-Type1 xorg-x11-fonts-75dpi |
- For Chinese:
sudo yum groupinstall "Chinese Support" sudo yum install cjkuni-ukai-fonts |
- For Japanese:
sudo yum groupinstall "Japanese Support" sudo yum install cjkuni-fonts-common cjkuni-ukai-fonts cjkuni-uming-fonts |
For Windows
- Check if the phantomJs process is running.
- Check Administrator privilege is given for "/OpManager/Export" folder.
- Give Full access privilege to the user.
- If product has been started as a service, then try the below steps:
- Stop the service.
- Right click the ManageEngine OpManager service.
- Go to properties → Log On.
- Click log on as This account and enter credential (Administrator privilege) and apply the changes done.
- Start the service.
For SSL issues:
- Open "/OpManager/Export/script/config.json" file.
- Set, "ignoreSslErrors":true
Other troubleshooting steps:
- Check whether "/OpManager/Export/phantomJs/phantomjs" file is available or not. In the case of the file being unavailable, kindly contact support.
- Connect the web GUI using <protocol>://localhost:<port> and verify if it is working fine in the installation server.
- In Linux,
- If 'java.lang.RuntimeException: Error, PhantomJS could not start CUSTOM_EXPORT_SERVER_PORT=9990' error is found in logs (stderr_0.txt / phantomlog_0.txt), and NetFlow service is running in https port or SSL is enabled, then go to /OpManager/Export/phantomJs directory and try connecting phantomJS using the following command: ./phantomjs
- If it shows 'Auto configuration failed' error, then do the following:
- Open the '/etc/environment' file
- Add a new entry: OPENSSL_CONF="/etc/ssl/"
- Restart the NetFlow service.