Permalink
Browse files

Re-order notification fields for priority

  • Loading branch information...
NEMS Linux
NEMS Linux committed Nov 3, 2018
1 parent 5899912 commit af5eb61b81ed1feb7816314535b2edb23b3d4320
Showing with 12 additions and 10 deletions.
  1. +6 −5 data/1.5/nagios/plugins/nems_sendmail_host
  2. +6 −5 data/1.5/nagios/plugins/nems_sendmail_service
@@ -174,7 +174,6 @@ $message = '
***** NEMS Linux *****
Notification Type: ' .$f_notify_type. '
Reporting NEMS Server: ' . $nems['alias'] . '
Host: ' .$f_host_name. '
Host Alias: ' .$f_host_alias. '
State: ' .$f_host_state. '
@@ -184,6 +183,8 @@ Date/Time: ' .$f_long_datetime. '
' .$f_ackauthor_status_none_html. '
' .$f_ackcomment_status_none_html. '
Reporting NEMS Server: ' . $nems['alias'] . '
Info:
' .$f_host_output. '
@@ -369,8 +370,8 @@ $HTMLmessage = '
<tbody>
<tr>
<td width="98%" style="vertical-align:middle;font-size:14px;width:98%;margin:0 10px 0 10px;">
<h4 style="font-family: CoconPro-BoldCond, Open Sans, Verdana, sans-serif; margin:0; font-size:15px; color:#b0b0b0; padding-left:3%; text-decoration:underline;">Reporting NEMS Server:</h4>
<h2 style="font-family: CoconPro-BoldCond, Open Sans, Verdana, sans-serif; margin:0; font-size:20px; padding-left:5%;">' . $nems['alias'] . '</h2>
<h4 style="font-family: CoconPro-BoldCond, Open Sans, Verdana, sans-serif; margin:0; font-size:15px; color:#b0b0b0; padding-left:3%;text-decoration:underline;">Status Information:</h4>
<h2 style="font-family: CoconPro-BoldCond, Open Sans, Verdana, sans-serif; margin:0; font-size:20px; padding-left:5%;">' . $f_host_output . '</h2>
</td>
</tr>
</tbody>
@@ -405,8 +406,8 @@ $HTMLmessage = '
<tbody>
<tr>
<td width="98%" style="vertical-align:middle;font-size:14px;width:98%;margin:0 10px 0 10px;">
<h4 style="font-family: CoconPro-BoldCond, Open Sans, Verdana, sans-serif; margin:0; font-size:15px; color:#b0b0b0; padding-left:3%;text-decoration:underline;">Status Information:</h4>
<h2 style="font-family: CoconPro-BoldCond, Open Sans, Verdana, sans-serif; margin:0; font-size:20px; padding-left:5%;">' . $f_host_output . '</h2>
<h4 style="font-family: CoconPro-BoldCond, Open Sans, Verdana, sans-serif; margin:0; font-size:15px; color:#b0b0b0; padding-left:3%; text-decoration:underline;">Reporting NEMS Server:</h4>
<h2 style="font-family: CoconPro-BoldCond, Open Sans, Verdana, sans-serif; margin:0; font-size:20px; padding-left:5%;">' . $nems['alias'] . '</h2>
</td>
</tr>
</tbody>
@@ -196,7 +196,6 @@ $message = '
***** NEMS Linux *****
Notification Type: ' .$f_notify_type. '
Reporting NEMS Server: ' . $nems['alias'] . '
Service: ' .$f_serv_desc. '
Host: ' .$f_host_name. '
Host Alias: ' .$f_host_alias. '
@@ -207,6 +206,8 @@ Date/Time: ' .$f_long_datetime. '
' .$f_ackauthor_status_none_html. '
' .$f_ackcomment_status_none_html. '
Reporting NEMS Server: ' . $nems['alias'] . '
Info:
' .$f_serv_output. '
' .$f_serv_long_output. '
@@ -394,8 +395,8 @@ $HTMLmessage = '
<tbody>
<tr>
<td width="98%" style="vertical-align:middle;font-size:14px;width:98%;margin:0 10px 0 10px;">
<h4 style="font-family: CoconPro-BoldCond, Open Sans, Verdana, sans-serif; margin:0; font-size:15px; color:#b0b0b0; padding-left:3%; text-decoration:underline;">Reporting NEMS Server:</h4>
<h2 style="font-family: CoconPro-BoldCond, Open Sans, Verdana, sans-serif; margin:0; font-size:20px; padding-left:5%;">' . $nems['alias'] . '</h2>
<h4 style="font-family: CoconPro-BoldCond, Open Sans, Verdana, sans-serif; margin:0; font-size:15px; color:#b0b0b0; padding-left:3%;text-decoration:underline;">Status Information:</h4>
<h2 style="font-family: CoconPro-BoldCond, Open Sans, Verdana, sans-serif; margin:0; font-size:20px; padding-left:5%;">' .$f_serv_output. '' .$f_line_break. '' .$f_serv_long_output. '</h2>
</td>
</tr>
</tbody>
@@ -430,8 +431,8 @@ $HTMLmessage = '
<tbody>
<tr>
<td width="98%" style="vertical-align:middle;font-size:14px;width:98%;margin:0 10px 0 10px;">
<h4 style="font-family: CoconPro-BoldCond, Open Sans, Verdana, sans-serif; margin:0; font-size:15px; color:#b0b0b0; padding-left:3%;text-decoration:underline;">Status Information:</h4>
<h2 style="font-family: CoconPro-BoldCond, Open Sans, Verdana, sans-serif; margin:0; font-size:20px; padding-left:5%;">' .$f_serv_output. '' .$f_line_break. '' .$f_serv_long_output. '</h2>
<h4 style="font-family: CoconPro-BoldCond, Open Sans, Verdana, sans-serif; margin:0; font-size:15px; color:#b0b0b0; padding-left:3%; text-decoration:underline;">Reporting NEMS Server:</h4>
<h2 style="font-family: CoconPro-BoldCond, Open Sans, Verdana, sans-serif; margin:0; font-size:20px; padding-left:5%;">' . $nems['alias'] . '</h2>
</td>
</tr>
</tbody>

0 comments on commit af5eb61

Please sign in to comment.