<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-size:small" class="gmail_default">Thanks to everyone who chimed in about Prometheus.</div><div style="font-size:small" class="gmail_default"><br></div><div style="font-size:small" class="gmail_default">I was able to get it up and running on the same VPS as Nagios4.</div><div style="font-size:small" class="gmail_default"><br></div><div style="font-size:small" class="gmail_default">And was able to configure it to send emails when something is down and also when it is up again.</div><div style="font-size:small" class="gmail_default">This was mainly done with the prometheus-blackbox-exporter and prometheus-alertmanager packages, and checking SSH, HTTP and Drupal.</div><div style="font-size:small" class="gmail_default"><br></div><div style="font-size:small" class="gmail_default">For SSH, I use the 'ssh_banner' module, with:</div><div style="font-size:small" class="gmail_default">({__name__="probe_success",job="SSH"} == 0)</div><div style="font-size:small" class="gmail_default"><br></div><div style="font-size:small" class="gmail_default">For HTTP, I use the 'http_2xx' module, with:</div>({__name__="probe_http_status_code",job="<span class="gmail_default" style="font-size:small">HTTPServers</span>"} != 200)</div><div dir="ltr"><br><div style="font-size:small" class="gmail_default">I think I covered everything that my Nagios4 instance currently does, and would be decommissioning it soon.</div><div style="font-size:small" class="gmail_default"><br></div><div style="font-size:small" class="gmail_default">But there is a snag, or misunderstanding on my part:</div><div style="font-size:small" class="gmail_default">When an alert fires, I do get an email about the failure.</div><div style="font-size:small" class="gmail_default">But, when I go to Status -> Targets, the hosts that failed still show as UP.</div><div style="font-size:small" class="gmail_default"><br></div><div style="font-size:small" class="gmail_default">Probably because there is still a response from them?</div><div style="font-size:small" class="gmail_default"><br></div><div style="font-size:small" class="gmail_default">Can one comment on this?</div></div></div>
</div>
</div>
</div>