Zabbix AWS monitoring with the AWS by HTTP template

Zabbix monitors EC2, RDS, S3, ELB, ECS, Lambda, AWS Backup and Cost Explorer through the official AWS by HTTP template. This page covers the IAM policy, the three authorization types and the CloudWatch API cost to plan for.

On this page

How to monitor AWS with Zabbix and the AWS by HTTP template

If your workloads run in AWS and you want Zabbix to watch them, the official AWS by HTTP template is the starting point. It covers EC2 instances, ECS clusters, Application and Network Load Balancers, Lambda functions, RDS instances, S3 buckets, AWS Cost Explorer and AWS Backup vaults. It uses low-level discovery to find each service in your account, so you do not maintain a list of resources by hand, and it needs no external scripts. Before you build anything, list which of these services matter to your operations and which belong to other teams, because that list sets the IAM permissions, the number of discovered hosts and the polling load you will carry.

The template supports three authorization types, selected with the {$AWS.AUTH_TYPE} macro: access_key, assume_role (which requires the sts:AssumeRole action) and role_base. The role_base option only works when the Zabbix server or proxy runs inside AWS, so it is a hosting decision as much as an access decision. Choose the type with your security team early, because it determines where long-lived credentials live and how they are rotated. The exact steps, macros and policy actions are set out in the sections that follow.

Check the template version against your Zabbix version before you import anything. The 7.4 template requires Zabbix 7.4, and older template versions are available back to Zabbix 6.0. Confirm the template version that matches your server or proxy with the Zabbix AWS integration page, and plan your upgrade path if you are still on an older release, since the template and the platform move together.

What you need before connecting Zabbix to AWS

Connecting Zabbix to AWS depends on four things lining up: the Zabbix server or proxy version, the template version that matches it, an IAM identity with the right read actions, and a network path to AWS endpoints. Settle these before anyone creates credentials, because a mismatch in any one of them shows up as empty graphs or failed discovery.

Zabbix and template version pairing

The AWS by HTTP template has to match your Zabbix release. The 7.4 template requires Zabbix 7.4, and older template versions go back to Zabbix 6.0. Check your server version first, then import the template version that matches it. Mixing versions is the most common reason discovery rules fail silently after an upgrade, so record the pairing in your change log.

AWS integration page

IAM policy actions

The template needs read-only IAM actions such as cloudwatch:GetMetricData, cloudwatch:DescribeAlarms and ec2:DescribeInstances. Grant only the services you intend to monitor, and scope resources where AWS allows it. Confirm the full action list for your template version on the integration page, because service-specific discovery (ELB, RDS, S3, Lambda, AWS Backup, Cost Explorer) adds its own read permissions.

Accounts and regions in scope

Write down which AWS accounts, regions and services are in scope before building the policy. Each region adds discovery work and CloudWatch calls, so a region list that nobody owns becomes a cost surprise. Decide whether one Zabbix host represents an account, a region or a service, because that choice determines how discovery and macros are structured.

Authorization type decision

Choose between access_key, assume_role and role_based through the {$AWS.AUTH_TYPE} macro before creating identities. Assume role needs sts:AssumeRole permission on a trust relationship, and role_based works only when the Zabbix server or proxy runs inside AWS. Make this decision with your identity team, since it determines which credentials exist and who rotates them.

Network path to AWS endpoints

The Zabbix server or the proxy that polls AWS needs outbound HTTPS to the AWS API endpoints for each service and region in scope. Confirm egress through your firewall, proxy or NAT, and check whether a private endpoint or egress filter applies in regulated networks. If the server sits in an isolated network, plan the path before the template is imported, since failed connections look like misconfiguration.

API polling capacity planning

CloudWatch and Cost Explorer calls are billed by AWS and each poll consumes API quota, so polling intervals should be set per service with the account owner in the room. Ask your AWS account team and billing owner to confirm current request pricing for the metrics and regions you plan to poll before you agree on a schedule.

Access key, assume role or role-based authorization: which to choose

Setting {$AWS.AUTH_TYPE} to access_key makes the AWS by HTTP template sign its CloudWatch, EC2, RDS, S3, ELB, ECS, Lambda, Backup and Cost Explorer calls with a static IAM access key pair stored in Zabbix. This is the option that works from any network location, including a Zabbix server or proxy in your data center, because it depends only on outbound HTTPS to AWS endpoints. The trade-off is that the secret is long-lived and must be stored, rotated and revoked by your team.

  • Ownership: your team creates the IAM user, attaches the read-only policy and rotates the key pair on a schedule you set.
  • Storage: the secret sits in a Zabbix macro, so restrict who can read host and macro values in the Zabbix frontend.
  • Blast radius: a leaked key works from anywhere until it is deactivated, so limit the policy to the read actions the template needs.
  • Rotation: plan an overlap period where two keys are active, so polling does not stop during the switch.
  • Audit: tag the IAM user clearly so CloudTrail entries can be traced back to Zabbix.

Before choosing this option, confirm with the security team whether policy allows long-lived IAM user credentials at all.

Configuring the AWS by HTTP template step by step

This sequence takes a Zabbix server or proxy from no AWS access to a host that discovers and polls only the AWS services you have agreed to monitor. Each step ends with a check so that a problem surfaces at the point where it was introduced.

  1. Create the IAM identity and policy

    The AWS account owner or cloud platform team creates a dedicated IAM identity for Zabbix and attaches a read-only policy. The policy must allow actions such as cloudwatch:GetMetricData, cloudwatch:DescribeAlarms and ec2:DescribeInstances, and you should extend it only for the services in scope. Confirm the full action list against the official AWS integration page before the policy is approved. This step is done when the policy is attached and a test call made with that identity returns data for one service.

  2. Choose the authorization type

    Decide how Zabbix will authenticate to AWS before touching the host configuration. The template supports access_key, assume_role (which requires sts:AssumeRole) and role_base. The role_base option works only when the Zabbix server or proxy runs inside AWS, so confirm where the collector runs first. Record the choice in your change record, because it determines which credentials you create and which macros you set. This step is done when the team has agreed the option and the hosting location supports it.

  3. Set the authorization type and credential macros

    On the AWS host in Zabbix, set {$AWS.AUTH_TYPE} to the chosen value and fill in the credential macros that option requires, such as an access key pair, or a role ARN for assume_role. Store secret values as secret macros or in your approved vault, not in plain text in the host inventory. Limit who can view the host macros, since they expose the configuration to anyone with host edit rights. This step is done when the macros are saved and the host shows no unresolved macro warnings.

  4. Confirm the template version matches Zabbix

    Check the template version against your Zabbix server version before importing or linking it. The 7.4 template requires Zabbix 7.4, and older template versions go back to Zabbix 6.0, so a mismatch can leave items unsupported or missing. Confirm the version on the official integration page and in your Zabbix template library. Confirm also that the server or proxy can reach the AWS API endpoints over outbound HTTPS from its network. This step is done when the template version matches your server and a test item returns a value without a network or authorization error.

  5. Run low-level discovery for each service

    Run or wait for the discovery rules for each supported service: EC2, ECS clusters, ELB application and network load balancers, Lambda, RDS instances, S3 buckets, AWS Cost Explorer and AWS Backup vaults. Review the discovered entities in the host's discovered list and confirm the account and region filters match your intent. Because discovery runs against live AWS APIs, expect call volume to grow with the number of resources. This step is done when each expected resource type appears as a discovered host or item, and no unexpected accounts or regions appear.

  6. Enable only the services in scope

    Disable the discovery rules and item prototypes for services you have not agreed to monitor, and keep the rest enabled. Each enabled service adds CloudWatch and cost API calls on every polling cycle, so narrowing scope is the main control on both polling load and AWS charges. Ask your AWS account owner to confirm how the API call volume is billed for your account before you widen scope. This step is done when the monitored services match the written scope and the disabled rules are documented.

  7. Verify items and problems end to end

    Check that item values update at the expected intervals, that no items are in an unsupported state, and that a test trigger fires and recovers as intended. Confirm that the IAM identity can read every resource type it is expected to see, and that access denied errors do not appear in the server log. Record the final template version, authorization type and enabled services in your configuration record for the next review. This step is done when items update, no unsupported errors remain and the record is saved.

How Zabbix requests AWS data through the template

The flow starts at the Zabbix server or a proxy, which holds the AWS by HTTP template and the {$AWS.AUTH_TYPE} setting. The chosen authorization path decides how requests are signed: an access key, an STS assume role, or an instance role when the Zabbix server or proxy runs inside AWS. Signed calls then go to CloudWatch, EC2, RDS, S3, ELB, Lambda, Cost Explorer and AWS Backup, and the responses feed low-level discovery and the items built from them. Check the trust boundary: everything right of it is outbound traffic from your network, so confirm which credentials sit on the Zabbix side and which IAM permissions they hold.

