Giter Site home page Giter Site logo

nagios-cloudwatch-plugin's People

Contributors

l13t avatar olemchls avatar s0enke avatar sampierson avatar thewizarodofoz avatar wilrnh avatar

Stargazers

 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

nagios-cloudwatch-plugin's Issues

nagios-cloudwatch-plugin 0.2.6 throws "CLOUDWATCHMETRIC UNKNOWN: AttributeError"

I have tried installing the Nagios to Cloudwatch API given on below link:

https://pypi.python.org/pypi/nagios-cloudwatch-plugin/0.2.6

However, while executing the below script to check the output, i get below error:

./check_cloudwatch.py -R us-east-2 -n AWS/EC2 -m CPUUtilization -p 600 -d InstanceId=i-0305354ba3f9cd1b1 -w 0:75 -c 0:90
CLOUDWATCHMETRIC UNKNOWN: AttributeError: 'NoneType' object has no attribute 'get_metric_statistics'

I'm using following version of phython boto:
python-boto-2.34.0-6.el6.noarch

The credentials for the AWS cloudwatch access are stored in /etc/boto.cfg file

Can someone please check why this error is thrown ? Appreciate a quick response.

Empty but valid AWS result causes a failure

We use this plugin to check our AWS SQS dead queues (0 messages = good). It seems like Amazon responds with an empty result instead of a result with 0-values. In this case, the plugin gives us the following error:

WARNING:nagiosplugin.check:resource CloudWatchMetric did not produce any metric
CLOUDWATCHMETRIC UNKNOWN - no check results
resource CloudWatchMetric did not produce any metric (check.py:78)

The problem is, that this triggers a PROBLEM in our Icinga installation.

Is there a trick to avoid this error message? Do we need to set or unset a configuration flag? Do you know if there is a way to tell Amazon to give use 0-values in case of no data?

Example

I'm struggling to get this to work. An example of the syntax for someone unfamiliar with CloudWatch would be really helpful. e.g. given an EC2 instance ID, what would the command line look like to get CPUUtilization for that instance?

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.