> On 27 Jul 2016, at 17:40, Marcus Mülbüsch <[email protected]> > wrote: > >> check host somehost with address 11.22.33.44 >> if failed >> request "/some/uri/file.xml" >> use http headers [Authorization: Basic something] >> with content = 'type="alarm"' >> then alert
There is double negation here which might be confusing, but hopefully clearer if you have to read the statement as if failed -> request "/some/uri/file.xml" if failed -> content = ‘type=“alarm”’ The last part means, if the response failed to produce content with ‘type=“alarm”’ then fail. Which is the opposite of what you want. To fix this negate the test, with content != 'type="alarm"' -- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general
