Merge pull request #844 from cgagnaire/apps-vmware-net
improve apps vmware nethost
This commit is contained in:
commit
924d6c9378
|
@ -44,6 +44,10 @@ sub new {
|
||||||
"critical-in:s" => { name => 'critical_in', },
|
"critical-in:s" => { name => 'critical_in', },
|
||||||
"warning-out:s" => { name => 'warning_out', },
|
"warning-out:s" => { name => 'warning_out', },
|
||||||
"critical-out:s" => { name => 'critical_out', },
|
"critical-out:s" => { name => 'critical_out', },
|
||||||
|
"warning-dropped-in:s" => { name => 'warning_dropped_in', },
|
||||||
|
"critical-dropped-in:s" => { name => 'critical_dropped_in', },
|
||||||
|
"warning-dropped-out:s" => { name => 'warning_dropped_out', },
|
||||||
|
"critical-dropped-out:s" => { name => 'critical_dropped_out', },
|
||||||
"link-down-status:s" => { name => 'link_down_status', default => 'critical' },
|
"link-down-status:s" => { name => 'link_down_status', default => 'critical' },
|
||||||
"no-proxyswitch" => { name => 'no_proxyswitch' },
|
"no-proxyswitch" => { name => 'no_proxyswitch' },
|
||||||
});
|
});
|
||||||
|
@ -54,7 +58,8 @@ sub check_options {
|
||||||
my ($self, %options) = @_;
|
my ($self, %options) = @_;
|
||||||
$self->SUPER::init(%options);
|
$self->SUPER::init(%options);
|
||||||
|
|
||||||
foreach my $label (('warning_in', 'critical_in', 'warning_out', 'critical_out')) {
|
foreach my $label (('warning_in', 'critical_in', 'warning_out', 'critical_out',
|
||||||
|
'warning_dropped_in', 'critical_dropped_in', 'warning_dropped_out', 'critical_dropped_out')) {
|
||||||
if (($self->{perfdata}->threshold_validate(label => $label, value => $self->{option_results}->{$label})) == 0) {
|
if (($self->{perfdata}->threshold_validate(label => $label, value => $self->{option_results}->{$label})) == 0) {
|
||||||
my ($label_opt) = $label;
|
my ($label_opt) = $label;
|
||||||
$label_opt =~ tr/_/-/;
|
$label_opt =~ tr/_/-/;
|
||||||
|
@ -141,6 +146,22 @@ Threshold warning traffic out (percent).
|
||||||
|
|
||||||
Threshold critical traffic out (percent).
|
Threshold critical traffic out (percent).
|
||||||
|
|
||||||
|
=item B<--warning-dropped-in>
|
||||||
|
|
||||||
|
Threshold warning packets in dropped (percent).
|
||||||
|
|
||||||
|
=item B<--critical-dropped-in>
|
||||||
|
|
||||||
|
Threshold critical packets in dropped (percent).
|
||||||
|
|
||||||
|
=item B<--warning-dropped-out>
|
||||||
|
|
||||||
|
Threshold warning packets out dropped (percent).
|
||||||
|
|
||||||
|
=item B<--critical-dropped-out>
|
||||||
|
|
||||||
|
Threshold critical packets out dropped (percent).
|
||||||
|
|
||||||
=item B<--no-proxyswitch>
|
=item B<--no-proxyswitch>
|
||||||
|
|
||||||
Use the following option if you are checking an ESX 3.x version (it's mandatory).
|
Use the following option if you are checking an ESX 3.x version (it's mandatory).
|
||||||
|
|
Loading…
Reference in New Issue