Page 1 of 1

Customizing Notification Email Content

Posted: Tue Nov 15, 2022 12:46 am
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?