Quantcast

Nginx not monitoring in opennms

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

Nginx not monitoring in opennms

yusuf
Dear dude,

Kindly help me to fix this issue.i can't able to monitor the nginx.As i refer

https://wiki.opennms.org/wiki/Monitoring_Nginx_with_the_HTTP_collector

I reffered this wiki and i did in my opennms..service is activated and the graph is not displayed ..Kindly assist me

/usr/share/opennms/etc/poller-configuration.xml

<service name="nginx" interval="300000" user-defined="false" status="on">
<parameter key="port" value="80" />
<parameter key="timeout" value="5000" />
<parameter key="retry" value="3" />
<parameter key="collection" value="nginx-stats" />
</service>
<monitor service="nginx" class-name="org.opennms.netmgt.poller.monitors.HttpMonitor" />
-----------------------------------------------------------------------------------------
/usr/share/opennms/etc/collectd-configuration.xml

<service name="nginx" interval="300000" user-defined="false" status="on" >
<parameter key="http-collection" value="nginx-stats" />
<parameter key="retry" value="1" />
<parameter key="timeout" value="2000" />
</service>
<collector service="nginx_stats" class-name="org.opennms.netmgt.collectd.HttpCollector" />
-----------------------------------------------------------------------------------------
/usr/share/opennms/http-datacollection-config.xml

<http-collection name="nginx_stats">
<rrd step="300">
<rra>RRA:AVERAGE:0.5:1:8928</rra>
<rra>RRA:AVERAGE:0.5:12:8784</rra>
<rra>RRA:MIN:0.5:12:8784</rra>
<rra>RRA:MAX:0.5:12:8784</rra>
</rrd>
<uris>
<uri name="nginx_stats">
<url path="/nginx_status/"
user-agent="OpenNMS HTTP Datacollection"
matches="(?s).Active connections.\s([0-9]).\n.([0-9])\s([0-9])\s([0-9]).\nReading:\s([0-9])\sWriting:\s([0-9])\sWaiting.\s([0-9]+).*" response-range="100-3$
</url>
<attributes>
<attrib alias="nginxActive" match-group="1" type="gauge32"/>
<attrib alias="nginxAccepts" match-group="2" type="counter32"/>
<attrib alias="nginxHandled" match-group="3" type="counter32"/>
<attrib alias="nginxRequests" match-group="4" type="counter32"/>
<attrib alias="nginxReading" match-group="5" type="gauge32"/>
<attrib alias="nginxWriting" match-group="6" type="gauge32"/>
<attrib alias="nginxWaiting" match-group="7" type="gauge32"/>
</attributes>
</uri>
</uris>
</http-collection>
</http-datacollection-config>
Loading...