Reporting

Nagios Availability Reports to pdf

Description:

Nagios Availability Reports to pdf via wkhtmltopdf and crontab

Current Version

1.0

Last Release Date

2010-08-31

Compatible With

  • Nagios 3.x

License

GPL


Project Files
Project Photos
Project Notes
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) Add a Review
Nice aproach
by elpatron, October 31, 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 =============



Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
4 (1)
Favorites
2
Views
135,060