Giter Site home page Giter Site logo

nagios-cloudwatch's People

Contributors

maglub avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

nagios-cloudwatch's Issues

Custom variables not defined in management packs

The management packs for op5 Monitor are not configured to prompt for the custom variables ($_HOSTEC2_ID$, $_HOSTEC2_REGION$) used in the check commands.

This results in a host wizard that does not ask for these IDs and therefore failing checks.

Some invalid threshold values in op5 management packs

The thresholds for the following service checks need to be set to 0, not 1 (they will never be triggered as the arguments are using soft threshold config, AGR+)

  1. StatusCheckFailed_Instance (EC2)
  2. StatusCheckFailed_System (EC2)
  3. UnHealthyHostCount (ELB)

Add Billing monitoring

  • Documentation on how to enable monitoring for billing in AWS
  • Implement feature in check script
  • Create check_command examples
  • Document usage

No specific error message for faulty keys

If the plugin is used with a pair of faulty keys it does not throw a describing error message like "Invalid access or secret key", but one that looks something like this:

ERROR: Could not get cloudwatch stats: NetworkOut
./check_cloudwatch.rb:838: undefined method `[]' for nil:NilClass (NoMethodError)

Support IAM Instance Roles

Would be great to be able to use the Role of the EC2 instance you're running on in order to avoid the need for credentials to be stored anywhere. Seems pretty simple to support - I've done a very quick and dirty local hack to accomplish this.

Timestamp inconsistency for --powerstate

The --powerstate outputs a different timestamp (different timezone) than the other metrics, since the script takes the timestamp from the local server, not from the AWS metrics. This since there are no timestamps delivered in the metric data.

Option 1: Check which timezone the instance resides in, and convert the time to this.
Option 2: Remove the timestamp, since the information is redundant. The info is shown in the "last checked" column in the web gui of most nagios installations.

Pass access and secret keys as arguments for the commands in the management pack

For portability and Nagios-ness I would recommend using custom variables for the access and secret keys. This would allow the user to enter these during the host wizard and remove the need to create a config.yml file on the host system.

It could also be great for people running managed environments where every instance might not be using the same AWS API keys for monitoring.

Bug: There is no --list-instnaces for --elb

[email protected]:/Users/malu/dev/nagios-cloudwatch $./check_cloudwatch.rb --elb --list-instances
Name: vpn-v001ec2 Id: i-91f62199 privateIp: 192.168.99.6 State: Zone: running
Name: kmg-test002ec2 Id: i-7ef62176 privateIp: 192.168.99.10 State: Zone: running
Name: win-test003ec2 Id: i-9956e691 privateIp: 192.168.99.20 State: Zone: stopped
Name: hilti-azb-v001ec2 Id: i-8e6bef86 privateIp: 10.5.2.10 State: Zone: running
Name: hilti-aza-v001ec2 Id: i-1b7bde10 privateIp: 10.5.1.10 State: Zone: running

--no-run-check does not seem to do anything

I was unable to see any difference in execution time of the script when the --no-run-check flag was used. If I enabled debugging I could still see something like this:

  • Entering: EC2InstanceRunning
    • Checking running state of instance-id
    • Done checking running state of instance-id (running)

Is this feature currently implemented?

Monitor custom metrics

A user contacted me, asking for custom metric monitoring.

Hi,

Im implementing your cloudwatch plugin for our amazon environment, and im having some issues with collecting metrics from custom metrics I have added to my instances.

For instance amazon has not added RAM usage, but this is something that I have added, and can see in cloudwatch.

If I take one of those instances, and --list-metrics from it, that metric is not available.

Have you done anything like this before with custom metrics?

Regards,

Henrik Hjelm

He added the following link in a follow up email:

http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/mon-scripts-perl.html

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.