Integrating zoho reports with opmanager

886 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
886
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Integrating zoho reports with opmanager

  1. 1. Integrating ZOHO Reports with OpManager Cool reports from the cloud !
  2. 2. Step1: Download the zreports uploader <ul><li>Save this file under your opmanager/zohoreports folder </li></ul><ul><li>zoho reports uploader </li></ul><ul><li>http://bonitas.zohocorp.com/customer_uploads/2011_11_22_6_0_5_ZohoReports.zip </li></ul>
  3. 3. Step2 : Create a dabase in zreports <ul><li>Go to http://reports.zoho.com </li></ul><ul><li>Create a database called MyTestDB </li></ul>here - >
  4. 4. Step3: Edit database_connection_params.conf <ul><li>Edit the file opmanager/zohoreports/uploader/ conf/database_connection_params.xml </li></ul><ul><li># $Id$ </li></ul><ul><li>DBTYPE=sqlserver </li></ul><ul><li>HOSTNAME=opmanager-win2k8-1 </li></ul><ul><li>PORT=1433 </li></ul><ul><li>USERNAME=sa </li></ul><ul><li>PASSWORD=password </li></ul><ul><li>DBNAME=opmanagerdb </li></ul><ul><li>MDBFILENAME= </li></ul>
  5. 5. Step4: Edit database_sql_queries.xml <ul><li>Edit the file opmanager/zohoreports/uploader/ conf/database_sql_queries.xml </li></ul><ul><li><Query dbname=&quot;MyTestDB&quot; tablename=&quot;TableRowCount&quot; importtype=&quot;UPDATEADD&quot; matchingcols=&quot;TableName&quot; selectcols=&quot;&quot; skiptop=&quot;&quot;> </li></ul><ul><li>     SELECT sc.name +'.'+ ta.name TableName </li></ul><ul><li>     ,SUM(pa.rows) RowCnt </li></ul><ul><li>     FROM sys.tables ta </li></ul><ul><li>     INNER JOIN sys.partitions pa </li></ul><ul><li>     ON pa.OBJECT_ID = ta.OBJECT_ID </li></ul><ul><li>     INNER JOIN sys.schemas sc </li></ul><ul><li>     ON ta.schema_id = sc.schema_id </li></ul><ul><li>     WHERE ta.is_ms_shipped = 0 AND pa.index_id IN (1,0) </li></ul><ul><li>     GROUP BY sc.name,ta.name </li></ul><ul><li>     ORDER BY SUM(pa.rows) DESC </li></ul><ul><li></Query> </li></ul>
  6. 6. Step5: Execute UploadFromDB.bat <ul><li>Execute the file opmanager/zohoreports/uploader/bin/ UploadFromDB.bat </li></ul><ul><li>usage: uploadfromdb.bat <yourzohousername> <yourzohopassword> </li></ul>
  7. 7. Check if data is shown in zreports <ul><li>go to http://reports.zoho.com </li></ul><ul><li>check if a new table called TableRowCount is created </li></ul>
  8. 8. Step6 : Automate batch file execution <ul><li>Using Windows Task Scheduler run the batch file every 1 hour </li></ul>
  9. 9. Step7: Embed the data into OpManager <ul><li>Create a HTML widget and embed the data back into opmanager </li></ul>
  10. 10. Thank You. For more details email devanand@zohocorp.com

×