Skip to main content
Table of contents

AWS accounts



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. should be entered in both fields for integration).
  • Leave the Username and Password blank, and tick “Save password”.
  • Click “OK”.


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.

To configure an SSH action:

  • Install the govuk-cli which includes the govuk connect tool via brew install alphagov/gds/govuk-cli.
  • 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 "govuk connect ssh --hosting-and-environment-from-alert-url $MONITOR$ $ADDRESS$"'
    • For GNU/Linux, with the Gnome Terminal installed, use the following command:
      • /usr/bin/gnome-terminal -x govuk connect ssh --hosting-and-environment-from-alert-url $MONITOR$ $ADDRESS$
  • Click “OK”
This page was last reviewed on 22 May 2019. It needs to be reviewed again on 22 November 2019 by the page owner @christopherbaines .
This page was set to be reviewed before 22 November 2019 by the page owner @christopherbaines. This might mean the content is out of date.