Allow "match" for "check program" output, too

Issue #973 resolved
Ulrich Windl created an issue

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)

  1. Tildeslash repo owner

    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>>

  2. Log in to comment