Customizing Notification Email Content

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Post Reply
vshah
Posts: 2
Joined: Tue Nov 15, 2022 12:34 am

Customizing Notification Email Content

Post by vshah »

I am using Nagios Core 4.1.1. The current email alert is like this:

Subject is
** PROBLEM Service Alert: SERVERNAME/D:\ Drive Space is WARNING **
Body is
***** Nagios *****

Notification Type: PROBLEM

Service: D:\ Drive Space
Host: SERVERNAME
Address: IP ADDRESS
State: WARNING

Date/Time: Mon Nov 14 00:08:31 IST 2022

Additional Info:

d:\ - total: 500.00 Gb - used: 403.15 Gb (81%) - free 96.85 Gb (19%)

We have a new ticketing system, in which we need to parse the email content. Hence, I need something like this below:
Notification Type: PROBLEM

Service: D:\ Drive Space
Host: SERVERNAME
Address: IP ADDRESS
State: WARNING
Metric Value: 19%

Date/Time: Mon Nov 14 00:08:31 IST 2022

Additional Info:

d:\ - total: 500.00 Gb - used: 403.15 Gb (81%) - free 96.85 Gb (19%)
can anyone help on how to do this?
Post Reply