Check Iperf

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rbaholding
Posts: 30
Joined: Tue Dec 11, 2012 10:06 am

Check Iperf

Post by rbaholding »

Hello,

I'm using check_iperf plugin. Is there a posibility of performance graphs for this plugin?

Regards
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Check Iperf

Post 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
rbaholding
Posts: 30
Joined: Tue Dec 11, 2012 10:06 am

Re: Check Iperf

Post 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
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Check Iperf

Post 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?
rbaholding
Posts: 30
Joined: Tue Dec 11, 2012 10:06 am

Re: Check Iperf

Post by rbaholding »

I try to send an email but error:
julien.touche@touche.fr.st>: Relay access denied

Regards
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Check Iperf

Post 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.
rbaholding
Posts: 30
Joined: Tue Dec 11, 2012 10:06 am

Re: Check Iperf

Post by rbaholding »

Same problem from GMail.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Check Iperf

Post 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;
}
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
rbaholding
Posts: 30
Joined: Tue Dec 11, 2012 10:06 am

Re: Check Iperf

Post by rbaholding »

Hello,

Thank you very much. It works perfectly!!

I didn't understand where to put the text "| bd=$speed"

Regards
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Check Iperf

Post 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.
Locked