Zabbix calls AWS APIs across the trust boundary and stores results as discovered items.

Mapping AWS resources to Zabbix hosts and items

This table shows, for each AWS service the official template covers, what Zabbix creates, which discovery rule finds it, and what scopes it. Read it before you set the authorization type and macros, because host matching depends on names, tags and the region and account the template is pointed at. Confirm the exact discovered entity types and filter macros for your template version in the template itself.

AWS serviceWhat Zabbix createsScope and matching notes
EC2 instancesDiscovered hosts or items for each instance found by the discovery ruleScoped by the account and region the credentials can see. Confirm whether instance names or tags must match existing host names before enabling auto-creation.
ECS clustersDiscovered entities for each cluster returned by the ECS discovery ruleScoped by account and region. Confirm the cluster names you want to keep stable, since they drive host identity.
ELB application load balancersDiscovered entities for each application load balancerScoped by region. Load balancers in other regions need a separate template instance or region setting.
ELB network load balancersDiscovered entities for each network load balancerHandled by the same load balancer discovery as application load balancers. Confirm whether both types appear under one rule in your version.
Lambda functionsDiscovered entities for each function returned by discoveryScoped by account and region. Function names are the likely matching key, so keep them consistent across environments.
RDS instancesDiscovered entities for each RDS instanceScoped by account and region. Confirm which instance identifier is used for host names before linking to existing database hosts.
S3 bucketsDiscovered entities for each bucket visible to the credentialsBucket discovery depends on what the IAM policy allows. Confirm the list permissions match your bucket estate.
Cost Explorer and AWS Backup vaultsAccount-level items for cost and for each backup vaultCost data is tied to the account rather than a single resource. Backup vault discovery depends on region and vault visibility.

CloudWatch API calls, polling and cost drivers

Every item the AWS by HTTP template monitors turns into AWS API calls, and the number of those calls grows with the estate and the polling settings you choose. The cards below cover the volume drivers, who bills what, and the checks to run before you size the polling plan.

Discovered resources multiply requests

Low-level discovery finds each EC2 instance, RDS instance, load balancer, Lambda function, S3 bucket, ECS cluster and backup vault in the accounts and regions you scope. Each discovered resource adds items, and each item adds metric requests on every poll. Before go-live, export a count per service and region from the AWS console and multiply it by your planned polling interval to estimate calls per hour. Discovery filters are the main lever for trimming this.

Enabled metrics set the call count

A discovered resource still costs little if you leave its metric items disabled. Every enabled metric item adds CloudWatch data to fetch, so a short list of metrics per service keeps the volume predictable. Review the template's item list with the owners of each workload and disable the metrics no one reads. Ask your partner or administrator to document which metrics are on in each environment.

Polling intervals scale the bill

Shortening an update interval from five minutes to one minute multiplies the number of requests for the same resource by the same factor. Use longer intervals for capacity and cost metrics that change slowly, and reserve short intervals for health signals that drive alerts. Keep the template's intervals aligned with the granularity CloudWatch returns for each metric, so you do not pay for polls that return no new data.

Accounts and regions multiply polling

Each AWS account and each region you monitor repeats the discovery and polling cycle. A host configured for several accounts or regions makes calls against each one, and assume_role adds an STS call per session. Count the accounts and regions in scope before you choose a single Zabbix host or several. Ask whether your design should split monitoring by account so that each Zabbix host has a clear cost owner.

Cost Explorer queries carry their own charge

Cost Explorer data is requested through its own API, and AWS prices those requests separately from CloudWatch metrics. Pulling cost data on a short interval adds requests that do not change your monitored resources at all. Decide whether the cost items are needed in Zabbix or whether a finance tool already covers them, and set their interval to match how often finance reviews spend.

Who pays for each call

AWS bills the API request charges and CloudWatch metric charges to your account. Zabbix is open source and has no license fee, so the software itself adds no per-call charge, but the calls still cost money. Confirm current AWS pricing for your account and regions in the AWS pricing pages and your billing console, not from a figure in this guide. Ask a partner quoting the work to show the call estimate behind the polling plan.

Common AWS template failures and fixes

This table lists the failures teams most often hit when the AWS by HTTP template is first deployed or later changed, with the likely cause and the fix for each. Read it as a checklist: match the symptom in your Zabbix logs or item errors to a row, then confirm the cause against your IAM setup, region scope and Zabbix version before changing anything.

FailureLikely causeFix
Authorization errors on CloudWatch or discovery itemsThe IAM policy is missing an action such as cloudwatch:GetMetricData, cloudwatch:DescribeAlarms or ec2:DescribeInstancesAdd the missing actions listed for the template to the policy, then rerun discovery and check that items return values
sts:AssumeRole deniedWith assume_role, the Zabbix server or proxy identity lacks permission to call sts:AssumeRole, or the target role trust policy does not allow that principalGrant sts:AssumeRole on the target role and confirm the role's trust policy names the Zabbix identity
role_base fails outside AWSrole_base depends on the instance profile of the Zabbix server or proxy, which does not exist on hosts outside AWSUse access_key or assume_role for on-premises or other-cloud Zabbix, or move the proxy that polls AWS into an AWS instance
Template and Zabbix version mismatchThe 7.4 template requires Zabbix 7.4, while older template versions go back to Zabbix 6.0Match the template version to your server version, and confirm the version against the Zabbix AWS integration page before importing
Discovery returns no resourcesThe region macro, account or assumed role scope does not contain the resources, or the policy hides them from list callsCheck the region setting for each service, confirm the account being queried holds the resources, and test the list actions with the same credentials
Throttling from too many API callsMany discovered resources and short polling intervals multiply CloudWatch and describe calls across servicesLengthen polling intervals, limit discovery to needed services and regions, and spread checks across a proxy so the load is visible
Cost Explorer returns no dataCost Explorer needs its own permissions and a populated billing history, and results lag the time period queriedGrant the Cost Explorer read action, allow time for recent data to appear, and confirm the account has cost data enabled

Questions buyers ask before monitoring AWS with Zabbix

What drives the cost of setting up AWS monitoring with Zabbix?

The main cost driver is how many AWS accounts, regions and service types you want covered, and how much of the Zabbix side needs to be built around them. Scope sets the number of hosts, discovery rules and alert design to review. Your team pays for AWS accounts and Zabbix infrastructure, while a partner would be paid for planning, configuration and handover against a written scope. Ask any quote to break out account setup, authorization design, template configuration, alert tuning and documentation as separate lines, and to state what is one-time and what recurs.

How long does setup usually take?

Duration depends on scope: the number of AWS accounts, the services in use (EC2, RDS, S3, ELB, ECS, Lambda, AWS Backup and Cost Explorer), whether a Zabbix server or proxy already exists, and how many approvals the IAM and network changes need. No duration figure applies to every environment, so ask for a timeline tied to a written scope and milestones. Confirm the Zabbix version you will run first, because the 7.4 template requires Zabbix 7.4 while older template versions go back to Zabbix 6.0.

What does the work need from the AWS and Zabbix teams?

The AWS team needs to create an IAM policy that allows actions such as cloudwatch:GetMetricData, cloudwatch:DescribeAlarms and ec2:DescribeInstances, plus the identity that Zabbix will use. The Zabbix team needs to import the AWS by HTTP template, set the {$AWS.AUTH_TYPE} macro, configure the credential macros and confirm that the server or proxy can reach the AWS API endpoints. Both teams should agree on which accounts, regions and tags are in scope before discovery runs.

Can an internal team set this up alone?

Often yes, if the team already runs Zabbix and has IAM and network administration rights in the AWS accounts. The official template discovers services with low-level discovery and needs no external scripts, which keeps the build smaller. The harder parts are usually the authorization design, the polling and API cost plan, and alert tuning for each service. Teams without recent AWS or Zabbix template work should confirm they can review the IAM policy and the template version against the Zabbix documentation before production use.

How do I choose between access key, assume role and role-based authorization?

Choose by where the Zabbix server or proxy runs and how your organization manages credentials. The template's {$AWS.AUTH_TYPE} setting supports access_key, assume_role and role_base. Access keys are the simplest to set up but need secure storage and rotation. Assume role requires sts:AssumeRole, which suits cross-account access with short-lived credentials. The role_base option works only when the Zabbix server or proxy runs inside AWS, so it fits a self-hosted Zabbix in an AWS account. Confirm the choice against your security policy before the first discovery run.

What recurring AWS charges should I expect?

The main recurring cost to plan for is CloudWatch API usage, because the template calls the AWS APIs at each polling interval for every discovered service. More accounts, regions, resources and shorter intervals increase the number of calls. Ask your AWS team to estimate these charges from the AWS pricing for the APIs involved and the planned polling settings, and to compare them with any monitoring the account already runs. Cost Explorer and AWS Backup queries should be reviewed separately, since their usage can differ from CloudWatch.

Does the AWS template need external scripts or agents on AWS resources?

No. The official AWS by HTTP template needs no external scripts, because it collects data through the AWS APIs from the Zabbix server or a proxy. You do not need to install a Zabbix agent on each EC2 instance for this template. Confirm with your team whether any other monitoring of individual hosts is needed, since that is a separate design decision and not part of this template.

Which Zabbix versions does the AWS template support?

The 7.4 version of the AWS template requires Zabbix 7.4, and older template versions are available back to Zabbix 6.0. Zabbix 6.0 LTS limited support ends on 28 February 2027, so plan the Zabbix version before choosing a template version. Confirm the exact template version and its requirements on the official integration page before import, because template versions change over time.

How to test the AWS integration before go-live

Before go-live, confirm that every service the AWS by HTTP template discovers actually returns data. Open the discovered host for each service type (EC2 instances, ECS clusters, load balancers, Lambda functions, RDS instances, S3 buckets, AWS Cost Explorer and AWS Backup vaults) and check that its items show recent values rather than Not supported errors or empty results. Discovery alone proves little, because low-level discovery can create hosts and items even when the IAM identity lacks permission to read the underlying metric. Pick one resource per service type, compare its value in the Zabbix latest data view with the figure in the AWS console for the same time window, and record any item that stays empty. Also check the {$AWS.AUTH_TYPE} value on the host, since the test should run through the same authorization type you will use in production.

Next, test triggers against a controlled resource. Create a small, tagged test instance or a disposable load balancer target that you are allowed to stress, then cause a known condition such as stopping an instance or pushing a metric past its threshold. Confirm that the problem opens within the interval you expect and that it clears when you restore the resource. Review the threshold macros you changed, and confirm that the cost and quota items behave as expected, since Cost Explorer data updates on a slower cadence than CloudWatch metrics. Use the result to decide which triggers need a longer evaluation period before they page anyone.

Finally, verify access and volume. Review the IAM policy attached to the identity you configured and remove any action the template does not use, such as write actions on CloudWatch or broader EC2 describe permissions than the discovered services need. Then estimate API call volume from the number of hosts, items and polling intervals, and compare it with the AWS service quotas for CloudWatch and the other APIs involved in your account. Confirm that the alert path works end to end: the problem should reach the intended user group, chat channel or ticket queue, and the recovery message should close it. Document these results with the owner for each check, so the go-live decision rests on evidence.

How DeployOpen scopes and delivers AWS monitoring for Zabbix

DeployOpen plans, implements and hands over Zabbix AWS monitoring with the AWS by HTTP template inside your own infrastructure. The work starts with a written scope that fixes the AWS services, authorization type, IAM permissions and polling plan before any configuration begins.

How we scope

  • Inventory which EC2, RDS, S3, ELB, ECS, Lambda, AWS Backup and Cost Explorer resources you want discovered.
  • Choose the authorization type for {$AWS.AUTH_TYPE} and document why access key, assume role or role-based access fits your setup.
  • Confirm your Zabbix version meets the template requirement, including Zabbix 7.4 for the 7.4 template release.

How we build

  • Write the IAM policy with the CloudWatch and describe actions the template needs, limited to the accounts in scope.
  • Configure the AWS by HTTP template, macros and low-level discovery on your Zabbix server or proxy.
  • Tune polling intervals and discovery filters against your CloudWatch API call budget before enabling every service.

How we hand over

  • Deliver a written record of the IAM policy, credential handling, macro values and discovery scope.
  • Document the expected CloudWatch API cost drivers and the polling settings used to control them.
  • Walk your operations team through triggers, problem review and how to add a new AWS account or service.

How we support

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • Ongoing support, template upgrades and continuous testing are available as a retainer.
  • Retesting after IAM or template changes is included in the written scope where you request it, so access stays least-privilege.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.