**Feature Request** for Program's conf.d Files

Issue #511 closed
Justin Partain created an issue

I was wondering...

Since we can use "include [file]" options within each programs conf.d files, if there is any chance that we could get different types of variable inputs, so if we used the includes for the "if 3 restarts within 5 cycles then alert" kind of stuff, we could make those more universal.

Take the following:

if failed host {% host %} port {% port %} for 3 times within 5 cycles then restart if 3 restarts within 5 cycles then alert

Would there be a way monit could handle taking the systems ip address and throw in the port number on the specific programs conf.d file. This way, if we use the same options on most of the stuff we monitor, we could have a much more universal, -possibly- more easily managed setup???

And, sorry if its confusing in any way, I had to get this out in a rush before I forgot it, so I'm holding people up.

If any questions, lemme know and i'll happily elaborate when I have more time!

Comments (1)

  1. Tildeslash repo owner

    Hello Justin,

    many monit users use configuration management framework such as chef/puppet - i think they have module for monit configuration already, so you can create a configuration template and chef/puppet will generate the configuration for given host.

    Best regards, Monit team

  2. Log in to comment