Questions tagged [sensu]

Sensu is an open source monitoring framework written in ruby.

Sensu (www.sensuapp.org) is often described as the "monitoring router". Most simply put, Sensu connects "check" scripts run across many nodes with "handler" scripts run on one or more Sensu servers. Checks are used, for example, to determine if Apache is up or down. Checks can also be used to collect metrics (such as MySQL or Apache statistics). The output of checks is routed to one or more handlers. Handlers determine what to do with the results of checks. Handlers currently exist for sending alerts via email, as well as to various external services such as Pagerduty, IRC, Twitter, etc. Handlers can also feed metrics into Graphite, Librato, etc. Writing checks and handlers is quite simple and can be done in any language.

Key details:

  • (EventMachine, Sinatra, AMQP), ,
  • Excellent test coverage with continuous integration via travis-ci
  • Messaging oriented architecture. Messages are objects.
  • Ability to re-use existing Nagios plugins
  • Plugins and handlers (think notifications) can be written in any language
  • Supports sending metrics into various backends (Graphite, Librato, etc)
  • Designed with modern configuration management systems such as or in mind
  • Designed for cloud environments
  • Lightweight, less than 1200 lines of code
  • "Omnibus" style packages for easy, low-friction deployments!
170 questions
0
votes
0 answers

How to use Sensu email handler for contact routing

Suppose I am checking some metrics of AWS instances using sensu plugins and need to trigger email alerts only to a specific instance owner rather than a cloud operations team how can it be done. As per my research each check has a contact list but…
Murphy
  • 536
  • 6
  • 13
0
votes
1 answer

How can all clients be easily cleared from Sensu?

I'm trying to clear all of the clients and alerts from Sensu, but they keep coming back. With large numbers of clients, Uchiwa is unable to efficiently or reliably delete them all. I have also tried deleting all of the keys in Redis while sensu-api…
Neil
  • 24,551
  • 15
  • 60
  • 81
0
votes
1 answer

Unable to run sensu check in a docker-compose context

I am dockerizing sensu infrastructure. Everything goes fine except the execution of checks. I am using docker-compose according to this structure (docker-compose.yml): sensu-core: build: sensu-core/ links: - redis -…
rog
  • 3
  • 2
0
votes
1 answer

Parse a log file and send info to sensu

Is there a way to make a Sensu check that takes a .log file as input and parses it and returns selected info to InfluxDB. Im very new to this so maybe I didnt describe my problem the best way.
marxmacher
  • 591
  • 3
  • 20
0
votes
2 answers

How to customize PATH for sensu client?

I have a sensu client, I debugged its PATH in one of my check script, and it shows: /sbin:/usr/sbin:/bin:/usr/bin:/etc/sensu/plugins:/etc/sensu/handlers How can I customize this PATH for sensu, say: I want to add /usr/local/bin to the end of the…
Wayne Ye
  • 2,464
  • 3
  • 25
  • 29
0
votes
1 answer

Sensu check-log regex falsely passing

I am trying to set up a sensu check-log check. Logs look similar to the following: 2015-09-22 06:05:44,710 DEBUG log output here 2015-09-22 06:05:44,712 ERROR more log output here 2015-09-22 06:05:44,713 ERROR even more log output here 2015-09-22…
beardedeagle
  • 762
  • 1
  • 11
  • 24
0
votes
1 answer

Sensu Truncate Output String

I have this problem where sensu truncate the output string to the length about 260 characters. I've search for quite a while but cannot find the cause of this. If I output the result to sensu-client.log, the output string is not truncated. But when…
buhutz
  • 49
  • 1
  • 1
  • 5
0
votes
1 answer

sensu triggering handler when command returns status 0

I'm trying to get sensu to send an email when disks get full, using a community disk checking plugin. Sensu is triggering the handler even when the command that it executes returns a status of 0. Here is the check_disk.json file { "checks": { …
Brian Tarbox
  • 2,335
  • 1
  • 20
  • 30
0
votes
1 answer

Slack Sensu alert getting cut off

I am attempting to get some custom info in my Sensu Slack alerts via this plugin but it seems that adding the message_prefix is causing weirdness in the slack message formatting. For example, I would like the entire message with extra message prefix…
jmreicha
  • 3,155
  • 7
  • 32
  • 39
0
votes
1 answer

Sensu Monitoring - how to output on an OK

By default, Sensu does not output on a status of 0 or OK. Does anyone know how to change this to allow for output on an OK? http://sensuapp.org/docs/0.16/checks
Kevin Moore
  • 197
  • 3
  • 16
0
votes
1 answer

Analyze sensu log with logstash

Here is my sensu log in the server: {"timestamp":"2015-01-21T09:43:21.387501+0700","level":"info","message":"publishing check result","payload":{"client":"local.com","check":{"name":"instance_xxx_check","issued":1421808200,"command":"xargs -I{} sh…
Jin
  • 81
  • 1
  • 1
  • 10
0
votes
1 answer

Sensu Windows check configuration

I am following instructions on the Sensu page, under "Windows" section. I get following error: PS C:\Tools\sensu\embedded\bin> gem install sensu-plugin --no-rdoc --no-ri ERROR: Could not find a valid gem 'sensu-plugin' (>= 0), here is why: …
Daniil Shevelev
  • 11,739
  • 12
  • 50
  • 73
0
votes
1 answer

sensu standalone checks on remote servers that do not have rabbitmq access

I have a setup for monitoring right now where the alerts are coming in from thousands of nodes in a multitude of ways, the methods available are dictated by the network's owner due to various security mechanisms. I'm wondering if there's a way I…
0
votes
1 answer

When I try to start sensu service it fails

When I try to start my sensu service it fails and I get the following error in the log. It was working before and then when I did a restart I continued to get the following error. I am not sure how to debug it. Appreciate any help in the right…
user3001829
  • 24,412
  • 5
  • 17
  • 21
0
votes
1 answer

sensu server, client and api won't start

I have installed sensu on CentOS-6.5 using the instructions from http://sensuapp.org/docs/latest/guide but i cannot seem to start the sensu-server, sensu-client or even the sensu-api. Any suggestions would be highly appreciated. Below is the…
The Georgia
  • 1,005
  • 7
  • 23
  • 59