NGINX stub status module - no default sites found in NGINX folder

CheckMK 2.0.0p29
Ubuntu 20.04 (checkmk server is hosted on this)
OpenSUSE 15 - (server that has our websites and Nginx)

Good morning CheckMK community,

I was following the CheckMK guide → Nginx - Checkmk Knowledge Base - Checkmk Knowledge Base regarding monitoring our NGINX status for 4 different websites we have, but noticed some differences between the setup guide and our environment (folder locations of config files).

First, I checked and confirmed the server process is configured with the stub status module by running the following command:

'nginx -V 2>&1 | grep -o with-http_stub_status_module ’

The second part is where the differences are noticeable, I tried checking to find the /etc/nginx/sites-enabled/default folder but do not see this listed within the directory:

Just to note, I do see websites populated in the “vhosts.d” folder that have the .conf files for each of the sites, but just wanted to see if this is the location that I would write the added entry to.

image

Any help is always appreciated!

-Justin

Do you now have an endpoint like http://hostname or IP:port/nginx_status or https://hostname or IP:port/nginx_status ?
Ref: NGINX: Performance Indicators

1 Like

Sorry for the late reply and thank you for the response!

We ended up going down the simple route with monitoring via a curl command following the checkmk guide to set this up just so we capture if the website is up and running.

Looking at RobotMK just to see down the road if we can use this as it definitely captures some interesting metrics.

Best regards,

-Justin
A CheckMK advocate spreading the good word :slight_smile:

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.