This check parses the information provided by the NGINX stub status module. If you have enabled that module, then the URL /nginx_status shows interesting information about the inner state of the web server when accessed from localhost. The agent plugin nginx_status fetches these information and processes it.
Table of Contents |
---|
Step-by-step guide
After installing and configuring nginx you can follow this steps to monitor Nginx status.
- Enable
Nginx stub status module
Make sure that the server process is configured with the stub status module Add a new server block configuration inside /etc/nginx/sites-enabled/default
restart nginx service
Now the Url 127.0.0.1:8081/nginx_status should be available
Configure nginx_status
- manually
- via Bakery
Code Block | ||
---|---|---|
| ||
MK_CONFDIR=/etc/check_mk /usr/lib/check_mk_agent/plugins/nginx_status <<<nginx_status>>> 127.0.0.1 8081 Active connections: 1 127.0.0.1 8081 server accepts handled requests 127.0.0.1 8081 380 380 380 127.0.0.1 8081 Reading: 0 Writing: 1 Waiting: 0 |
...