There is no such flag currently - i'm not sure whether it's good idea to allow the CLI to suppress the action notification, as if the admin is interested for such notification for some reason, it's probably better to not allow the CLI to surpass it, otherwise everybody (script and human) can use the option to silence the warning and fool the admin.
Regards, Martin
I think you may have misunderstood. I only want to filter unmonitor commands which are done via a script, so I'd like to pass a --quit or --silent flag which suppresses alerts.
When a human performs an unmonitor, then they would not pass this flag, and alerts would be generated, so you know it was done manually.
On Wed, Sep 5, 2012 at 2:10 AM, Martin Pala <address@hidden> wrote:
Hi,
the "action" filter will filter out the all actions which were triggered manually: either via the HTML interface or via the command line (such as "monit restart myservice") - not just monit+unmonitor, but also start+stop+restart.
The actions which are triggered internally as a result of matching testing rule are still send (they can be filtered out by specific filters too, but the "(manual) action" filter won't stop it - see manual for more details).
Regards, Martin
--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general
-- To unsubscribe: https://lists.nongnu.org/mailman/listinfo/monit-general |