Page 1 of 1
Check Iperf
Posted: Tue Feb 19, 2013 11:23 am
by rbaholding
Hello,
I'm using check_iperf plugin. Is there a posibility of performance graphs for this plugin?
Regards
Re: Check Iperf
Posted: Tue Feb 19, 2013 11:41 am
by slansing
It looks like a user beat you to the chase, on the comments section of the exchange page someone notes that it only need performance data and it would be perfect. I suggest you email the creator and see if they can add that functionality in since it is sought after! His address is located within the script.
Original plugin:
http://exchange.nagios.org/directory/Pl ... rf/details
Re: Check Iperf
Posted: Wed Feb 20, 2013 6:51 am
by rbaholding
Hello,
I try to write to plugin creator but impossible. Can you tell me if is there any other way to generate graphs, please?
Thanks and regards
Re: Check Iperf
Posted: Wed Feb 20, 2013 10:28 am
by slansing
Without the ability already built into the plugin no, there is no way it would know what to pull. What do you mean by it is impossible to contact the creator of the plugin?
Re: Check Iperf
Posted: Wed Feb 20, 2013 10:58 am
by rbaholding
I try to send an email but error:
[email protected]>: Relay access denied
Regards
Re: Check Iperf
Posted: Wed Feb 20, 2013 11:26 am
by slansing
That is most likely because your MTA is not configured to send to outside addresses like that. You may need to talk to your mail admins or send a personal email.
Re: Check Iperf
Posted: Wed Feb 20, 2013 11:31 am
by rbaholding
Same problem from GMail.
Re: Check Iperf
Posted: Wed Feb 20, 2013 11:50 am
by abrist
From the comments on the exchange:
Only needs performance output for graphing and it would be perfect. Perfomance output can be easily added by putting a "| bd=$speed" to the output string. Thanks for the script.
Have you tried adding "| bd=$speed" to the print outputs?
Code: Select all
if ($connect_ok == 0) {
print "NOK: iperf didn't connect to '$target'.\n"; $exit = 2;
} elsif ($speed<$mincrit) {
print "Critical: iperf speed of '$target': $speed ($unit) < $mincrit. | bd=$speed\n";$exit=2;
} elsif (defined($maxcrit) && $speed > $maxcrit) {
print "Critical: iperf speed of '$target': $speed ($unit) > $maxcrit. | bd=$speed \n";$exit=2;
} elsif ($speed < $minwarn) {
print "Warning: iperf speed of '$target': $speed ($unit) < $minwarn. | bd=$speed \n";$exit=1;
} elsif (defined($maxwarn) && $speed > $maxwarn) {
print "Warning: iperf speed of '$target': $speed ($unit) > $maxwarn. | bd=$speed \n";$exit=2;
} else {
print "OK: iperf returns $speed $unit (wsize $mtu). | bd=$speed \n"; $exit = 0;
}
Re: Check Iperf
Posted: Mon Feb 25, 2013 9:44 am
by rbaholding
Hello,
Thank you very much. It works perfectly!!
I didn't understand where to put the text "| bd=$speed"
Regards
Re: Check Iperf
Posted: Mon Feb 25, 2013 10:21 am
by slansing
Great! Thanks for letting us know.. in the future many common requests have already been added into plugins like we found with this one. Though the creator may not include it.