We get the email that has the page.pdf attachment, but when we try to open it, the browser says that the file is corrupt. When I look at the attachment it looks like this (it's been truncated due to size limitations, but you get the idea):
Code: Select all
<!DOCTYPE html>
<!-- Produced by Nagios XI. Copyright (c) 2008-2016 Nagios Enterprises, LLC (www.nagios.com). All Rights Reserved. -->
<!-- Powered by the Nagios Synthesis Framework -->
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=Edge"/>
<title>Nagios XI - Dashboard - Internet and WAN Router Utilization</title>
<meta name="ROBOTS" content="NOINDEX, NOFOLLOW">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel="icon" type="image/png" href="http://nagios.example.com/nagiosxi/images/favicon-32x32.png" sizes="32x32" />
<link rel="shortcut icon" href="http://nagios.example.com/nagiosxi/images/favicon.ico" type="image/ico"/>
<script type='text/javascript'>
var base_url = "http://nagios.example.com/nagiosxi/";
var backend_url = "http%3A%2F%2Fnagios.example.com%2Fnagiosxi%2F%2Fdashboards%2Fdashboard.php";
var ajax_helper_url = "http://nagios.example.com/nagiosxi/ajaxhelper.php";
var ajax_proxy_url = "http://nagios.example.com/nagiosxi/ajaxproxy.php";
var suggest_url = "http://nagios.example.com/nagiosxi/suggest.php";
var request_uri = "%2Fnagiosxi%2F%2Fdashboards%2Fdashboard.php%3Fid%3Dr8284oga%26username%3Dnagiosadmin%26ticket%3Dk7u8q3ou%26locale%3Den_US%26mode%3Dpdf";
var permalink_base = "http%3A%2F%2Fnagios.example.com%2Fnagiosxi%2F%2Fdashboards%2Fdashboard.php%3F%26id%3Dr8284oga%26username%3Dnagiosadmin%26ticket%3Dk7u8q3ou%26locale%3Den_US%26mode%3Dpdf";
var demo_mode =0;
var nsp_str = "c51089eb1ee55d7b0fa4f83cb5d2495c659b9e670a76954107e9c8b55f559069";
</script>
<!-- Adding Font-Awesome for all themes -->
<link rel="stylesheet" href="http://nagios.example.com/nagiosxi/includes/css/font-awesome.min.css?1465567804" type="text/css" />
<!-- main jquery libraries -->
<script type='text/javascript' src='http://nagios.example.com/nagiosxi/includes/js/jquery/jquery-1.11.2.min.js?1465567804'></script>
<script type='text/javascript' src='http://nagios.example.com/nagiosxi/includes/js/jquery/jquery-migrate-1.2.1.min.js?1465567804'></script>
<link type="text/css" href="http://nagios.example.com/nagiosxi/includes/js/jquery/css/smoothness/jquery-ui-1.9.0.custom.min.css?1465567804" rel="stylesheet"/>
<script type='text/javascript' src='http://nagios.example.com/nagiosxi/includes/js/jquery/jquery.colorBlend.js'></script>
<script type='text/javascript' src='http://nagios.example.com/nagiosxi/includes/js/jquery/jquery.timers-1.1.3.js'></script>
<script type='text/javascript' src='http://nagios.example.com/nagiosxi/includes/js/jquery/jquery-ui-1.9.0.custom.min.js?1465567804'></script>
<script type='text/javascript' src='http://nagios.example.com/nagiosxi/includes/js/jquery/jquery-ui-timepicker-addon.js?1465567804'></script>
<script type='text/javascript' src='http://nagios.example.com/nagiosxi/includes/js/jquery/jquery.searchabledropdown.custom.js?1465567804'></script>
<!-- Bootstrap 3 for XI 5 UI -->
<link rel="stylesheet" href="http://nagios.example.com/nagiosxi/includes/css/bootstrap.3.min.css?1465567804" type="text/css" />
<script type='text/javascript' src='http://nagios.example.com/nagiosxi/includes/js/bootstrap.3.min.js?1465567804'></script>
<!-- spin kit -->
<link rel="stylesheet" href="http://nagios.example.com/nagiosxi/includes/css/spinkit.css?1465567804" type="text/css" />
<!-- jquery autocomplete -->
<link rel='stylesheet' type='text/css' href='http://nagios.example.com/nagiosxi/includes/css/jquery.autocomplete.css'/>
<!-- colorpicker -->
<link rel="stylesheet" href="http://nagios.example.com/nagiosxi/includes/js/jquery/colorpicker/css/colorpicker.css" type="text/css" />
<script type="text/javascript" src="http://nagios.example.com/nagiosxi/includes/js/jquery/colorpicker/js/colorpicker.js"></script>
example.com
I can run wkhtmltopdf from the command line and use that same link to generate the pdf and it works.
It just fails when we try to let the scheduled report work.
Any ideas? Suggestions?