Home Directory Addons Reporting Nagios Availability Reports to pdf

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Nagios Availability Reports to pdf

Current Version
1.0
Last Release Date
2010-08-31
Compatible With
  • Nagios 3.x
License
GPL
Hits
122328
Files:
FileDescription
documentation.docdocumentation.doc
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
Nagios Availability Reports to pdf via wkhtmltopdf and crontab
Nagios Availability Reports to pdf via wkhtmltopdf and crontab.

This is an addon to Nagios3.x web interface , you can get Nagios Availability Reports to pdf thanks to wkhtmltopdf app. :

http://code.google.com/p/wkhtmltopdf/

you only have to install wkhtmltopdf in your sistem, genetare pdfs and link to your side.php.

There is a little problem, you have to disable cgi authorization to get cgi-htmls converted into pdf without problem, (this is not a problem in a secure enviroment)

look into documentation.doc
Reviews (1)
byelpatron, October 22, 2014
works as expected. thanks.

here is my quick and dirty bash script for an availabilty report for a specific host:

=============
#!/bin/bash
STARTDATE=$(/bin/date --date='-1 month' +%s)
ENDDATE=$(/bin/date +%s)
URL="http://localhost/nagios/cgi-bin/avail.cgi?host=$1&service=http&t1=$STARTDATE&t2=$ENDDATE&backtrack=4&assumestateretention=yes&assumeinitialstates=yes&assumestatesduringnotrunning=yes&initialassumedhoststate=0&initialassumedservicestate=0&show_log_entries&showscheduleddowntime=yes"
#echo $URL
PDFFILE="$1.PDF"
/usr/local/bin/wkhtmltopdf --username nagiosadmin --password 1234567 $URL $PDFFILE > /dev/nul
=============