mirror of
https://github.com/centreon/centreon-plugins.git
synced 2025-07-27 15:44:21 +02:00
fix(aws-cloudtrail): add cloudtrail command in event lookup mode (#5251)
enh(plugin): add cloudtrail in awscli custom command option Community contribution #5086 Refs: CTOR-958
This commit is contained in:
parent
9280037660
commit
9bac8e5d0c
@ -981,7 +981,7 @@ sub cloudtrail_events_set_cmd {
|
|||||||
|
|
||||||
return if (defined($self->{option_results}->{command_options}) && $self->{option_results}->{command_options} ne '');
|
return if (defined($self->{option_results}->{command_options}) && $self->{option_results}->{command_options} ne '');
|
||||||
|
|
||||||
my $cmd_options = "lookup-events --region $self->{option_results}->{region} --output json";
|
my $cmd_options = "cloudtrail lookup-events --region $self->{option_results}->{region} --output json";
|
||||||
if (defined($options{delta})) {
|
if (defined($options{delta})) {
|
||||||
my $endtime = time();
|
my $endtime = time();
|
||||||
my $starttime = $endtime - ($options{delta} * 60);
|
my $starttime = $endtime - ($options{delta} * 60);
|
||||||
@ -1078,7 +1078,7 @@ Set AWS session token.
|
|||||||
|
|
||||||
=item B<--aws-role-arn>
|
=item B<--aws-role-arn>
|
||||||
|
|
||||||
Set arn of the role to be assumed.
|
Set Amazon Resource Name of the role to be assumed.
|
||||||
|
|
||||||
=item B<--aws-profile>
|
=item B<--aws-profile>
|
||||||
|
|
||||||
@ -1102,7 +1102,7 @@ Set timeframe in seconds.
|
|||||||
|
|
||||||
=item B<--statistic>
|
=item B<--statistic>
|
||||||
|
|
||||||
Set cloudwatch statistics (can be: 'minimum', 'maximum', 'average', 'sum').
|
Set CloudWatch statistics (can be: 'minimum', 'maximum', 'average', 'sum').
|
||||||
|
|
||||||
=item B<--zeroed>
|
=item B<--zeroed>
|
||||||
|
|
||||||
@ -1139,7 +1139,7 @@ Proxy URL if any
|
|||||||
|
|
||||||
Avoid certificate issuer verification. Useful when AWS resources are hosted by a third party.
|
Avoid certificate issuer verification. Useful when AWS resources are hosted by a third party.
|
||||||
|
|
||||||
Note that it strips all stderr from the command result. Debug will only display CLI instead of evreything.
|
Note that it strips all stderr from the command result. Debug will only display CLI instead of everything.
|
||||||
|
|
||||||
=back
|
=back
|
||||||
|
|
||||||
|
@ -18,12 +18,16 @@ api.meraki.com
|
|||||||
--api-version
|
--api-version
|
||||||
ASAM
|
ASAM
|
||||||
Avigilon
|
Avigilon
|
||||||
|
aws
|
||||||
|
AWSCLI
|
||||||
|
--aws-role-arn
|
||||||
Backbox
|
Backbox
|
||||||
--cacert-file
|
--cacert-file
|
||||||
cardtemperature
|
cardtemperature
|
||||||
Centreon
|
Centreon
|
||||||
--cert-pkcs12
|
--cert-pkcs12
|
||||||
--cert-pwd
|
--cert-pwd
|
||||||
|
CloudWatch
|
||||||
connections-dhcp
|
connections-dhcp
|
||||||
connections-dns
|
connections-dns
|
||||||
cpu-utilization-1m
|
cpu-utilization-1m
|
||||||
@ -156,6 +160,7 @@ powershell.exe
|
|||||||
prct
|
prct
|
||||||
Primera
|
Primera
|
||||||
proto
|
proto
|
||||||
|
--proxyurl
|
||||||
psu
|
psu
|
||||||
QoS
|
QoS
|
||||||
queue-messages-inflighted
|
queue-messages-inflighted
|
||||||
@ -165,6 +170,7 @@ RRDCached
|
|||||||
Sansymphony
|
Sansymphony
|
||||||
--scope-datacenter
|
--scope-datacenter
|
||||||
sfp.temperature
|
sfp.temperature
|
||||||
|
--skip-ssl-check
|
||||||
SNMP
|
SNMP
|
||||||
space-usage-prct
|
space-usage-prct
|
||||||
--sql-errors-exit
|
--sql-errors-exit
|
||||||
|
Loading…
x
Reference in New Issue
Block a user