several azure fixes

This commit is contained in:
Colin Gagnaire 2019-02-01 17:31:45 +01:00
parent 4082079929
commit 742d015537
2 changed files with 13 additions and 20 deletions

View File

@ -190,8 +190,8 @@ Filter metrics (Can be: 'storage_percent') (Can be a regexp).
=item B<--warning-$metric$-$aggregation$> =item B<--warning-$metric$-$aggregation$>
Thresholds warning ($metric$ can be: 'cpu-credits-remaining', 'cpu-credits-consumed', Thresholds warning ($metric$ can be: 'storage-percent',
'percentage-cpu', $aggregation$ can be: 'minimum', 'maximum', 'average'). $aggregation$ can be: 'minimum', 'maximum', 'average').
=item B<--critical-$metric$-$aggregation$> =item B<--critical-$metric$-$aggregation$>

View File

@ -228,23 +228,23 @@ __END__
=head1 MODE =head1 MODE
Check VPN gateway tunnels traffic metrics. Check VPN gateway site traffic metrics.
Example: Example:
Using resource name : Using resource name :
perl centreon_plugins.pl --plugin=cloud::azure::network::vpngateway::plugin --custommode=azcli --mode=tunnel-traffic perl centreon_plugins.pl --plugin=cloud::azure::network::vpngateway::plugin --custommode=azcli --mode=site-traffic
--resource=MyResource --resource-group=MYRGROUP --aggregation='total' --critical-tunnelingressbytes-total='10' --resource=MyResource --resource-group=MYRGROUP --aggregation='average' --critical-averagebandwidth-average='10'
--verbose --verbose
Using resource id : Using resource id :
perl centreon_plugins.pl --plugin=cloud::azure::network::vpngateway::plugin --custommode=azcli --mode=tunnel-traffic perl centreon_plugins.pl --plugin=cloud::azure::network::vpngateway::plugin --custommode=azcli --mode=site-traffic
--resource='/subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.Network/virtualNetworkGateways/xxx' --resource='/subscriptions/xxx/resourceGroups/xxx/providers/Microsoft.Network/virtualNetworkGateways/xxx'
--aggregation='total' --critical-tunnelingressbytes-total='10' --verbose --aggregation='average' --critical-averagebandwidth-average='10' --verbose
Default aggregation: 'total' / All aggregations are valid. Default aggregation: 'average', 'maximum' / All aggregations are valid.
=over 8 =over 8
@ -258,25 +258,18 @@ Set resource group (Required if resource's name is used).
=item B<--filter-metric> =item B<--filter-metric>
Filter metrics (Can be: 'TunnelIngressBytes', 'TunnelEgressBytes', 'TunnelIngressPackets', Filter metrics (Can be: 'AverageBandwidth', 'P2SBandwidth', 'P2SConnectionCount')
'TunnelEgressPackets', 'TunnelIngressPacketDropTSMismatch', 'TunnelEgressPacketDropTSMismatch')
(Can be a regexp). (Can be a regexp).
=item B<--warning-$metric$-$aggregation$> =item B<--warning-$metric$-$aggregation$>
Thresholds warning ($metric$ can be: 'tunnelingressbytes', 'tunnelegressbytes', Thresholds warning ($metric$ can be: 'averagebandwidth', 'p2sbandwidth',
'tunnelingresspackets', 'tunnelegresspackets', 'tunnelingresspacketdroptsmismatch', 'p2sconnectioncount', $aggregation$ can be: 'total', 'minimum', 'maximum', 'average').
'tunnelegresspacketdroptsmismatch', $aggregation$ can be: 'total', 'minimum', 'maximum', 'average').
=item B<--critical-$metric$-$aggregation$> =item B<--critical-$metric$-$aggregation$>
Thresholds critical ($metric$ can be: 'tunnelingressbytes', 'tunnelegressbytes', Thresholds critical ($metric$ can be: 'averagebandwidth', 'p2sbandwidth',
'tunnelingresspackets', 'tunnelegresspackets', 'tunnelingresspacketdroptsmismatch', 'p2sconnectioncount', $aggregation$ can be: 'total', 'minimum', 'maximum', 'average').
'tunnelegresspacketdroptsmismatch', $aggregation$ can be: 'total', 'minimum', 'maximum', 'average').
=item B<--per-sec>
Change the data to be unit/sec.
=back =back