Skip to content

add support for mmonit https addresses #30

@SyBernot

Description

@SyBernot

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 %>

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions