1 |
brianr |
1.1 |
--- smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_smart.smart_missing_return 2009-09-01 11:33:59.000000000 +0200 |
2 |
|
|
+++ smeserver-zabbix-agent-0.1/root/etc/e-smith/templates/etc/zabbix/zabbix_agentd.conf/90UserParameters_smart 2009-09-01 11:34:58.000000000 +0200 |
3 |
|
|
@@ -31,7 +31,7 @@ |
4 |
|
|
my $cnt = 1; |
5 |
|
|
foreach my $drive (@hd){ |
6 |
|
|
if ( -e $drive){ |
7 |
|
|
- $OUT .= "UserParameter=system.smartd.hd" . $cnt. "[*],/usr/bin/sudo /usr/sbin/smartctl -A $drive| grep \$1| tail -1| cut -c 88-|cut -f1 -d' '"; |
8 |
|
|
+ $OUT .= "UserParameter=system.smartd.hd" . $cnt. "[*],/usr/bin/sudo /usr/sbin/smartctl -A $drive| grep \$1| tail -1| cut -c 88-|cut -f1 -d' '\n"; |
9 |
|
|
$cnt++; |
10 |
|
|
} |
11 |
|
|
} |