check_mk: Monitor Nginx Status

On the Check_mk web UI visit:
WATO menu > Monitoring Agents

In the list on check agents you should find the nginx_status. Clicking on it shows the code for the check. Copy that code to the client server. The location on web001 for the check (for me anyway) was:


Make sure it is executable.

On the client server to be monitored configure nginx to respond with the status:

    location /nginx_status {
            # Enable Nginx stats
            stub_status on;
            # Other request should be denied
            deny all;

Test the agent by running:

check_mk_agent | grep nginx

Restart nginx and then back in the WATO services for the host do a full scan.

Leave a Reply

  • (will not be published)

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>