OpenNMS fail to monitor node using JMX

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

OpenNMS fail to monitor node using JMX

rakeshshelar
Hi
We are using 18.0.2-1 version of OpenNMS and er trying to Monitor Tomcat using JMX.
I have done following steps was working and monitoring before upgrade to 18.0.2-1

1)capsd-configuration.xml
<protocol-plugin protocol="PEUITomcat" class-name="org.opennms.netmgt.capsd.plugins.Jsr160Plugin" scan="on" user-defined="true">
  <property key="port" value="3000"/>
  <property key="factory" value="PASSWORD-CLEAR"/>
  <property key="username" value="monitorRole"/>
  <property key="password" value="xyz"/>
  <property key="type" value="default"/>
  <property key="protocol" value="rmi"/>
  <property key="urlPath" value="/jmxrmi"/>
</protocol-plugin>

2)poller-configuration.xml

<package name="PE">
        <filter>IPADDR != '0.0.0.0'</filter>
        <include-range begin="1.1.1.1" end="254.254.254.254" />
        <include-range begin="::1" end="ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff" />
        <rrd step="300">
                <rra>RRA:AVERAGE:0.5:1:2016</rra>
                <rra>RRA:AVERAGE:0.5:12:1488</rra>
                <rra>RRA:AVERAGE:0.5:288:366</rra>
                <rra>RRA:MAX:0.5:288:366</rra>
                <rra>RRA:MIN:0.5:288:366</rra>
        </rrd>
        <service name="PEUITomcat" interval="300000" user-defined="true" status="on">
                <parameter key="port" value="3000"/>
                <parameter key="factory" value="PASSWORD-CLEAR"/>
                <parameter key="username" value="monitorRole"/>
                <parameter key="password" value="xyz"/>
                <parameter key="retry" value="2"/>
                <parameter key="timeout" value="3000"/>
                <parameter key="rrd-repository" value="/opt/OpenNMS/share/rrd/response"/>
                <parameter key="ds-name" value="jmx"/>
                <parameter key="friendly-name" value="jvm"/>
        </service>
       <downtime interval="30000" begin="0" end="300000" />
        <downtime interval="300000" begin="300000" end="43200000" />
        <downtime interval="600000" begin="43200000" end="432000000" />
        <downtime begin="432000000" delete="true" />
</package>

3)collectd-configuration.xml
<service name="PEUITomcat" interval="300000" user-defined="true" status="on">
        <parameter key="port" value="3000"/>
        <parameter key="factory" value="PASSWORD-CLEAR"/>
        <parameter key="username" value="monitorRole" />
        <parameter key="password" value="xyz" />
        <parameter key="retry" value="2"/>
        <parameter key="timeout" value="3000"/>
        <parameter key="protocol" value="rmi"/>
        <parameter key="urlPath" value="/jmxrmi"/>
        <parameter key="rrd-base-name" value="java" />
        <parameter key="ds-name" value="opennms-jvm"/>
        <parameter key="friendly-name" value="opennms-jvm"/>
        <parameter key="collection" value="jsr160"/>
        <parameter key="thresholding-enabled" value="true"/>
</service>

4)jmx-datacollection-config.xml
<jmx-collection name="PEUITomcat">
        <rrd step="300">
            <rra>RRA:AVERAGE:0.5:1:2016</rra>
            <rra>RRA:AVERAGE:0.5:12:1488</rra>
            <rra>RRA:AVERAGE:0.5:288:366</rra>
            <rra>RRA:MAX:0.5:288:366</rra>
            <rra>RRA:MIN:0.5:288:366</rra>
        </rrd>
        <mbeans/>
    </jmx-collection>

5) did provisioning for IP 172.18.0.8 using service PEUITomcat

ERROR
I am getting Alarm as Tomcat down
with error as follows
PEUITomcat outage identified on interface 172.18.0.8 with reason code: IOException while polling address: /172.18.0.8.

what can be reason and did I am missing anything form configuring?
i m referring
https://wiki.opennms.org/wiki/Tomcat_5.5_JMX_How-To

-Regards,
Rakesh
Loading...