Skip to content

sufiyanghori/bosun-sensu-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bosun-sensu-plugin

Sends sensu metric data to Bosun monitoring system using Bosun's /api/put endpoint

Files

  • bosun_handler.json
  • bosun_settings.json
  • bosun.rb

Installation

Copy bosun.rb to /etc/sensu/plugins folder.

Create a handler file bosun_handler.json in /etc/sensu/conf.d with the following content,

{
  "handlers": {
    "bosun": {
      "type": "pipe",
      "command": "/etc/sensu/plugins/bosun.rb"
    }
  }
}

Now, create a file bosun_settings.json in /etc/sensu/conf.d to configure Bosun API end point, replacing with your own configuration:

{
  "bosun" : {
     "bosun_host" : "http://192.168.17.154",
     "bosun_port" : 8070,
     "bosun_tags" : {"tag1":"tag_value","tag2":"tag_value"}
   }
}

Usage

Specify bosun handler in your metric definition,

example_metric.json

{
  "checks": {
    "metrics_name": {
      "command": "/opt/sensu/embedded/bin/metrics-name.rb",
      "handlers": ["bosun"],
      "interval": 600,
      "type": "metric",
      "standalone": false
    }
  }
}

Restart sensu server

About

Sensu handler plugin for Bosun

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages