What would be the best approach for monitoring Nginx (Docker) container statistics?
Normally the ‘nginx_status’ page can be retrieved on a single host, but how to do this on a dockerized Nginx container (and eventually on multiple different containers on the same host)?
I tried to create a rule using the ‘Nginx Status’ and pinned this to the specific container but this does not show any new discovered services for this container.
The nginx config allows retrieval of the status page from the check_mk server IP, as wel as from the hosts IP addresses (localhost, and docker interface)
Running into the exact same issue - have configured nginx_status location and can pull data via wget in the example posted however the agent is not pulling this information nor is it possible to execute the plugin independently receiving the name NameError.
What kind of information will you require for further troubleshooting? Is there a specific version of python3 required?
root@df /usr/lib/check_mk_agent/plugins ./nginx_status
Traceback (most recent call last):
File “./nginx_status”, line 43, in @get_parsed_item_data
NameError: name ‘get_parsed_item_data’ is not defined
Just wondering if you are using a complete other script, or updated the hashbang?
I don’t get it working by changing the first line into:
#!/usr/bin/env python2
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact @fayepal if you think this should be re-opened.