Use readlink to tail the real file so it won't complains on EL6 about inotify

tags/smeserver-zabbix-agent-0.4.3-1 0.3.6_el5
Daniel Berteaud 11 years ago
parent 6f4bb7a885
commit 7be7fa71f3
  1. 2
      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;

Loading…
Cancel
Save