Reporting
Posted: Wed Aug 26, 2015 9:26 am
Hello
We have nagios configured to send out reports (in PDF format) at the end of every month. However, end user didn't receive last month reports. Though he has received previous months. I can generate reports in nagios GUI but they are within the nagios GUI.
I followed this site and this code to generate report.
http://www.claudiokuenzler.com/blog/117 ... d3BPZeiBJM
wkhtmltopdf --username user1 --password password!T "http://<ip address>/nagios3/cgi-bin/avail.cgi?show_log_entries=&host=HOST&service=SERVICE&timeperiod=thismonth" /tmp/report.pdf
Notice that we have '!T' in the password. If i run the command as above, i get this error.
-bash: !T: event not found
So i put the password in the 'password!T', it generates the report but within the report i don't see the actual data but message as shown attached.
wkhtmltopdf --username user1 --password password!T "http://<ip address>/nagios3/cgi-bin/avail.cgi?show_log_entries=&host=HOST&service=SERVICE&timeperiod=thismonth" /tmp/report.pdf
I would like to generate reports for ALL HOSTS and ALL HOSTGROUPS.
Please assist.
Thank you.
MK
Update-
I did a password change to exclue !T but i get the same output file as previoiusly.
We have nagios configured to send out reports (in PDF format) at the end of every month. However, end user didn't receive last month reports. Though he has received previous months. I can generate reports in nagios GUI but they are within the nagios GUI.
I followed this site and this code to generate report.
http://www.claudiokuenzler.com/blog/117 ... d3BPZeiBJM
wkhtmltopdf --username user1 --password password!T "http://<ip address>/nagios3/cgi-bin/avail.cgi?show_log_entries=&host=HOST&service=SERVICE&timeperiod=thismonth" /tmp/report.pdf
Notice that we have '!T' in the password. If i run the command as above, i get this error.
-bash: !T: event not found
So i put the password in the 'password!T', it generates the report but within the report i don't see the actual data but message as shown attached.
wkhtmltopdf --username user1 --password password!T "http://<ip address>/nagios3/cgi-bin/avail.cgi?show_log_entries=&host=HOST&service=SERVICE&timeperiod=thismonth" /tmp/report.pdf
I would like to generate reports for ALL HOSTS and ALL HOSTGROUPS.
Please assist.
Thank you.
MK
Update-
I did a password change to exclue !T but i get the same output file as previoiusly.