Code Monkey home page Code Monkey logo

zabbix_aws_template's Introduction

Zabbix AWS Monitoring Templates

This template collection is for effective monitoring AWS(Amazon Web Services) with Zabbix.

What templates?

  • Amazon CloudWatch Metrics monitoring Template
  • AWS Service Health Dashboard monitoring Template
  • AWS EC2 auto scaling monitoring Template
  • Amazon SNS monitoring Template (comming soon...)
  • AWS Lambda function execution action script (comming soon...)
  • Other templates are under considering.

Details

Please check wiki pages.

License

Licensed under the Apache License, Version 2.0. The Apache v2 full text is published at this link(http://www.apache.org/licenses/LICENSE-2.0).

Contact

VINX CORP.

Technical support service is provided by VINX CORP.

https://www.vinx.co.jp/awszabbix/index.html


Copyright 2016 TIS Inc.

zabbix_aws_template's People

Contributors

atkkta avatar ike-dai avatar komuai avatar miyo-kzz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zabbix_aws_template's Issues

why occured error?

Traceback (most recent call last):
File "cloudwatch_zabbix.py", line 247, in
aws_zabbix.send_metric_data_to_zabbix()
File "cloudwatch_zabbix.py", line 192, in send_metric_data_to_zabbix
send_data = json.loads(r'{"request":"sender data","data":[],"clock":%s,"ns":%s }' % (sec, ns))
File "/usr/lib64/python2.7/json/init.py", line 339, in loads
return _default_decoder.decode(s)
File "/usr/lib64/python2.7/json/decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib64/python2.7/json/decoder.py", line 380, in raw_decode
obj, end = self.scan_once(s, idx)
ValueError: Expecting , delimiter: line 1 column 61 (char 60)

tzname PDT identified but not understood in Dashboard script

/usr/lib/python2.7/site-packages/dateutil/parser/_parser.py:1204: UnknownTimezoneWarning: tzname PDT identified but not understood.  Pass `tzinfos` argument in order to correctly return a timezone-aware datetime.  In a future version, this will raise an exception.
 category=UnknownTimezoneWarning)
response":"success","info":"processed: 0; failed: 0; total: 0; seconds spent: 0.000002"}
_parser.py 

 elif res.tzname:
            # tz-like string was parsed but we don't know what to do
            # with it
            warnings.warn("tzname {tzname} identified but not understood.  "
                          "Pass `tzinfos` argument in order to correctly "
                          "return a timezone-aware datetime.  In a future "
                          "version, this will raise an "
                          "exception.".format(tzname=res.tzname),
                          category=UnknownTimezoneWarning)
            aware = naive

non-standard zabbix ports (minor)

I changed zabbix server not to listen on port 10051 after getting too many bots probing, looking for exploitable zabbix instances.
In your scripts/AWS_Service_Health_Dashboard.py + templates it seems the zabbix_port is hardcoded to 10051. I can change the hardcoded value, not a big thing, just a small feature request.

json.loads() fails in get_rss

When using scripts/AWS_Service_Health_Dashboard.py I see a lot of noise to stderr:

  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 763, in run
    self.__target(*self.__args, **self.__kwargs)
  File "./AWS_Service_Health_Dashboard.py", line 37, in get_rss
    send_data = json.loads('{"request":"sender data","data":[],"clock":%s,"ns":%s }' % (sec, ns))
  File "/usr/lib/python2.7/json/__init__.py", line 338, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python2.7/json/decoder.py", line 366, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python2.7/json/decoder.py", line 382, in raw_decode
    obj, end = self.scan_once(s, idx)
ValueError: Expecting , delimiter: line 1 column 61 (char 60)

I believe what's going on is json.loads() is given a string like this:
{"request":"sender data","data":[],"clock":1495816085,"ns":067420959 }
... but the number data-type in JSON is treated as octal if it starts with '0' (which I'm sure you don't intend) and an octal number that contains '8' or '9' is invalid. You could try ns.lstrip('0') instead?

I have add issue.

Zabbix version : 3.4
OS : Amazon Linux
Python : 2.7 (add boto3)

I think problem this zabbix template.

Can you help, please?

issue
issue2

This didn't work with ALB

So i tried this tool and it worked perfectly with ELB.
I also want it work with ALB, how can i do that?
Do i have to change anything in cloudwatch_zabbix.py?

AWS Health Dashboard script no error no data to process

./AWS_Service_Health_Dashboard.py -i 3600 -b 'NA' '-m' "True"
{"response":"success","info":"processed: 0; failed: 0; total: 0; seconds spent: 0.000006"}
{"response":"success","info":"processed: 0; failed: 0; total: 0; seconds spent: 0.000004"}
{"response":"success","info":"processed: 0; failed: 0; total: 0; seconds spent: 0.000002"}
{"response":"success","info":"processed: 0; failed: 0; total: 0; seconds spent: 0.000003"}

2018-08-24 22:14:14 | {"response":"success","info":"processed: 0; failed: 0; total: 0; seconds spent: 0.000004"}
{"response":"success","info":"processed: 0; failed: 0; total: 0; seconds spent: 0.000002"}{"response":"success","info":"processed: 0; failed: 0; total: 0; seconds spent: 0.000004"}{"response":"success","info":"processed: 0; failed: 0; total: 0; seconds spent: 0.000002"}{"response":"success","info":"processed: 0; failed: 0; total: 0; seconds spent: 0.000002"}{"response":"success","info":"processed: 0; failed: 0; total: 0; seconds spent: 0.000004"}

print htmldata

<addinfourl at 140176301032584 whose fp = <socket._fileobject object at 0x7f7d56a09750>>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.