From 220cc243fb3f0a0494d93b09ea25bafab418db50 Mon Sep 17 00:00:00 2001 From: Jim Salter Date: Tue, 18 Nov 2014 09:57:43 -0500 Subject: [PATCH] got rid of unnecessary sudo commands found in monitor-health routine --- sanoid | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sanoid b/sanoid index cdd75f3..1ff1f2f 100755 --- a/sanoid +++ b/sanoid @@ -710,7 +710,7 @@ sub check_zpool() { exit $ERRORS{$state}; } - my $statcommand="sudo //sbin/zpool list $pool"; + my $statcommand="/sbin/zpool list $pool"; if (! open STAT, "$statcommand|") { print ("$state '$statcommand' command returns no result! NOTE: This plugin needs OS support for ZFS, and execution with root privileges.\n"); @@ -753,7 +753,7 @@ sub check_zpool() { ## flag to detect section of zpool status involving our zpool my $poolfind=0; - $statcommand="sudo //sbin/zpool status $pool"; + $statcommand="/sbin/zpool status $pool"; if (! open STAT, "$statcommand|") { $state = 'CRITICAL'; print ("$state '$statcommand' command returns no result! NOTE: This plugin needs OS support for ZFS, and execution with root privileges.\n");