Hi there, I was wondering if there was a way to monitor status pages for changes within Icinga.
ie: if status.example.com changes to “down” or something like that, an alert will pop up on Icinga.
Thanks!
Hi there, I was wondering if there was a way to monitor status pages for changes within Icinga.
ie: if status.example.com changes to “down” or something like that, an alert will pop up on Icinga.
Thanks!
Hi,
check_http can do that - first define the match with -R
, then invert the regex to show critical on occurrence with --invert-regex
.
With using the http CheckCommand from the ITL, it could look like:
apply Service "website-status" {
check_command = "http"
vars.http_expect_body_regex = "^Status: down.*"
vars.http_invertregex = true
assign where "web-server" in host.groups
}
Cheers,
Michael