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
1
vote
0 answers

Sensu command runs via command line, but fails through sensu

I am having an issue where a Sensu check I am using does not work when it runs using the sensu-client, but if I run the same command that the check issues, I get good results with no errors. I'm attaching screenshots of Sensu running the command and…
Cameron
  • 11
  • 1
1
vote
1 answer

Sensu Reports `require': cannot load such file -- net/ping

I have installed sudo gem install net-ping on 3 machines, same setup. But one server just refuses to accept that net-ping is installed. What am I missing ? I am trying to configure sensu that uses check-ping.rb Here is what sensu…
Siddharth
  • 9,349
  • 16
  • 86
  • 148
1
vote
0 answers

sensu-plugins-aws ec2-node do not use credential keys

Trying to automate decommission in sensu of shuted\terminated instances in AWS via ec2_node handler in sensu-aws plugin. i dont have AIM role assigned to instance and dont have credential file with AWS access for sensu user. i want to use json…
1
vote
1 answer

Sensu: I want to ignore “OK” notification

I'm using Sensu to see if error log exists in log files with check-log.rb.(https://github.com/sensu-plugins/sensu-plugins-logs/blob/master/bin/check-log.rb) I think we don't need "OK" notification when it comes to checking error log, so I'd like not…
tsuda7
  • 413
  • 1
  • 6
  • 25
1
vote
1 answer

Sensu: client socket input (how-to print an event)

I am trying to create an event using the "Client socket input" described here: https://sensuapp.org/docs/latest/reference/clients.html#client-socket-input when i do, from bash: echo '{"status": 1, "output": "x.x.x.x/22 [AS0000] | NotFound. No VRP…
nskalis
  • 2,232
  • 8
  • 30
  • 49
1
vote
1 answer

How to make uchiwa dashboard url be able to adjust threshold?

me again.. I had done all the sensu-uchiwa-graphite set up. And i get a new request,:(. Rather than go to change the threshold in check.json file on sensu server..any plugin at the UCHIWA that this adjustment will be shown in Uchiwa dashboard? I…
swongr18
  • 33
  • 6
1
vote
1 answer

Ruby issue while configuring sensu checks

I have sensu server and sensu-client Installed on one machine (centos) and installed the the plugins through gem. Everything was good when I run the check_ping.rb from the command line, but When I configure the same check in /etc/sensu/conf.d/ and…
IMRAN SHAIK
  • 615
  • 2
  • 6
  • 11
1
vote
2 answers

Unable to start uchiwa (sensu dashboard)

Attempt to start uchiwa fails with no error when starting via init.d script and no process. No output in /var/log/uchiwa.log Output found in /var/log/uchiwa.err: /opt/uchiwa/bin/uchiwa: 1: /opt/uchiwa/bin/uchiwa: cannot create ^A: Permission…
kaizenCoder
  • 2,211
  • 6
  • 33
  • 64
1
vote
3 answers

How to monitor Python scripts using Sensu?

I would like to use Sensu Core to monitor python scripts and I am confused how to do it. From Sensu documentation this requires Sensu Checks. In the provided example ruby script checks that chef-client is running: #!/usr/bin/env ruby # get the…
Greg
  • 8,175
  • 16
  • 72
  • 125
1
vote
2 answers

Filter every n:th event

Is there any way of creating a filter that filters every n:th event where n is different for different checks. I.e I would like to specify a field in each check such that I can control the filter frequency for different checks. I have some checks…
Kobbe
  • 809
  • 5
  • 16
1
vote
1 answer

Sensu Client for OpenBSD OS

we are migrating or monitoring from nagios to sensu and part of this is moving our openbsd servers to sensu. i know there is no native client for this but i have been wondering if anyone has tried and succeeded at this. couldn't find anything much…
Ofer Ziss
  • 31
  • 1
1
vote
1 answer

Redis issue with snapshot - Error moving temp DB file on the final destination: Operation not permitted

I've a working setup with redis and sensu. Suddenly I'm getting redis server issue while its trying to take RDB snapshots. [2830] 27 Dec 06:25:50.648 * 10000 changes in 60 seconds. Saving... [2830] 27 Dec 06:25:50.649 * Background saving started by…
bagui
  • 844
  • 4
  • 18
  • 37
1
vote
2 answers

Whats the difference between sensu-plugin and sensu-extension

Could you please help me understand the difference between sensu-plugin and sensu-extension. I believe I can create sensu-plugin 'checks' as ruby gem. Can I also create 'check' extension as a gem and just install it in sensu ruby?
Ankush Ganatra
  • 500
  • 5
  • 23
1
vote
2 answers

How do I find out which version of Sensu I am using on linux box?

Is there a command I can type in linux that will show the current version of Sensu that is installed?
user2841324
  • 11
  • 1
  • 3
1
vote
0 answers

Sensu does not seem to make a connection to a client

I installed Sensu 0.18.1 on Debian 7.8.0 by using chef. Installation seems completed successfully, but for some reason client does not appear on Uchiwa dashboard. The server log says "unsubscribing from keepalive and result queues" warning. I'm not…
junet
  • 57
  • 10