Skip to content

Commit

Permalink
Re-order notification fields for priority
Browse files Browse the repository at this point in the history
  • Loading branch information
NEMS Linux committed Nov 3, 2018
1 parent 5899912 commit af5eb61
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
11 changes: 6 additions & 5 deletions data/1.5/nagios/plugins/nems_sendmail_host
Expand Up @@ -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. '
Expand All @@ -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. '
Expand Down Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand Down
11 changes: 6 additions & 5 deletions data/1.5/nagios/plugins/nems_sendmail_service
Expand Up @@ -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. '
Expand All @@ -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. '
Expand Down Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand Down

0 comments on commit af5eb61

Please sign in to comment.