get nginx_status via stub_status


Recommended Posts

Hi

for my Monitoring with zabbix I want to call the stub_status of nginx. I saw that the stub_status module is already installed but no location is set.

Therefore I have to add this location to the nginx config.

#nginx_status
location /nginx_status {
	stub_status;
	
    allow 10.0.0.111;
	deny all;
    }

Does anyone know a way how to do this safely and persists after reboot?

 

Thanks for any idea

Link to comment
26 minutes ago, Squid said:

You would make the appropriate changes via a script in the /config/go file on the flash drive

thanks for your reply. I am aware of the go file.

My question is more how to safely do it.

I tried manually to add the location part to the emhttp-server.conf of nginx but my customization does not even survive a nginx reload.

So I need to solve this problem first, how to add this part to the server block of the nginx conf. 

Next step would then be to keep the change to persist on unraid reboot via go file.

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.