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

sensulib package interface as function param

I am trying to make use of this golang package: https://github.com/jefflaplante/sensulib I want to get all the events from the sensu API. I've followed the example code and modified it slightly so it works: config :=…
jaxxstorm
  • 12,422
  • 5
  • 57
  • 67
0
votes
1 answer

Sensu remediation does not work

I have configured the following check: "cron": { "command": "check-process.rb -p cron", "subscribers": [], "handlers": [ "mailer", "flowdock", "remediator"], "interval": 10, "occurences": 3, …
NicoleB
  • 55
  • 9
0
votes
1 answer

Rspec. The tested code is automatically started after test

I have a problem with the testing the Sensu Plugin. Everytime when I start rspec to test plugin it test it, but anyway at the end of test, the original plugin is started automatically. So I have in my console: Finished in 0 seconds (files took…
Piotr
  • 1
0
votes
1 answer

Sensu check-memory not working as per documentation

From the documentation https://github.com/sensu-plugins/sensu-plugins-memory-checks /opt/sensu/embedded/bin/check-memory.rb -w 2500 -c 3000 - Values in Megabytes My config.json has "command": "check-memory.sh -w 50000000 -c 100000000" top…
Siddharth
  • 9,349
  • 16
  • 86
  • 148
0
votes
1 answer

Sensu reports Found 0 matching processes for tomcat8

I am getting the following error CheckProcess CRITICAL: Found 0 matching processes; cmd //usr/bin/java * -Dcatalina.base=/opt/tomcat8 */ My config.json has the following check "command": "check-process.rb --pattern \"/usr/bin/java *…
Siddharth
  • 9,349
  • 16
  • 86
  • 148
0
votes
3 answers

Sensu Dashboard events contain stale events

I am trying to clear all the stale old renamed clients from my uchiwa dashboard. I am unable to clear them. Basically I renamed the clients with a new name, but the old clients keep showing up on the dashboard. I restarted sensu-server, uchiwa…
Siddharth
  • 9,349
  • 16
  • 86
  • 148
0
votes
2 answers

Why is AWS EC2 CPU usage shooting up to 100% momentarily from IOWait?

I have a large web-based application running in AWS with numerous EC2 instances. Occasionally -- about twice or thrice per week -- I receive an alarm notification from my Sensu monitoring system notifying me that one of my instances has hit 100%…
Saqib Ali
  • 11,931
  • 41
  • 133
  • 272
0
votes
1 answer

How do I roll sensu logs without restarting?

Sensu logs can fill up with large amounts of data. You can setup an outside infrastructure with logrotate to restart sensu software on a periodic basis to eliminate open file handles but we would prefer not to restart. Is there a way to roll the…
kevinc
  • 89
  • 1
  • 7
0
votes
0 answers

Sensu checks results event data

I am working on Sensu. I have installed sensu in CentOS. I need to get the event messages which is generated by Sensu checks.I have added some of the sensu community plugins like check-procs.rb,check-load.rb,check-banner.rb, metrics-ebs-volume.rb…
Mohamed Safi
  • 39
  • 2
  • 10
0
votes
1 answer

How can I eliminate Sensu notifications related to Passenger when actually the Nginx service is not running?

I have two Sensu Checks in place, one regarding Nginx and the other one regarding Passenger. First of one makes sure that Nginx service is running and the second one checks if Passenger processes are running. "nginx": { "command":…
NicoleB
  • 55
  • 9
0
votes
2 answers

Database queries as application healthchecks - management tool

Hey there fellow Stackoverflowers, In our company we have several application stacks running on different types of databases (MySQL, PostgreSQL, MS SQL, Azure SQL,..). For monitoring purposes we use some scripted queries on the databases of all…
0
votes
1 answer

How to query Sensu API with curl and auth credentials?

I'm trying to query Sensu API (any endpoint) using API credentials and curl, like the following: $ curl -a user:password http://sensu_api:url:4567/clients I'ts giving a: HTTP/1.1 401 Unauthorized These credentials are the ones configured in my api…
marianogg9
  • 184
  • 1
  • 13
0
votes
1 answer

Sensu : want both friendly user alarm and raw log to be sent in same e-mail alert

I am working on implementing Sensu monitoring ( work with graphite + e-mail alert).. everything is OK but only the email alert part. I managed to get the e-mail system to send out the alert but it in below…
swongr18
  • 33
  • 6
0
votes
1 answer

how to configure sensu keepalive to throw an alert to slack

I want to send out an slack alert. when a client fails a keep alive check. What is the process to do it? can I know how to do it? I am using hiroakis/docker-sensu-server docker image.
rama krishna
  • 17
  • 2
  • 9
0
votes
1 answer

Sensu and Graphite. Configure transmission through AMQP

I want to use Sensu as monitoring system and Graphite as backend for graphics. I wish to configure Sensu for receiving data from RabbitMQ via AMQP protocol that's why I configured Carbon in such way: # vim /etc/carbon/carbon.conf # Enable AMQP if…
ipeacocks
  • 2,187
  • 3
  • 32
  • 47