ASM - How to disable Email notification for OPMS/Monit. Unwanted emails form Monit.

book

Article ID: 193582

calendar_today

Updated On:

Products

CA App Synthetic Monitor NIMSOFT CLOUD USER EXPERIENCE MONITOR DX Application Performance Management

Issue/Introduction

Receiving unwanted email from Monit on your OPMS.

 

Environment

ASM OPMS 10.4

Resolution

The notifications are configured to be sent to the local root user. To send the alerts to an external user, an email alias for root is created. To switch off the alerting, you must:
 
1) remove the alias. In /etc/aliases find line like this:
and comment it out
 
2) edit /etc/asm/smartpop.yaml and search line in logging/handlers/email section. It should look like this:
        email:
           class: logging.handlers.SMTPHandler
           mailhost: localhost
           fromaddr: [email protected]
           toaddrs:
           - [email protected]
           [email protected]example.cz 
           subject: SmartPoP Prod - Critical Error
           level: CRITICAL
 
Delete the line and you'll have to restart some services, at least the API:
 
monit restart api