You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Alright, im super confused. Here is what I have so far:
Install boto on zabbix server via pip
- Installed (couldn't use pip command on Ubuntu)
Create cloudwatch directory in "/opt/zabbix/cloudwatch" and do a git pull from this repository.
- I created the directory and did a git pull to download the contents to the directory
Add AWS account credential to the configuration file "conf/awscred".
- I created a new IAM account (CLI only) and gave it "ReadOnlyAccess" for all AWS services. I then named the account in the [] brackets to match what I am using in the cron job (treenonprod). I then added in the access ID and secret key values.
Find the metrics from AmazonCloudWatch Developer Guide and add metrics to the configuration file "conf/aws_services_metrics.conf".
- I didn't need to do this as your template already included all the things I needed.
Create a zabbix template for an AWS service, then create items with metrics key by using zabbix trapper type. AWS Metric Zabbix Trapper Item Key Format without Discovery or AWS Metric Zabbix Trapper Item Key Format with Discovery.
- Here's where I started to get confused. Can I not just import your template, assign it to a host and then let the scripts populate the data?
Create a new host and linked with the template.
- I created a Zabbix host for an ELB in AWS (named the same as the AWS object), linked the ELB template to it successfully
Create a cloudwatch bash wrapper script for cron job.
- I am using the cron.ELB.sh script in /opt/zabbix/cloudwatch/cron.d.
Create a new cron job to send the cloudwatch metrics to the host.
- I created a new crontab via "crontab -e" and pasted in the following:
Currently the cron job is returning nothing to my Zabbix host in "latest data". I tried also running the script with arguments manually without a cron job and get this error:
What the hell do I do next? I don't know what I'm missing. Please advise.
The text was updated successfully, but these errors were encountered:
Alright, im super confused. Here is what I have so far:
Install boto on zabbix server via pip
- Installed (couldn't use pip command on Ubuntu)
Create cloudwatch directory in "/opt/zabbix/cloudwatch" and do a git pull from this repository.
- I created the directory and did a git pull to download the contents to the directory
Add AWS account credential to the configuration file "conf/awscred".
- I created a new IAM account (CLI only) and gave it "ReadOnlyAccess" for all AWS services. I then named the account in the [] brackets to match what I am using in the cron job (treenonprod). I then added in the access ID and secret key values.
Find the metrics from AmazonCloudWatch Developer Guide and add metrics to the configuration file "conf/aws_services_metrics.conf".
- I didn't need to do this as your template already included all the things I needed.
Create a zabbix template for an AWS service, then create items with metrics key by using zabbix trapper type. AWS Metric Zabbix Trapper Item Key Format without Discovery or AWS Metric Zabbix Trapper Item Key Format with Discovery.
- Here's where I started to get confused. Can I not just import your template, assign it to a host and then let the scripts populate the data?
Create a new host and linked with the template.
- I created a Zabbix host for an ELB in AWS (named the same as the AWS object), linked the ELB template to it successfully
Create a cloudwatch bash wrapper script for cron job.
- I am using the cron.ELB.sh script in /opt/zabbix/cloudwatch/cron.d.
Create a new cron job to send the cloudwatch metrics to the host.
- I created a new crontab via "crontab -e" and pasted in the following:
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/opt/zabbix/cloudwatch/cron.d
ELB monitoring
*/5 * * * * root cron.ELB.sh "adfs-int-elb" "adfs-int-elb" "monitor.lendingtree.com" "treenonprod" "us-east-1" &>/dev/null
=============================================================
Currently the cron job is returning nothing to my Zabbix host in "latest data". I tried also running the script with arguments manually without a cron job and get this error:
What the hell do I do next? I don't know what I'm missing. Please advise.
The text was updated successfully, but these errors were encountered: