- Notifications
You must be signed in to change notification settings - Fork0
Sensu handler plugin for Bosun
License
NotificationsYou must be signed in to change notification settings
sufiyanghori/bosun-sensu-plugin
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Sends sensu metric data to Bosun monitoring system using Bosun's/api/put
endpoint
- bosun_handler.json
- bosun_settings.json
- bosun.rb
Copybosun.rb
to/etc/sensu/plugins
folder.
Create a handler filebosun_handler.json
in/etc/sensu/conf.d
with the following content,
{"handlers": {"bosun": {"type":"pipe","command":"/etc/sensu/plugins/bosun.rb" } }}
Now, create a filebosun_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"} }}
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