On 30 Jul 2009, at 00:20, Nick Akl wrote:
There is a command line interface to run the reports but it isnt that easy to use (its not really meant to be run on the command line) /usr/local/nagios/bin/run_opsview_report -N<id> -S <date> -f<file> -t<type> N is the report id - get from going to the report edit page and looking at the url - should be like '.../report/edit/10' - so use 10 in this case S is the date in the format YYYY-MM and signifies the start date of the report (-S -1 signifies the previous reporting period) t is the report type - 'ls /usr/local/opsview-reports/types/' will list available types - generally 'generic_availability' f is the output file so the following would generate a report (it does on my system) /usr/local/nagios/bin/run_opsview_report -N10 -S 2009-06 -t generic_availability -f /tmp/report.pdf I have put some notes on the process here: http://docs.opsview.org/doku.php?id=opsview3.1:opsview-reports#running_by_hand Duncs -- Duncan Ferguson Senior Developer Opsera Limited | Unit 69 Suttons Business Park Reading | Berkshire | RG6 1AZ | UK Phone: +44 (0) 845 057 7887 Mobile: +44 (0) 7968 148 748 Skype: duncan_j_ferguson Email: [email protected] www.opsera.com Opsera Limited is registered in the |
_______________________________________________ Opsview-users mailing list [email protected] http://lists.opsview.org/lists/listinfo/opsview-users
