Code Monkey home page Code Monkey logo

puppet-cloudmonitoring's Introduction

Install, configure, and launch the [Rackspace Cloud Monitoring Agent] (http://www.rackspace.com/knowledge_center/article/install-the-cloud-monitoring-agent) to enable Rackspace monitoring.

For Debian/Ubuntu, this module depends on puppetlabs-apt.

You can create a monitoring instance in one of two ways: either by providing a service agent monitoring token like this:

class { 'cloudmonitoring':
  monitoring_token => 'ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff.000000'  
}

...or by providing your username and API key to authenticate to Rackspace (via raxmon) like this:

class { 'cloudmonitoring':
  username => "myRackspaceUsername",
  apikey   => "myApiKey",
}

puppet-cloudmonitoring's People

Contributors

vickleford avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

puppet-cloudmonitoring's Issues

token.pp sed issue

Hi,

within token.pp had to change

command => "raxmon-agent-tokens-list | grep ${::fqdn} | sed -n 's/.id=([0-9a-f].[0-9])./\1/p' > ${agent_token_filename}",

to

command => "raxmon-agent-tokens-list | grep ${::fqdn} | sed -n 's/.id=([0-9a-f].[0-9])./\1/p' > ${agent_token_filename}",

And change,

command => "raxmon-entities-list | grep ${::fqdn} | sed -n 's/.id=([a-zA-Z0-9]) .*/\1/p' > ${agent_id_filename}",

to

command => "raxmon-entities-list | grep ${::fqdn} | sed -n 's/.id=([a-zA-Z0-9]) .*/\1/p' > ${agent_id_filename}",

OS: RedHat 6

python-pip should be a dependancy

Since my app is not a python app nor do I have any other systems that use pip - it would be helpful to move the installation of the python-pip package into puppet-cloudmonitoring.

I'll submit a patch later

On ubuntu, getting blank agent_id

My agent_id file is empty on Ubuntu 12.04, i'll need to look into how raxmon works to figure out why this is happening.

FWIW my token is properly set.

Couldn't start service

We try and start the service before the package is installed according to these logs, will investigate further

Dec 19 16:31:54 localhost puppet-agent[18424]: (/Stage[main]/Cloudmonitoring::Service/Service[rackspace-monitoring-agent]) Could not evaluate: Could not find init script or upstart conf file for 'rackspace-monitoring-agent'
Dec 19 16:31:54 localhost puppet-agent[18424]: (/Stage[main]/Cloudmonitoring::Service/Service[rackspace-monitoring-agent]) Failed to call refresh: Could not find init script or upstart conf file for 'rackspace-monitoring-agent'
Dec 19 16:31:54 localhost puppet-agent[18424]: (/Stage[main]/Cloudmonitoring::Service/Service[rackspace-monitoring-agent]) Could not find init script or upstart conf file for 'rackspace-monitoring-agent'

Submit to Puppet forge

I thought your module was totally whack for a while, mostly because of all of the crazy raxmon stuff going on - but I get it now, and understand why you needed to do it; although I think it sucks Rackspace haven't made forcing auto-generation of a new monitoring token possible in setup, since you can easily pass a username and api key.

In hindsight, this is a pretty decent implementation to a difficult problem (generating the token).

You should submit it to the forge so it can be installed by Librarian.

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.