[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opennms-discuss
Subject:    Re: [opennms-discuss] categorizing services in opennms
From:       Shreya Goshal <shreyagoshal212 () gmail ! com>
Date:       2010-09-29 8:32:19
Message-ID: AANLkTinsWx1gHEBYTCUpPaJ49tUCpnki9APuzYxYjpqy () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hello Ken,


Appreciated your help a lot..So what I have done is :-


<category>

        <label><![CDATA[Dbtest]]></label>

                <comment>This category consists of all nodes which are
running Mysql,Slave and Slave Lag instances.</comment>

                <normal>99.99</normal>

                <warning>97</warning>

                <service>MySQL</service>

                <service>MySQL_Slave_Lag</service>

                <service>Mysql-Slave</service>

         <rule><![CDATA[(servicename like '%My%')]]></rule>

                </category>


and the entry in  viewdisplay.xml for this.


But what it does is :- It list out all the nodes on which service like My is
running which is OK.But I want it so show the actual services also along
with the nodes,outages and availability columns.So It should have 4 columns
like nodes,services,outages and availabity OR it can use the nodes column
only but should list the service starting with My instead of listing out the
node names on which these services are running.


Shreya


*From:* Ken Eshelby [mailto:eshelbyk@gmail.com]
*Sent:* Wednesday, September 29, 2010 8:54 AM
*To:* General OpenNMS Discussion
*Subject:* Re: [opennms-discuss] categorizing services in opennms



You can assign a service to a node *in a way*.  I do this for counting
things like hardware types, OS versions or manufacturers.  Just need to make
sure the service is on the primary interface.

Here is a sample display category def-

            <category>
                <label><![CDATA[Critical Nodes]]></label>
                <comment>This category includes all devices with
nodeSysLocation matching the filter rule.</comment>
                <normal>99.9</normal>
                <warning>97</warning>
                <service>ICMP</service>
                <rule><![CDATA[(nodeSysLocation like '%CRITICAL%') &
(IsSnmpPrimary == 'P')]]></rule>
            </category>

something like isICMP and IsSnmpPrimary should work.

Then you can key notifications or display off the category and should be
able to generate SLA reports.


(viewsdisplay.xml section)
                <section>
                        <section-name><![CDATA[High
Priority]]></section-name>
                        <category><![CDATA[Critical Nodes]]></category>
                </section>


Cheers,

Ken

[Attachment #5 (text/html)]

<p class="MsoNormal"><font class="Apple-style-span" face="Tahoma, sans-serif">Hello \
Ken,</font></p><p class="MsoNormal"><font class="Apple-style-span" face="Tahoma, \
sans-serif"><br></font></p><p class="MsoNormal"><span \
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;mso-fareast-font-family:
 &quot;Times New Roman&quot;">Appreciated your help a lot..So what I have done is \
:-</span></p><p class="MsoNormal"><span \
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;mso-fareast-font-family:
 &quot;Times New Roman&quot;"><br></span></p><p class="MsoNormal"><font \
class="Apple-style-span" face="Tahoma, sans-serif">&lt;category&gt;</font></p><p \
class="MsoNormal"><font class="Apple-style-span" face="Tahoma, sans-serif">        \
&lt;label&gt;&lt;![CDATA[Dbtest]]&gt;&lt;/label&gt;</font></p> <p \
class="MsoNormal"><font class="Apple-style-span" face="Tahoma, sans-serif">           \
&lt;comment&gt;This category consists of all nodes which are running Mysql,Slave and \
Slave Lag instances.&lt;/comment&gt;</font></p> <p class="MsoNormal"><font \
class="Apple-style-span" face="Tahoma, sans-serif">                \
&lt;normal&gt;99.99&lt;/normal&gt;</font></p><p class="MsoNormal"><font \
class="Apple-style-span" face="Tahoma, sans-serif">                \
&lt;warning&gt;97&lt;/warning&gt;</font></p> <p class="MsoNormal"><font \
class="Apple-style-span" face="Tahoma, sans-serif">                \
&lt;service&gt;MySQL&lt;/service&gt;</font></p><p class="MsoNormal"><font \
class="Apple-style-span" face="Tahoma, sans-serif">                \
&lt;service&gt;MySQL_Slave_Lag&lt;/service&gt;</font></p> <p class="MsoNormal"><font \
class="Apple-style-span" face="Tahoma, sans-serif">                \
&lt;service&gt;Mysql-Slave&lt;/service&gt;</font></p><p class="MsoNormal"><font \
class="Apple-style-span" face="Tahoma, sans-serif">         \
&lt;rule&gt;&lt;![CDATA[(servicename like \
&#39;%My%&#39;)]]&gt;&lt;/rule&gt;</font></p> <p class="MsoNormal"><span \
class="Apple-style-span" style="font-family: Tahoma, sans-serif; font-size: 13px; ">  \
&lt;/category&gt; </span></p><p class="MsoNormal"><span \
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;mso-fareast-font-family:
 &quot;Times New Roman&quot;"><br></span></p><p class="MsoNormal"><font \
class="Apple-style-span" face="Tahoma, sans-serif">and the entry in  viewdisplay.xml \
for this.</font></p><p class="MsoNormal"><font class="Apple-style-span" face="Tahoma, \
sans-serif"><br> </font></p><p class="MsoNormal"><font class="Apple-style-span" \
face="Tahoma, sans-serif">But what it does is :- It list out all the nodes on which \
service like My is running which is OK.But I want it so show the actual services also \
along with the nodes,outages and availability columns.So It should have 4 columns \
like nodes,services,outages and availabity OR it can use the nodes column only but \
should list the service starting with My instead of listing out the node names on \
which these services are running.</font></p> <p class="MsoNormal"><font \
class="Apple-style-span" face="Tahoma, sans-serif"><br></font></p><p \
class="MsoNormal"><span class="Apple-style-span" style="font-family: Tahoma, \
sans-serif; ">Shreya</span></p><p class="MsoNormal"> <font class="Apple-style-span" \
face="Tahoma, sans-serif"><br></font></p><p class="MsoNormal"><span \
style="font-size:10.0pt;font-family:&quot;Tahoma&quot;,&quot;sans-serif&quot;;mso-fareast-font-family:
 &quot;Times New Roman&quot;"><span class="Apple-style-span" style="font-family: \
arial; font-size: small; "><b><span style="font-size: 10pt; font-family: Tahoma, \
sans-serif; ">From:</span></b><span style="font-size: 10pt; font-family: Tahoma, \
sans-serif; "> Ken Eshelby [mailto:<a \
href="mailto:eshelbyk@gmail.com">eshelbyk@gmail.com</a>] </span></span><br>

<b>Sent:</b> Wednesday, September 29, 2010 8:54 AM<br>
<b>To:</b> General OpenNMS Discussion<br>
<b>Subject:</b> Re: [opennms-discuss] categorizing services in opennms</span></p>

<p class="MsoNormal"> </p>

<p class="MsoNormal">You can assign a service to a node *in a way*.  I do
this for counting things like hardware types, OS versions or
manufacturers.  Just need to make sure the service is on the primary
interface.<br>
<br>
Here is a sample display category def-<br>
<br>
            &lt;category&gt;<br>
               
&lt;label&gt;&lt;![CDATA[Critical Nodes]]&gt;&lt;/label&gt;<br>
               
&lt;comment&gt;This category includes all devices with nodeSysLocation matching
the filter rule.&lt;/comment&gt;<br>
               
&lt;normal&gt;99.9&lt;/normal&gt;<br>
               
&lt;warning&gt;97&lt;/warning&gt;<br>
               
&lt;service&gt;ICMP&lt;/service&gt;<br>
               
&lt;rule&gt;&lt;![CDATA[(nodeSysLocation like &#39;%CRITICAL%&#39;) &amp;
(IsSnmpPrimary == &#39;P&#39;)]]&gt;&lt;/rule&gt;<br>
           
&lt;/category&gt;<br>
<br>
something like isICMP and IsSnmpPrimary should work.<br>
<br>
Then you can key notifications or display off the category and should be able
to generate SLA reports.<br>
<br>
<br>
(viewsdisplay.xml section)<br>
               
&lt;section&gt;<br>
                       
&lt;section-name&gt;&lt;![CDATA[High Priority]]&gt;&lt;/section-name&gt;<br>
                       
&lt;category&gt;&lt;![CDATA[Critical Nodes]]&gt;&lt;/category&gt;<br>
               
&lt;/section&gt; <br>
<br>
<br>
Cheers,<br>
<br>
Ken</p>



------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev

_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://www.opennms.org/index.php/Mailing_List_FAQ

opennms-discuss mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-discuss

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic