User Tools

Site Tools


support:add_user_to_text_alerts

Add New User to Text Alerts

Author: Eoin Hearne

Add to Watchdog Groovlet

Our watchdog system, running on cerberus server, is set up to send a text alert for critical alarms. This process is handled by a groovlet in the cerberus ticketer database.

select * from ticketer.groovlet g 
where name = 'Send SMS And Email Alert';

Update the groovy_text to add the new user to the contacts map.

def contacts = [
    user1: 353871234567, 
    user2: 353871234567, 
    user3: 353871234567, 
    user4: 353871234567, 
    newuser: 353871234567
]

Add User to Prometheus Alerts

The prometheus SMS service currently runs on the prometheusprod environment only. To add a user to the recipient list, add their name into the env-configuration for that environment. Branch the env-configuration repo and add the user under the prometheus_sms.SMSrecipients section.

  SMSrecipients:
    NewUser:
      number: 353871234567
      time: "{{timezones.waterford_office}}"

Deploy the Prometheus SMS Job

In the Prometheus-SMS repo, run the below command, replacing the <ENV> with the correct environment, currently prometheusprod.

ansible-playbook -i ../env-configuration/<ENV>/hosts.ini --diff deploy.yml --vault-id @prompt
support/add_user_to_text_alerts.txt · Last modified: 2022/09/16 11:30 by 10.91.110.100