CentOS 64bit (your vm from the website) on Vsphere 5.0 Update 2.
Nagios XI 2012Rv2.7
When I create a report and send it (csv/pdf doesn't matter) by email, then attachment is always 64B (thus corrupt/empty).
If a create the same report and export it to pdf without the email it works fine.
Our mgmt wants a monthly report on our website uptime so this feature is highly needed here.
Last edited by fogier on Thu Mar 20, 2014 8:30 am, edited 1 time in total.
I tested the availability report for the last 24 hours on 2012R2.8c and am not seeing this issue. Could it be one of your mail relays removing the attachment and/or not trusting your From: email address (specified on Admin -> Manage Email Settings)?
This is generally caused by one of few things. If your nagios otherwise appears fine as it sounds, it is likely an issue with the backend api items. To check,
Go to admin -> Manage Components -> click on settings for Backend API URL -> Select the Nagiosadmin user, and hit apply settings -> Select the link from the Hosts field and paste it into your address bar.
This should change you to a xml page containing information on your hosts. At the top, you should see a record count amount above 0 or 1, like this:
If record count is 0 or 1 and not a number accurate to number of hosts you are monitoring, you need to run the following two commands.
service ndo2db restart
[wait more than 1 minute]
service nagios restart
If you feel the record count is accurate, please send me the first 5-10 lines of that page. Considering this is specific to emailing as attachments, it might also be an issue with sendmail\smtp settings, but let's start here first.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.