From 7be7fa71f33dcce82192e7e6b8be03f17a9b4b52 Mon Sep 17 00:00:00 2001 From: Daniel Berteaud Date: Wed, 25 Jun 2014 13:31:21 +0200 Subject: [PATCH] Use readlink to tail the real file so it won't complains on EL6 about inotify --- root/var/lib/zabbix/bin/util_send_status_mail | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;