Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need Assistance with Setup #47

Open
scrull opened this issue Nov 20, 2018 · 0 comments
Open

Need Assistance with Setup #47

scrull opened this issue Nov 20, 2018 · 0 comments

Comments

@scrull
Copy link

scrull commented Nov 20, 2018

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:

image

image

What the hell do I do next? I don't know what I'm missing. Please advise.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant