Skip to main content

Amazon FSx

Pack Assets​

Templates​

The Centreon Plugin Pack Amazon FSx brings 1 host template:

  • Cloud-Aws-Fsx-custom

It brings the following Service Templates:

Service AliasService TemplateDefault
Fsx-DataUsageCloud-Aws-Fsx-Datausage-ApiX
Fsx-FreespaceCloud-Aws-Fsx-Freespace-ApiX

Discovery rules​

Rule nameDescription
Cloud-Aws-Fsx-Api-HostDiscoveryDiscover FSx Filesystems from your Cloudwatch endpoint

Collected metrics & status​

Metric NameUnit
fsx.data.read.bytesB
fsx.data.read.bytespersecondB/s
fsx.data.write.bytesB
fsx.data.write.bytespersecondB/s
fsx.data.io.read.countcount
fsx.data.io.read.persecondpersecond
fsx.data.io.write.countcount
fsx.data.io.write.persecondpersecond
fsx.metadata.ops.bytesB
fsx.metadata.ops.bytespersecondB/s

Prerequisites​

Configure a service account (access/secret key combo) for which the following privileges have to be granted:

AWS PrivilegeDescription
fsx:DescribeFileSystemsDisplay FSx instances & details
cloudwatch:getMetricStatisticsGet metrics from the AWS/FSx namespace on Cloudwatch

Setup​

  1. Install the Centreon Plugin package on every Centreon poller expected to monitor Amazon FSx resources:
yum install centreon-plugin-Cloud-Aws-Fsx-Api
  1. On the Centreon Web interface, install the Amazon FSx Centreon Plugin Pack on the Configuration > Plugin Packs page.

Configuration​

Host​

  • Log into Centreon and add a new Host through Configuration > Hosts
  • Fill the Name, Alias & IP Address / DNS fields according to your Amazon FSx server settings
  • Select the cloud-aws-fsx-custom template to apply to the Host
  • Once the template is applied, fill in the corresponding macros. Some macros are mandatory.
MandatoryNomDescription
XAWSSECRETKEYAWS Secret key of your IAM role. Password checkbox must be checked
XAWSACESSKEYAWS Access key of your IAM role. Password checkbox must be checked
XAWSREGIONRegion where the instance is running
XAWSCUSTOMMODECustom mode to get metrics, 'awscli' is the default, you can also use 'paws' perl library
PROXYURLConfigure proxy URL
EXTRAOPTIONSAny extra option you may want to add to every command_line (eg. a --verbose flag)
DUMMYSTATUSHost state. Default is OK, do not modify it unless you know what you are doing
DUMMYOUTPUTHost check output. Default is 'This is a dummy check'. Customize it with your own if needed

How to check in the CLI that the configuration is OK and what are the main options for?​

Once the plugin is installed, log into your Centreon Poller CLI using the centreon-engine user account and test the Plugin by running the following command:

/usr/lib/centreon/plugins//centreon_aws_fsx_api.pl \
--plugin=cloud::aws::fsx::plugin \
--mode=datausage \
--custommode='awscli' \
--aws-secret-key='' \
--aws-access-key='' \
--region='' \
--name='' \
--proxyurl='' \
--filter-metric='' \
--statistic='average' \
--timeframe='900' \
--period='60' \
--warning-data-write-ops='' \
--critical-data-write-ops='' \
--warning-data-read-ops='1000' \
--critical-data-read-ops='' \
--warning-data-write-bytes='' \
--critical-data-write-bytes='' \
--warning-data-read-bytes='' \
--critical-data-read-bytes='' \
--warning-metadata-ops-bytes='' \
--critical-metadata-ops-bytes='' \
--verbose

The expected command output is shown below:

OK: All FSx metrics are ok | 

This command would trigger a CRITICAL alarm if the number of read operations was reported as over 1000 (--critical-data-read-ops='1000').

All available options for a given mode can be displayed by adding the --help parameter to the command:

/usr/lib/centreon/plugins//centreon_aws_fsx_api.pl \
--plugin=cloud::aws::fsx::plugin \
--mode=datausage \
--help

All available options for a given mode can be displayed by adding the --list-mode parameter to the command:

/usr/lib/centreon/plugins//centreon_aws_fsx_api.pl \
--plugin=cloud::aws::fsx::plugin \
--list-mode

Troubleshooting​

Please find all the troubleshooting documentation for the Centreon Plugins in the dedicated page