[icinga-checkins] icinga.org: icinga-doc/master: reporting.xml

git at icinga.org git at icinga.org
Thu Sep 30 23:32:24 CEST 2010


Module: icinga-doc
Branch: master
Commit: a31987ab80450f1837243f8d1658ac123790a080
URL:    https://git.icinga.org/?p=icinga-doc.git;a=commit;h=a31987ab80450f1837243f8d1658ac123790a080

Author: Lara Berdelsmann <berdelsmann at arcor.de>
Date:   Thu Sep 30 23:31:42 2010 +0200

reporting.xml

---

 en/reporting.xml |  153 ++++++++++--------------------------------------------
 1 files changed, 27 insertions(+), 126 deletions(-)

diff --git a/en/reporting.xml b/en/reporting.xml
index f60c8d3..5b91142 100644
--- a/en/reporting.xml
+++ b/en/reporting.xml
@@ -135,142 +135,43 @@
 
   <para>Known Bugs: If you don't see any graph labels in a pdf export please switch from OpenJDK to SUNJava</para>
 
-  <para><figure>
-      <title>&name-rep; integrated in &name-web;</title>
+  <informaltable frame="none">
+    <tgroup cols="2">
+      <colspec colname="c1" colwidth="50*" />
 
+      <colspec colname="c2" colwidth="50*" />
+
+      <tbody>
+        <row>
+          <entry>
+<para><figure>
       <mediaobject>
-        <imageobject role="html">
-          <imagedata align="left" fileref="../images/rep_avail.png" format="PNG"></imagedata>
+        <imageobject role="html"> 
+          <imagedata fileref="../images/rep_avail.png" format="PNG"></imagedata>
         </imageobject>
       </mediaobject>
-    </figure>
+    </figure></para>
+</entry>
 
-  <figure>
-      <title>&name-rep; TOP10</title>
+       <entry>
+<para><figure>
       <mediaobject>
-        <imageobject role="html">
-          <imagedata align="right" fileref="../images/reptop10.png" format="PNG"></imagedata>
+        <imageobject role="html"> 
+          <imagedata fileref="../images/reptop10.png" format="PNG"></imagedata>
         </imageobject>
       </mediaobject>
-    </figure>
-</para>
-  <para><emphasis role="bold">Install &name-pnp;</emphasis></para>
-
-  <orderedlist>
-    <listitem>
-      <para>Install &name-pnp; as described in the &name-pnp; <link
-      xlink:href="http://docs.pnp4nagios.org/en/pnp-0.6/start">documentation</link></para>
-    </listitem>
-
-    <listitem>
-      <para>Change the &name-pnp; configuration to match your &name-icinga; configuration. You probably may want to change these:
-      <programlisting>#> vi npcd.cfg
-    user = icinga
-    group = icinga
-    log_file = /var/log/icinga/npcd.log
-    perfdata_spool_dir = /var/icinga/spool/
-    perfdata_file = /var/icinga/perfdata.dump</programlisting> <programlisting>#> vi process_perfdata.cfg
-LOG_FILE = /var/log/icinga/perfdata.log</programlisting> <programlisting>#> vi config.php 
-$conf['nagios_base'] = "/icinga/cgi-bin";</programlisting></para>
-    </listitem>
-  </orderedlist>
-
-  <para><emphasis role="bold">Create a configuration to include &name-pnp; host pages in &name-web;</emphasis></para>
-
-  <orderedlist>
-    <listitem>
-      <para>Create a new grid view</para>
-
-      <para>Make a copy of the default icinga-host-template.xml in app/modules/Cronks/data/xml/grid under your &name-web; installation path,
-      example: <programlisting>cp /usr/share/icinga-web/app/modules/Cronks/data/xml/grid/icinga-host-template.xml /usr/share/icinga-web/app/modules/Cronks/data/xml/grid/icinga-my-host-template.xml</programlisting>
-      In the new file we just created add a new field definition: <programlisting><field name="pnp4nagios_host_link">
-            <!-- datasource maps a data field from api call -->
-            <datasource>
-                <parameter name="field">HOST_NAME</parameter>
-            </datasource>
-
-            <display>
-                <parameter name="visible">true</parameter>
-                <parameter name="label">Perfdata</parameter>
-                <parameter name="width">55</parameter>
-
-                <parameter name="Ext.grid.Column">
-                        <parameter name="menuDisabled">true</parameter>
-                        <parameter name="fixed">true</parameter>
-                </parameter>
-
-                <parameter name="jsFunc">
-                       <!-- fnuction to display column with icon in host status grid view -->
-                        <parameter>
-                                <parameter name="namespace">Cronk.grid.ColumnRenderer</parameter>
-                                <parameter name="function">columnImage</parameter>
-                                <parameter name="type">renderer</parameter>
-
-                                <parameter name="arguments">
-                                                        <parameter name="image">images/icons/application_view_gallery.png</parameter>
-                                                        <parameter name="css">x-icinga-grid-link</parameter>
-                                                        <parameter name="attr">
-                                                                <parameter name="qtip">Show host perfdata for this host</parameter>
-                                                        </parameter>
-                                </parameter>
-                        </parameter>
-
-                        <!-- create cell click event for the previously defined column -->
-                        <parameter>
-                                <parameter name="namespace">Cronk.grid.IcingaColumnRenderer</parameter>
-                                <parameter name="function">iFrameCronk</parameter>
-                                <parameter name="type">cellclick</parameter>
-                                <parameter name="arguments">
-                                        <parameter name="title">Host perfdata for {host_name}</parameter>
-                                        <parameter name="url"><![CDATA[/pnp4nagios/index.php/graph?host={host_name}&srv=_HOST_]]></parameter>
-                                        <parameter name="activateOnClick">true</parameter>
-                                </parameter>
-                        </parameter>
-                </parameter>
-           </display>
-
-            <filter>
-               <parameter name="enabled">false</parameter>
-            </filter>
-
-            <order>
-                <parameter name="enabled">false</parameter>
-           </order>
-        </field></programlisting></para>
-    </listitem>
-
-    <listitem>
-      <para>Add the new grid view to the "Data" cronk-container</para>
-
-      <para>Edit cronks.xml in directory app/modules/Cronks/config/ under your icinga-web add a section: <programlisting><ae:parameter name="gridMyServiceView">
-    <ae:parameter name="module">Cronks</ae:parameter>
-    <ae:parameter name="action">System.ViewProc</ae:parameter>
-    <ae:parameter name="hide">false</ae:parameter>
-    <ae:parameter name="description">Viewing service status in a grid including perfdata link</ae:parameter>
-    <ae:parameter name="name">MyServiceStatus</ae:parameter>
-    <ae:parameter name="categories">data</ae:parameter>
-    <ae:parameter name="ae:parameter">
-        <ae:parameter name="template">icinga-my-service-template</ae:parameter>
-    </ae:parameter>
-</ae:parameter></programlisting></para>
-    </listitem>
-  </orderedlist>
-
-  <note>
-    <para>If you edit any *.xml-File you have to clear the cache afterwards!</para>
-  </note>
-
-  <programlisting>rm -f app/cache/config/*.php</programlisting>
-
-  <para>or</para>
-
-  <programlisting>/icinga-web/bin/clearcache.sh</programlisting>
-
+    </figure></para>
+</entry>    
+        </row>
+      </tbody>
+    </tgroup>
+  </informaltable>
+ 
   <para>That's all, you're done!</para>
 
-  <indexterm zone="icinga-web-pnp">
-    <primary>&name-pnp;</primary>
+  <indexterm zone="icinga-reporting">
+    <primary>&name-rep;/&name-web;</primary>
 
-    <secondary>pnp with &name-web;</secondary>
+    <secondary>&name-rep;</secondary>
   </indexterm>
 </section>





More information about the icinga-checkins mailing list