Submit a ticketCall us

Get a crash course on Network Monitoring delivered right to your inbox
This free 7-day email course provides a primer to the philosophy, theory, and fundamental concepts involved in IT monitoring. Lessons will explain not only how to perform various monitoring tasks, but why and when you should use them. Sign up now.

Home > Success Center > Network Performance Monitor (NPM) > NPM Scheduled report export to PDF shows login page

NPM Scheduled report export to PDF shows login page

Updated April 18, 2017

Overview

A scheduled report exported to pdf shows the login page for the Solarwinds Orion Web Console. 

 

From the Core.BusinessLayer.log located at C:\ProgramData\Solarwinds\Logs\Orion:

INFO  SolarWinds.Orion.Security.ProcessRunner - (null)  stdout: Input file does not exist --url http://ORIONWEB1:80/Orion/Report.asp...e-3d8bae0b1400 --outputfile C:\ProgramData\SolarWinds\Orion\4wkfgc2o.ivz or does not user as argument
Try read settings explicitly from command line args.
SUCCESS:C:\ProgramData\SolarWinds\Orion\4wkfgc2o.ivz:Title:OrionExport

Environment

  • NPM 12.0
  • NPM 12.0.1
  • NPM 12.1

Cause 

Possible causes include:

  • Environment (group policy vs using local system account for services)
  • A bug with 3rd party component we use

Resolution

Workaround 1: Change the Orion module engine to an administrator account

  1. Open Services.
  2. Right-click on SolarWinds Orion Module Engine.
  3. Select properties.
  4. Select the Log On tab. 
  5. Select This Account.
  6. Provide credentials for Built-in Local Administrator account, click OK.
  7. Restart the Orion services.

Workaround 2: Clear C:/Windows/temp

  1. Open C:\Windows\Temp.
  2. Remove all files older than 1 month.
  3. Restart Orion services.

Workaround 3:  Use another 3rd party component

Install another 3rd party component for generating pdfs and use it instead of the default component:

  1. Download wkhtmltopdf (http://wkhtmltopdf.org/) and install to any folder.
    Let say you installed wkhtmltopdf component to this location: C:\Program Files\wkhtmltopdf\bin\.
  2. Execute following sql script against orion DB in SQL Management Studio:

    UPDATE [dbo].[WebSettings]

    SET SettingValue= 'C:\Program Files\wkhtmltopdf\bin\wkhtmltopdf.exe'

    where SettingName = 'PdfExport_PrimaryEnginePath'

     

    UPDATE [dbo].[WebSettings]

    SET SettingValue= '--no-stop-slow-scripts --javascript-delay 120000 ${URL} ${PDFFileNamePath}'

    where SettingName = 'PdfExport_PrimaryEngineArgsPattern'

  3. Restart the Orion services.

 

To revert to the original PDF converter:-

1. Execute the following SQL script against the database in SQL Management Studio:

 

UPDATE [dbo].[WebSettings] SET SettingValue= '${OrionInstallFolder}ExportToPDFCmd.Exe' where SettingName = 'PdfExport_PrimaryEnginePath'

 

UPDATE [dbo].[WebSettings] SET SettingValue= '--url ${URL} --outputfile ${PDFFileNamePath}' where SettingName = 'PdfExport_PrimaryEngineArgsPattern'

 

Workaround 4: Bypass the login screen with DirectLink

  1. Create a new Orion account named DirectLink to bypass the login screen.
  2. Rerun the scheduled report.
  3. If the customer complains that this could be a security issue, you may delete the DirectLink account and that should still work.

 

 

Disclaimer: Please note, any content posted herein is provided as a suggestion or recommendation to you for your internal use. This is not part of the SolarWinds software or documentation that you purchased from SolarWinds, and the information set forth herein may come from third parties. Your organization should internally review and assess to what extent, if any, such custom scripts or recommendations will be incorporated into your environment.  You elect to use third party content at your own risk, and you will be solely responsible for the incorporation of the same, if any.

 

Last modified
02:21, 4 Jul 2017

Tags

Classifications

Public