From 65526d2c456140f4fedd9e28e801e8986b737a25 Mon Sep 17 00:00:00 2001 From: Lukasz Olesiejuk Date: Thu, 28 Jan 2016 20:40:47 +0100 Subject: [PATCH] Solve issues with hosts contains whitespaces in hostname --- zabbix-backuppc.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zabbix-backuppc.pl b/zabbix-backuppc.pl index bb4342c..d78d381 100755 --- a/zabbix-backuppc.pl +++ b/zabbix-backuppc.pl @@ -342,7 +342,7 @@ sub zabbix_post { my $key = $_[0]; my $val = $_[1]; - my $cmd = "zabbix_sender -z $zabbix_server -p 10051 -s $zabbix_host -k $key -o '$val'"; + my $cmd = "zabbix_sender -z $zabbix_server -p 10051 -s '$zabbix_host' -k $key -o '$val'"; system("$cmd >/dev/null"); }