Simplified noalert for all global set alerts

Issue #436 closed
Don created an issue

We have 10 global set alerts for some box, where a lot of client's staff want to be notified about most of services they consider important. But, there is still services that we want to monitor and receive alerts only for ourselves (1-2 emails). Doing noalert for all such services is quite tedious and error prone (to miss some email), (besides it's not working in 5.18).

Could you please implement per-service noalert for all global emails so only defined per-service alerts are working? For example, noglobalaerts or noalert global keywords.

Comments (1)

  1. Tildeslash repo owner

    We're sorry, it'll complicate the syntax ... i think you can use existing per-user "noalert" option in an include file, that you'll include in services where you need to disable notification for selected users.

    For example create include file /etc/monit/include/noalert:

    noalert user1@mydomain.com
    noalert user2@mydomain.com
    noalert user3@mydomain.com
    

    And include it in monit configuration file where needed:

    set alert user1@mydomain.com
    set alert user2@mydomain.com
    set alert user3@mydomain.com
    set alert admin@mydomain.com
    
    check process notify_all ...
    
    check process notify_admin_only ...
        include /etc/monit/include/noalert
    
  2. Log in to comment