Allow Dynamic hostname from global variable for set httpd use address
set httpd
port 2812
use address $HOST
allow localhost
allow 0.0.0.0/0.0.0.0
allow admin:monitadmin123
use address $HOST
This is where I would like to propose monit team to update allowing dynamic setting of hostname from external source.
This is extremely handy when we are using monit for multiple server to do same thing but the only difference will be use address to respective hostnames of the server to allow web UI from.
And also If we could have a way to allow multiple server at once, that would be really cool. For example we have 10 servers such as monit1[01-10]z.prod.server.local
I was hoping not to make changes in every server to allow each server names as
use address monit101z.prod.server.local
use address monit102z.prod.server.local
……..
use address monit110z.prod.server.local
This way, I have to make changes in each and every monitrc files in respective server after deploying common monit tool. If there is a way I can achieve that with only one setting like dynamically set the server hostnames as $HOST or something similar, then it would be really easy and flexible to implement for many server cases. Please let me know if there is something like that.
Thank you!