Include previous/next lines when using "if content"
Issue #875
new
e.g. grep has the -A/B/C flag to include x lines before/after/both a match.
It would be nice if there was a similar option in monit, so optionally we could include the previous/next x lines of a match.
I am not sure how the syntax should look like, maybe “then alert B5” or something?
e.g. for:
check file somelog with path /var/log/somelog
if content "blabla" then alert