-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Labels
Description
Our mmonit uses https, looking at the template http is hardcoded, you could create a toggle for http/https but all the mmonit vars are only used in this one place might I suggest just using a $mmonit_connect_string instead of trying to assemble it, it makes the template more flexible and less error prone.
$mmonit_connect_string =>'https://foo:bar@baz.com:8083/collector',
set mmonit <%= @mmonit_connect_string %>
also having an additional config variable stuffed in the template would prove useful
$mmonit_extra_config => ['check process apache with pidfile /usr/local/apache/logs/httpd.pid', ' start program = "/etc/init.d/httpd start"'],
<% mmonit_extra_config.each do |line| %>
<%= line %>
<% end %>
Reactions are currently unavailable