Error 404 - Availability bar for custom service

"[email protected]" <[email protected]> Fri, 25 Sep 2015 15:49:12 -0400
Newsgroups gmane.network.opennms.install
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--===============2457077410817137795==
Content-Type: multipart/alternative;
	boundary="------------010506010705080607080407"

This is a multi-part message in MIME format.
--------------010506010705080607080407
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit

Hello!

I am in the process of switching (potentially) from Nagios to OpenNMS 
for our monitoring service. I have deployed OpenNMS (Version 16.0.3-1) 
on a virtual CentOS7 server using the rpm installation method described 
in the wiki (http://www.opennms.org/wiki/Installation:Yum).

After fiddling around a little I added a test server (minecraft) using 
the Provisioning Requisitions part of OpenNMS and made sure that SNMP 
was working fine for the default checks (SNMP, SSH and the likes). Then, 
seeing that this was working, I looked around in the wiki to learn how 
to add some SNMP checks to my test server (CPU, disk usage, load, etc.) 
just like I am used to.

The solution I found (probably not the best, you tell me) is to modify a 
few config files and then add the custom service created this way to a 
node in the provisioning requisition. The downsides I found to this 
method so far are:
1) When I remove a service in the config file (poller-configuration.xml) 
it stays in the drop-down of the web interface, no matter how many times 
I reload the service or restart the server
2) Some "custom" services do not show an availability bar. Instead, a 
"404 not found" is raised on the page for the bar object. I have 
searched the wiki for a more in-depth comprehension of this phenomenon 
but I only gathered that this is managed by the ReST part of the product.

The configurations I have added in "poller-opennms/etc/configuration.xml":
(Near the other services):
<service name="/data" interval="300000" user-defined="false" status="on">
         <parameter key="oid" value=".1.3.6.1.4.1.2021.9.1.9.9"/>
         <parameter key="operator" value="&lt;"/>
         <parameter key="operand" value="85"/>
</service>
(By the end of the file):
<monitor service="/data" 
class-name="org.opennms.netmgt.poller.monitors.SnmpMonitor" />

My questions are as follows:
-Is there a better way to add a check on other SNMP things from a 
server? I tried a solution before named NetXMS and I was able to 
communicate with the Nagios plugin already installed on all my servers.
-If there is a better solution, where can I read some documentation 
about it?
-Why is the Availability Bar "not found"?

Thanks for any feedback/questions/input/comments/interactions!

-*Guillaume Ross***


--------------010506010705080607080407
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: 8bit

<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hello!<br>
    <br>
    I am in the process of switching (potentially) from Nagios to
    OpenNMS for our monitoring service. I have deployed OpenNMS (Version
    16.0.3-1) on a virtual CentOS7 server using the rpm installation
    method described in the wiki
    (<a class="moz-txt-link-freetext" href="http://www.opennms.org/wiki/Installation:Yum">http://www.opennms.org/wiki/Installation:Yum</a>).<br>
    <br>
    After fiddling around a little I added a test server (minecraft)
    using the Provisioning Requisitions part of OpenNMS and made sure
    that SNMP was working fine for the default checks (SNMP, SSH and the
    likes). Then, seeing that this was working, I looked around in the
    wiki to learn how to add some SNMP checks to my test server (CPU,
    disk usage, load, etc.) just like I am used to.<br>
    <br>
    The solution I found (probably not the best, you tell me) is to
    modify a few config files and then add the custom service created
    this way to a node in the provisioning requisition. The downsides I
    found to this method so far are:<br>
    1) When I remove a service in the config file
    (poller-configuration.xml) it stays in the drop-down of the web
    interface, no matter how many times I reload the service or restart
    the server<br>
    2) Some "custom" services do not show an availability bar. Instead,
    a "404 not found" is raised on the page for the bar object. I have
    searched the wiki for a more in-depth comprehension of this
    phenomenon but I only gathered that this is managed by the ReST part
    of the product.<br>
    <br>
    The configurations I have added in
    "poller-opennms/etc/configuration.xml":<br>
    (Near the other services):<br>
    &lt;service name="/data" interval="300000" user-defined="false"
    status="on"&gt;<br>
            &lt;parameter key="oid"
    value=".1.3.6.1.4.1.2021.9.1.9.9"/&gt;<br>
            &lt;parameter key="operator" value="&amp;lt;"/&gt;<br>
            &lt;parameter key="operand" value="85"/&gt;<br>
    &lt;/service&gt;<br>
    (By the end of the file):<br>
    &lt;monitor service="/data"
    class-name="org.opennms.netmgt.poller.monitors.SnmpMonitor" /&gt;<br>
    <br>
    My questions are as follows:<br>
    -Is there a better way to add a check on other SNMP things from a
    server? I tried a solution before named NetXMS and I was able to
    communicate with the Nagios plugin already installed on all my
    servers.<br>
    -If there is a better solution, where can I read some documentation
    about it?<br>
    -Why is the Availability Bar "not found"?<br>
    <br>
    Thanks for any feedback/questions/input/comments/interactions!<br>
    <br>
    <div class="moz-signature">
      <p style="font: 10pt 'Trebuchet MS'; color: #808080; margin: 0;">-<strong
          style="color:black;">Guillaume Ross</strong><strong
          style="color: #9CB33B;"></strong></p>
    </div>
  </body>
</html>

--------------010506010705080607080407--


--===============2457077410817137795==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------

--===============2457077410817137795==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

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

opennms-install mailing list

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