Build precise queries to find exactly what you need
Press ESC to close
Nice easy to use plugin. I did make a couple of changes on the plugin on my environment:
Added an extra function to change Bytes into MBytes: sub normalize { my $megabits = $_[0] / 1048576; return $megabits; }
Then at the end of the script added the following to line 178:
if($option eq “gueststorage”) { #Convert Display to MB/s my @originalSpeed = $columns[0] =~ m/= (d+.d+)/; my $speed = sprintf(“%.2f”, normalize($originalSpeed[0])); $columns[0] =~ s/$originalSpeed[0] b/s/$speed MB/s/;
#Convert Perf Data to MB/s my @originalSpeed = $columns[1] =~ m/=(d+.d+)/; my $speed = sprintf(“%.2f”, normalize($originalSpeed[0])); $columns[1] =~ s/$originalSpeed[0]b/s/${speed}MB/s/;
}
It just puts the Bytes/s into MBytes/s when using “gueststorage” and rounds to 2 decimal places just for easier readability.
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!