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{