On 30 Jul 2009, at 00:20, Nick Akl wrote:

Not sure if you had a chance to look at this but any chance on what i need to do to get the reports? Also I was thinking about it that i always had the offset time to be pacific. why would it stop producing these reports recently? and is there a way to produce these reports manually by running a command with a specific date range?

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


  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 UK under Company Number 5396532. Our registered office is Gorse View, Horsell Rise, Woking, SurreyGU21 4RB.

_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users

Reply via email to