Table of contents
This page describes what to do in case of an Icinga alert. For more information you could search the govuk-puppet repo for the source of the alert

Icinga alerts

Email alerts not sent

There is a check to verify that emails are sent for drug and medical device alerts and travel advice updates. These checks are run via Jenkins: Drug and medical device alerts check and Travel advice alerts check.

If a check fails:

  • You can inspect the console logs for the Jenkins job to confirm the reason for the failure.
  • You can check the mailbox that is used for the check to rule out an issue searching for the message. We have an email address govuk_email_check@digital.cabinet-office.gov.uk which is subscribed to travel advice alerts and drug and medical device alerts. The credentials for this account is in the 2nd line password store under google-accounts/govuk_email_check@digital.cabinet-office.gov.uk.
  • You can check whether the email was sent to the courtesy copies google group - presence here doesn’t mean that the email was sent to users, just that Email Alert API processed the content change.
  • You can investigate further whether the email was sent by accessing the Email Alert API console.
    • ContentChange.where(content_id: "<items-content-id>") to look up the content changes Email Alert API has received for a particular content-id
    • Given a particular content change you can monitor whether this should have been sent to people by querying SubscriptionContent.where(content_change: <your_content_change>) to look up the email data directly
    • You can look up emails sending or sent to a particular address with Email.where(address: "<address>")
    • You can find unprocessed content changes and check whether the content change for the failed alert is in the list of affected content changes
    • If you find the content change has not been processed, check the number of subscription contents built for the content change a few times (the number should increase)
    • If the number of subscription contents is not increasing, it is possible the sidekiq job has terminated ungracefully. You can resend the content change. This will ignore any that have already gone out so it is safe to execute
  • If the email has been received by govuk_email_check@digital.cabinet-office.gov.uk but the subject of the email doesn’t match the title of the content item, this means that the title of the content was updated after it was first published and after the emails went out. To stop the check from constantly failing, add the subject of the email to the list here: acknowledged email list and then re-run the Jenkins job to get rid of the alert.

Resending travel advice emails

If you need to force the sending of a travel advice email alert, there is a rake task in Travel Advice Publisher, which you can run using this Jenkins job where the edition ID of the travel advice content item can be found in the URL of the country’s edit page in Travel Advice Publisher and looks like fedc13e231ccd7d63e1abf65.

This page was last reviewed on 14 February 2019. It needs to be reviewed again on 14 August 2019 by the page owner #govuk-2ndline .
This page was set to be reviewed before 14 August 2019 by the page owner #govuk-2ndline. This might mean the content is out of date.