diff --git a/root/var/lib/zabbix/bin/util_send_status_mail b/root/var/lib/zabbix/bin/util_send_status_mail index 2429c20..47653e1 100644 --- a/root/var/lib/zabbix/bin/util_send_status_mail +++ b/root/var/lib/zabbix/bin/util_send_status_mail @@ -16,7 +16,7 @@ $mail->subject("[STATUS] $host.$domain"); my $body = $mail->open; print $body localtime(time)."\n", "\n#>tail /var/log/messages :\n", - `/usr/bin/tail /var/log/messages`, + `/usr/bin/tail \$(readlink /var/log/messages)`, "\n#>netstat --numeric-hosts -tpu :\n", `/bin/netstat --numeric-hosts -tpu`; $body->close;