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
2
votes
1 answer

Sensu: best practices to only handle a check after n occurences

I've recently upgraded from Sensu 0.24 to 1.2 and noticed that checks where triggered immediately to the referenced handlers. On the old checks (with v0.24), checks had an "occurences" attribute to filter out noise. I only want checks to be handled…
Tim Brandes
  • 2,103
  • 15
  • 14
2
votes
0 answers

How to use sensu-plugins-aws?

I am new to sensu and writing chef cookbooks to monitor AWS cloudwatch metrics using sensu-plugins-aws. I did`t understand from there README. How this plugin works? Is there any sample cookbooks using this plugin? How could I use this to monitor…
Rajiv
  • 582
  • 2
  • 8
  • 18
2
votes
1 answer

How can I check for repeated strings with check-tail plugin in Sensu?

I am using sensu and the check-tail.rb plugin to alert if any errors appear in my app logs. The problem is that I want the check to be successful if it finds 3 or more error messages. The solution that I came up with is using a regex like:…
Alex Efimov
  • 3,335
  • 1
  • 24
  • 29
2
votes
1 answer

Sensu check for jvm heap not working

I am facing issues with sensu-plugins-java. I have installed plugin in our server and I need to use check-java-heap-pcnt.rb to monitor the heap size in our server, but it is not showing proper output when I try to run the check locally. Here's how…
2
votes
0 answers

Using Docker with Sensu

i am a Novice in Docker and wanted to use Sensu for monitoring containers. I have set up a Sensu server and Sensu client ( where my Docker containers are running ) using the below material: Click [here]…
Sunil
  • 553
  • 1
  • 12
  • 30
2
votes
0 answers

how to implement Sensu Check for checking if Docker Container is running or not

Hi i am trying to implement https://github.com/sensu-plugins/sensu-plugins-docker/blob/master/bin/check-container.rb , in my sensu-client i have added the check-container.rb file and created a check in sensu-server with name…
2
votes
1 answer

How I can set a 'limit' of alerts on sensu?

I wish to set a limit of alerts from sensu. For instance, after 5 alerts from host X about disk capacity, I would like to stop receive alerts about the same issue. Is it possible? Thanks
dropped
  • 45
  • 4
2
votes
1 answer

Sensu with sensu-plugins-slack no sending message

On my Sensu server (non-enterprise) I first installed the https://github.com/sensu-plugins/sensu-plugins-slack plugin via sudo sensu-install -p slack. My configuration files located on my sensu server are as…
basickarl
  • 37,187
  • 64
  • 214
  • 335
2
votes
2 answers

Sensu check results history

I need history of "output" attribute for one check, but exploring Redis i understand that Sensu stores complete results of check only for last check execution? And history of status codes, but it is not important for me now. I have come with…
miki
  • 380
  • 6
  • 15
2
votes
2 answers

Ruby issues while running sensu checks

I am getting the below error while trying to run the sensu checks my ruby version is ruby 2.1.6p336 (2015-04-13 revision 50298) [x86_64-linux-gnu] /usr/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file --…
Narendra522
  • 167
  • 1
  • 5
  • 17
2
votes
2 answers

ganglia vs sensu vs icinga vs nagios

I am looking for a monitoring tool for hosts and services running under AWS. We are not looking for paid solutions, but we would like to run a monitoring server. In our cloud, we will launch and remove services (web servers, queues, etc) and hosts.…
pabloa98
  • 630
  • 7
  • 16
2
votes
1 answer

Sensu Handler Gives Undefined Method Error

We've recently updated our OpsGenie handler (opsgenie.rb) to the current community version, found here. Our handler is defined as: "opsgenie-pager" : { "type": "pipe", "command": "/etc/sensu/handlers/opsgenie.rb -j opsgenie-pager" } And our…
thomaswsdyer
  • 346
  • 1
  • 10
2
votes
2 answers

Monitoring several Raspberry Pi

I have several Raspberry Pi computers running, and they're currently using smtp to tell me what's going on Error reporting etc. But I'd really like to find a better way. I found Sensu, but perhaps it's overkill. Have you tried Sensu on a…
Paolo
  • 2,161
  • 5
  • 25
  • 32
1
vote
1 answer

Setting up a Sensu-Go cluster - cluster is not synchronizing

I'm having an issue setting up my cluster according to the documents, as seen here: https://docs.sensu.io/sensu-go/5.5/guides/clustering/ This is a non-https setup to get my feet wet, I'm not concerned with that at the moment. I just want a running…
Zach Smith
  • 11
  • 1
1
vote
1 answer

Trying to suppress Sensu alarms being resolve 30 secs after triggered

I have a Sensu deployed connected to pager duty. I can see that there are some Sensu alarms that are triggered but getting resolved after 30 seconds. Is there any way to "really" trigger an alarm only if it not resolved after [60 seconds]?
Shlomi A
  • 21
  • 2
1
2
3
11 12