- changed status to resolved
Allow "match" for "check program" output, too
Issue #973
resolved
Monit can “match” file contents, and monit can match “check program” exit status, but it cannot “match” or “expect” “check program” output.
I suggest allowing a match for “check program” output.
The obvious work-around running some script that writes into a file, and then “check file” to inspect the script output seems too complicated.
Comments (2)
-
repo owner -
repo owner Issue
#977was marked as a duplicate of this issue. - Log in to comment
fix Issue
#973: The program test no allows to check the program output using a regular expression. Syntax: IF CONTENT [!]= <regex> THEN action Example: check program disk0_smart with path "/usr/sbin/nvme smart-log /dev/nvme0" if content != "critical_warning[ ]+: 0" then alert→ <<cset efdf26ab4da9>>