Permalink
Browse files

Minor adjustments to email notifications

  • Loading branch information...
NEMS Linux
NEMS Linux committed Nov 1, 2018
1 parent a79ebd2 commit 87b933d5ace75e87d451ae2d605ae958e68140e8
Showing with 10 additions and 6 deletions.
  1. +5 −3 data/1.5/nagios/plugins/nems_sendmail_host
  2. +5 −3 data/1.5/nagios/plugins/nems_sendmail_service
@@ -10,9 +10,11 @@ Based Upon:
Build: 1011
Reworked for NEMS Linux by Robbie Ferguson
https://nemslinux.com
https://nemslinux.com
Build: 1
Used and distributed in NEMS Linux with special permission from Heini Holm Andersen.
Used, modified and distributed in NEMS Linux
with special permission from Heini Holm Andersen.
*******************************************************************************/
@@ -45,7 +47,7 @@ $f_all_recipients= array_shift($argv); /*21*/
$f_date_year = date("Y");
/* Load from NEMS Config */
$nems['alias'] = shell_exec('/usr/local/bin/nems-info alias');
$nems['alias'] = trim(shell_exec('/usr/local/bin/nems-info alias'));
$resource = file('/usr/local/nagios/etc/resource.cfg');
if (is_array($resource)) {
foreach ($resource as $line) {
@@ -10,9 +10,11 @@ Based Upon:
Build: 1011
Reworked for NEMS Linux by Robbie Ferguson
https://nemslinux.com
https://nemslinux.com
Build: 1
Used and distributed in NEMS Linux with special permission from Heini Holm Andersen.
Used, modified and distributed in NEMS Linux
with special permission from Heini Holm Andersen.
*******************************************************************************/
@@ -56,7 +58,7 @@ $f_downwarn = $f_duration;
$f_date_year = date("Y");
/* Load from NEMS Config */
$nems['alias'] = shell_exec('/usr/local/bin/nems-info alias');
$nems['alias'] = trim(shell_exec('/usr/local/bin/nems-info alias'));
$resource = file('/usr/local/nagios/etc/resource.cfg');
if (is_array($resource)) {
foreach ($resource as $line) {

0 comments on commit 87b933d

Please sign in to comment.