Home Directory

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory

saracm118

Reviews(1)
bysaracm118, March 25, 2020
Send HTML Alert Email v2
For user-friendly State Duration, I would add this line in scripts
$d = floor ($f_duration / 1440);
$h = floor (($f_duration - $d * 1440) / 60);
$m = round($f_duration - ($d * 1440) - ($h * 60));

and changed this line
#$body .= "State Duration:$f_duration mins.
";

to something like this
$body .= "State Duration:$d days $h hours $m minutes
";

anyway good job!