sensu

Sensu uses the embedded ruby

  • /etc/default/sensu
    EMBEDDED_RUBY=true
  • /opt/sensu/embedded/bin/gem list
  • /opt/sensu/embedded/bin/gem install sensu-plugin

mailer.rb handler set up

  • /etc/sensu/handlers/mailer.rb downloaded from sensu-community-plugin.
  • /etc/sensu/conf.d/mailer.json for configuration of mailer.rb
  • Use this handler “mailer” in a check such as /etc/sensu/conf.d/check_apache.json
  • {
    “checks”: {
    “apache_check”: {
    “handlers”: [“mailer”],
    “command”: “/etc/sensu/plugins/check-apache.rb”,
    “interval”: 60,
    “subscribers”: [ “web” ]
    }
    }
    }
Advertisements
This entry was posted in sensu and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s