Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added support for Collecting metrics of EC2 hosts without the limitation of having i-012345678 in HOST.HOST
In all our infrastructures, HOST indicates the hostname of the servers, not a particular field such as the "AWS instance id". Adapt existing infrastructures to this limitation doesn't make sense. The suggested PR consists on an OPTIONAL argument -H that indicates the value of HOST.HOST. If it exists, the zabbix_send method will send collected metrics to THAT HOST, no to IDENTITY (i-0123456789...)
Change Proposition for the Wiki:
This is Amazon CloudWatch metrics monitoring templates.
Requirements
Operation has been confirmed under the following environments.
Architecture
How to use
Only 3 steps.
Download and set a python script
Please download scripts/cloudwatch_zabbix.py on your Zabbix Server (External Scripts directory).
And please set exec permission to Zabbix Server user(default: zabbix).
Import template
Please import templates/3.0/cloudwatch_template.xml at Zabbix WebGUI ([Configuration]->[Templates]->Import).
(In case of Zabbix 2.2: templates/2.2/cloudwatch_template.xml)
If you want to monitor the billing data, please import awsbilling_template.xml.
Register hosts
Please register Zabbix hosts for EC2 instances, RDS instances, ELB, EBS volume or others.
In case of an EC2 instance:
In case of Billing data:
Tip
If you don't want to set AWS credentials info at Zabbix Macro, please set OS environment variables.
And, please change external check items key.
before:
after: