Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Nagios Availability Reports to pdf
Current Version
1.0
Last Release Date
2010-08-31
Compatible With
- Nagios 3.x
Owner
Website
License
GPL
Hits
133102
Files:
File | Description |
---|---|
documentation.doc | documentation.doc |
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
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
=============
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
=============