Monitoring Nginx
list Thomas Seglard
Hello, Do some of you use Xymon to monitor Nginx ? Basically, you could use the stub-status module (http://wiki.nginx.org/HttpStubStatusModule) to enable the status handler within Nginx. The output is similar to : Active connections: 291 server accepts handled requests 16630948 16630948 31070465 Reading: 6 Writing: 179 Waiting: 106 It shouldn't be difficult to write some scripts to achieve this task but I ask, just in case... Sincerly, Thomas S
list Henrik Størner
▸
Den 31-03-2011 15:49, SEGLARD, Thomas skrev:
Do some of you use Xymon to monitor Nginx ? Basically, you could use the stub-status module (http://wiki.nginx.org/HttpStubStatusModule) to enable the status handler within Nginx. The output is similar to : Active connections: 291 server accepts handled requests
I assume this data can then be requested via a standard HTTP request, i.e. it is available in a web browser ?
In that case, a simple http-test in Xymon would do it. Probably with an added content-check, e.g.
10.0.0.1 nginx1 # \
cont=nginx;http://nginx1/nginx_status;server.accepts.*requests
This will check that the data returned contains the "server accepts handled requests" string.
16630948 16630948 31070465 Reading: 6 Writing: 179 Waiting: 106
Don't know if it would make sense to track any of these in Xymon, but I see there is already a pointer in the Wiki to monitoring with rrdtool, so adding graphs shouldn't be at all difficult. Regards, Henrik
list Chris Pretorius
Good day All a could find on the interwebs that could help me to monitor nginx was https://github.com/ZeWaren/xymon-nginx and http://lists.xymon.com/archive/2011-March/031188.html I followed the xymon-nginx.pl guide to the tee, but the graphs do not display, the rrd data is generated and I can view the rrd data with the rrdtool. What is the suggested method to monitor nginx and track performance data. Kind regards [https://lsc-assets.scdn1.secure.raxcdn.com/lssig/AUTOlogoW.png] Chris Pretorius [https://lsc-assets.scdn1.secure.raxcdn.com/lssig/phone.png] 0872367740 [https://lsc-assets.scdn1.secure.raxcdn.com/lssig/email.png] user-3fef1df92e88@xymon.invalid<mailto:user-3fef1df92e88@xymon.invalid> [https://lsc-assets.scdn1.secure.raxcdn.com/lssig/web.png] www.signio.co.za<http://www.signio.co.za> [https://lsc-assets.scdn1.secure.raxcdn.com/lssig/address.png] Centurion Square, 3rd Floor, cnr Heuwel and Gordon Hood rd, Centurion This communication is subject to Lightstone's email disclaimer<http://www.lightstone.co.za/portal/content/email-disclaimer.aspx>
list Chris Pretorius
Good day I had no response from the xymon mail list regarding nginx monitoring. Make me think that it was a bad decision from my side to use nginx. Kind regards
▸
From: Xymon [mailto:xymon-bounces at xymon.com] On Behalf Of Chris Pretorius Sent: Monday, February 6, 2017 1:04 PM To: xymon at xymon.com Subject: [Xymon] Monitoring nginx Good day All a could find on the interwebs that could help me to monitor nginx was https://github.com/ZeWaren/xymon-nginx and http://lists.xymon.com/archive/2011-March/031188.html I followed the xymon-nginx.pl guide to the tee, but the graphs do not display, the rrd data is generated and I can view the rrd data with the rrdtool. What is the suggested method to monitor nginx and track performance data. Kind regards