Check Iperf
-
- Posts: 30
- Joined: Tue Dec 11, 2012 10:06 am
Check Iperf
Hello,
I'm using check_iperf plugin. Is there a posibility of performance graphs for this plugin?
Regards
I'm using check_iperf plugin. Is there a posibility of performance graphs for this plugin?
Regards
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Check Iperf
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
Original plugin: http://exchange.nagios.org/directory/Pl ... rf/details
-
- Posts: 30
- Joined: Tue Dec 11, 2012 10:06 am
Re: Check Iperf
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
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
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Check Iperf
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?
-
- Posts: 30
- Joined: Tue Dec 11, 2012 10:06 am
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Check Iperf
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
From the comments on the exchange:
Have you tried adding "| bd=$speed" to the print outputs?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.
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.
"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.
-
- Posts: 30
- Joined: Tue Dec 11, 2012 10:06 am
Re: Check Iperf
Hello,
Thank you very much. It works perfectly!!
I didn't understand where to put the text "| bd=$speed"
Regards
Thank you very much. It works perfectly!!
I didn't understand where to put the text "| bd=$speed"
Regards
-
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Check Iperf
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.