On May 19, 2011, at 11:36 PM, Tim Chambers wrote: > I have a very long monit configuration file because I have monit checking on > 25 background processes that are workers set up to handle a queue of packages > to process from gearman. They are all replicas of the same setup 25 times. I > also have 3 servers with this same setup where the only difference is in some > directory names which again are in the config dozens of times. I would like > to know if the monit config file allows the definition of variables (similar > to the email template) where I could define the variable and then later use > it dozens of times, so I could change the value associated with the variable > in one place or even better create a general monit config that is included > into a unique config that has a variable defined for that server > configuration - so the generic config is maintained once. > > Is this possible?
Variables are unfortunately not supported in the current version. Maybe some form of preprocessing the config file can be a temporary solution? For instance by using something like perl -pi -e 's,\$variable,value,g' .monitrc -- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
