Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Duplicate emails stack up on the same issue as a comment.

  • The issue to be resolved when a Nagios notification indicates the problem has been resolved/

  • Content of the Nagios email body happens to be of the KEY: VALUE format, allow these to be mapped to custom fields.

...

From the example email above, the following Custom Fields could be defined (and will be for this example).

  • Notification Type

  • Service

  • Host

  • Address

  • State

  • Date/Time

Info

NOTE: The entire content of the message will still be used as the Issue Description or Comment.

...

Notification Type

...

Service

...

Host

...

Address

...

...

Date/Time

How to Enable

  1. Go to Profile > Project Mapping > Field Processors > Edit (cog)

  2. Set Apply field processors to On Create/Comment

  3. Enable Nagios Notifications Field Processor

  4. Looking at the Nagios of the configuration section, an example configuration has been pre-populated, which will be good enough for our example message.

...

  • If you provide a Workflow action and resolution, OK messages will transition (fix) the open issue. 

  • Each PROBLEM (not OK) phrase can be mapped to a Priority. E.g. a CRITICAL message can change issue priority to Blocker.

Example use case

Example Critical notification

Example OK service Restoration notification

Code Block
Subject: ** PROBLEM Service Alert: localhost/SSH is CRITICAL **
To: andy@localhost
X-mailer: mail (GNU Mailutils 2.2)
Date: Sat, 26 Nov 2011 16:53:45 +1300 (NZDT)
From: nagios@localhost

***** Nagios *****

Notification Type: PROBLEM

Service: SSH
Host: localhost
Address: 127.0.0.1
State: CRITICAL

Date/Time: Sat Nov 26 16:53:45 NZDT 2011

Additional Info:

Connection refused
Code Block
Subject: ** RECOVERY Service Alert: localhost/SSH is OK **
To: andy@localhost
X-mailer: mail (GNU Mailutils 2.2)
Date: Sat, 26 Nov 2011 17:03:30 +1300 (NZDT)
From: nagios@localhost


***** Nagios *****

Notification Type: RECOVERY

Service: SSH
Host: localhost
Address: 127.0.0.1
State: OK

Date/Time: Sat Nov 26 17:03:30 NZDT 2011

Additional Info:

SSH OK - OpenSSH_5.8p1 Debian-7ubuntu1 (protocol 2.0)

...