From 2781844ce93f0c308b49dad137674872f4f7b66c Mon Sep 17 00:00:00 2001 From: Heuzef Date: Thu, 19 Sep 2019 14:06:48 +0200 Subject: [PATCH] Fix single quote --- zabbix.pl | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/zabbix.pl b/zabbix.pl index fd14320..f05eaec 100644 --- a/zabbix.pl +++ b/zabbix.pl @@ -8,7 +8,7 @@ use JSON; # We need to switch to backuppc UID/GID my $uid = getuid(); my $gid = getgid(); -my (undef,undef,$bkpuid,$bkpgid) = getpwnam(‘backuppc’); +my (undef,undef,$bkpuid,$bkpgid) = getpwnam('backuppc'); setuid($bkpuid) if ($uid ne $bkpuid); setgid($bkpgid) if ($gid ne $bkpgid); @@ -56,22 +56,22 @@ else { } $lastXferErrors = $backups[@backups-1]{xferErrs} if ( @backups ); $maxErrors = $conf->{MaxXferError} if (defined $conf->{MaxXferError}); -if ($what eq ‘errors’){ +if ($what eq 'errors'){ print $lastXferErrors; } -elsif ($what eq ‘max_errors’){ +elsif ($what eq 'max_errors'){ print $maxErrors; } -elsif ($what eq ‘age’){ +elsif ($what eq 'age'){ print $lastAge; } -elsif ($what eq ‘size’){ +elsif ($what eq 'size'){ print $fullSize; } -elsif ($what eq ‘duration’){ +elsif ($what eq 'duration'){ print $fullDur; } -elsif ($what eq ‘notify’){ +elsif ($what eq 'notify'){ print $conf->{EMailNotifyOldBackupDays}; } else{