#!/home/product/code/webui-perl/bin/perl -T -I /home/product/code/firmware/current/lib/perl5
#SUDOER_USERS: nobody
#SUDOER_RUNAS_USERS: root, mta
#SUDOER_TAGS: NOPASSWD, EXEC
use strict;
use warnings;
use Barracuda::Sudo::Lib;
use IPC::Run qw(run);

=pod

=head1 NAME

iostat

=head1 DESCRIPTION

Wraps /usr/bin/iostat; takes no arguments and returns the output

=cut

my $cmd = "/usr/bin/iostat";
my $output = sudo_out();

my $status = run([$cmd], \undef, $output, $output);

exit !$status;
