Skip to main content
Table of contents

Monitoring

Use Nagstamon for monitoring Icinga

nagstamon

Nagstamon can access multiple Icinga instances, display the alerts, and allow you to easily act on them.

Connecting to Icinga

To connect Nagstamon to an Icinga instance:

  • Go in to the Settings.
  • Select “New server…”.
  • Choose “Monitor Type” of “Icinga”.
  • Enter an appropriate “Monitor name”, “GOV.UK Integration” for example.
  • Enter the URL for the Icinga instance to the Monitor URL and Monitor CGI URL fields (i.e. https://alert.integration.publishing.service.gov.uk/ should be entered in both fields for integration).
  • Leave the Username and Password blank, and tick “Save password”.
  • Click “OK”.

Actions

Nagstamon supports performing actions, you can configure it to connect to the relevant host via SSH, which can make it easier to investigate and resolve issues.

Both these commands assume that you have run gem install govuk-connect and have the gds-cli set up.

To configure an SSH action:

  • Go in to the Settings
  • Select the “Actions” tab
  • Delete all the existing actions (SSH, RDP, …)
  • Click “New action…”
  • Select “Command” as the Action type.
  • Put “SSH ” as the Name
  • The command depends on what operating system you’re using:
    • For macOS, enter the following command in the “String” field:
      • osascript -e 'tell app "Terminal" to do script "gds govuk connect ssh --hosting-and-environment-from-alert-url $MONITOR$ $ADDRESS$"'
    • For GNU/Linux, with the Gnome Terminal installed (which includes Ubuntu), use the following command:
      • /usr/bin/gnome-terminal -x gds govuk connect ssh --hosting-and-environment-from-alert-url $MONITOR$ $ADDRESS$
  • Click “OK”
This page was last reviewed on 14 February 2020. It needs to be reviewed again on 14 August 2020 by the page owner @christopherbaines .
This page was set to be reviewed before 14 August 2020 by the page owner @christopherbaines. This might mean the content is out of date.