Permalink
Browse files

Further cosmetics for email notifications

  • Loading branch information...
NEMS Linux
NEMS Linux committed Nov 2, 2018
1 parent 487f520 commit dbbdc0de988964713e7eb97fffa946e8bdc0b282
Showing with 20 additions and 20 deletions.
  1. +10 −11 data/1.5/nagios/plugins/nems_sendmail_host
  2. +10 −9 data/1.5/nagios/plugins/nems_sendmail_service
@@ -167,7 +167,7 @@ $message = '
***** NEMS Linux *****
Notification Type: ' .$f_notify_type. '
NEMS Server: ' . $nems['alias'] . '
Reporting NEMS Server: ' . $nems['alias'] . '
Hostname: ' .$f_host_name. '
Hostalias: ' .$f_host_alias. '
State: ' .$f_host_state. '
@@ -346,16 +346,6 @@ $HTMLmessage = '
</tbody>
</table>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse:separate;mso-table-lspace:0pt;mso-table-rspace:0pt;width:100%;border-left-style: solid;border-right-style: solid;border-color: #d3d3d3;border-width: 1px;">
<td style="font-size:16px;vertical-align:top;">&nbsp;</td>
<td style="font-size:9px;vertical-align:top;">&nbsp;</td>
<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;">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>
<tbody>
<tr>
<td width="98%" style="vertical-align:middle;font-size:14px;width:98%;margin:0 10px 0 10px;">
@@ -369,6 +359,15 @@ $HTMLmessage = '
</tr>
</tbody>
<td style="font-size:9px;vertical-align:top;">&nbsp;</td>
<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>
</td>
</tr>
</tbody>
<td style="font-size:9px;vertical-align:top;">&nbsp;</td>
<tbody>
<tr>
<td width="98%" style="vertical-align:middle;font-size:14px;width:98%;margin:0 10px 0 10px;">
@@ -194,7 +194,7 @@ $message = '
***** NEMS Linux *****
Notification Type: ' .$f_notify_type. '
NEMS Server: ' . $nems['alias'] . '
Reporting NEMS Server: ' . $nems['alias'] . '
Service: ' .$f_serv_desc. '
Hostname: ' .$f_host_name. '
Hostalias: ' .$f_host_alias. '
@@ -374,14 +374,6 @@ $HTMLmessage = '
</tbody>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%" style="border-collapse:separate;mso-table-lspace:0pt;mso-table-rspace:0pt;width:100%;border-left-style: solid;border-right-style: solid;border-color: #d3d3d3;border-width: 1px;">
<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;">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>
<tbody>
<tr>
<td width="98%" style="vertical-align:middle;font-size:14px;width:98%;margin:0 10px 0 10px;">
@@ -397,6 +389,15 @@ $HTMLmessage = '
</tr>
</tbody>
<td style="font-size:9px;vertical-align:top;">&nbsp;</td>
<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>
</td>
</tr>
</tbody>
<td style="font-size:9px;vertical-align:top;">&nbsp;</td>
<tbody>
<tr>
<td width="98%" style="vertical-align:middle;font-size:14px;width:98%;margin:0 10px 0 10px;">

0 comments on commit dbbdc0d

Please sign in to comment.