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 check-process.rb gives CheckProcess:OK for any -p pattern passed, which is not a current active process

There is no process named abc. I am pretty new to Sensu, please help is needed. The same check when executed on my sensu-client directly gives the following result: root@pune-4755-col-stag-1:~# sudo check-process.rb -p /abc/ -W 1 CheckProcess…
1
vote
1 answer

Sensu, Google Chat Handler for Multi Chat Rooms

Is there any google chat module to send alerts via sensu's google chat handler to more than one room (chat room)? Ex: As like in Slack we have multi-slack-handler.rb handler is there to trigger alerts on multiple channels via subscriptions which we…
1
vote
0 answers

CheckMysqlReplicationStatus CRITICAL: undefined method `encoding' for nil:NilClass

sensu CheckMysqlReplication.rb on db servers returns undefined method `encoding' for nil:NilClass when executed in mysql 8.0.13-4 with latin1 as the default character set name. Prior to this error, the CheckMysqlReplication.rb worked perfectly ok on…
gonja_dude
  • 11
  • 1
1
vote
1 answer

How do I get a Sensu Go check to show up as a status panel on Grafana?

As described in the Sensu documentation, I've written a custom check script that returns 0 for OK, 1 for Warning, 2 for Critical, and prints out the description of the status. It shows up as expected on Sensu's built-in web interface, but I'm not…
user13803
  • 95
  • 6
1
vote
2 answers

Monitoring Agent for Sensu, Librato

Can we have a single agent/clients for following monitoring tools, Sensu Librato Nagios NewRelic Thank you.
1
vote
1 answer

How to go about integration of moogsoft with Sensu

I am exploring Moogsof's new tool and havent had much time looking into the tool. I have to integrate all alerts and events monitored on Sensu to Moogsoft's HTTP/ alert handler tool. I wanted to know if this must be done through: -RESTful API or…
1
vote
1 answer

Sensu transport handler define max record count

I have some sensu metric check with transport handler defined on it. My transport is Redis and I can see that every metric cycle new record added to redis, however I would like to define max records limit or record TTL so I won't store endless…
Evgeny Makarov
  • 1,417
  • 1
  • 21
  • 41
1
vote
1 answer

Creating a tty for Sensu with Python

Hello guys I'm trying to create a sensu check in python that requires a shell but is currently giving me a tty error. cmd = '/usr/bin/pstorage stat |grep %s |grep failed' % hostname output = subprocess.Popen(cmd, stdout=subprocess.PIPE,…
Royce
  • 45
  • 9
1
vote
1 answer

Sensu subdue alerts outside working hours and weekends

I want to subdue some sensu checks outside working hours and weekends. The documentation is not clear on how it works. Sensu subdue documentation 'subdue' => { 'days' => { 'all' => [ { …
Radu
  • 21
  • 3
1
vote
1 answer

sensu client subscriptions non-responding

I have setup sensu-server and client successfully and all is working except one thing . in this image you can see that there are alerts for mysql and web ports.but I have given only "mysql" subscription right now in my client.json file in my client…
vishal
  • 1,646
  • 5
  • 28
  • 56
1
vote
2 answers

Ignore Checks Based on Dependencies on Uchiwa using Sensu

I'm currently using sensu and Uchiwa in an attempt to get rid of Zabbix, the problem is some checks persist even though they're dependent on other check. For example: I have a check that checks if the vpn process is active: "vpn-process": { …
Rebeca Maia
  • 438
  • 4
  • 16
1
vote
2 answers

How to create a sensu check

I have created a shell script. I want sensu to run that script on the selected node that are identified using the chef roles. I want to create a sensu check to monitor this particular check using the shell script.
Verma15
  • 11
  • 3
1
vote
1 answer

handling notification time with sensu

I'm using Sensu for alerting. If anything goes wrong with any of service then it would trigger the alert and send us notification mail. I've just come across one document where I can change the notification time outside business hours, this is the…
Rahul
  • 402
  • 2
  • 9
  • 23
1
vote
1 answer

How do I alert orphaned Chef clients using Sensu?

I'm trying to find a good plugin to alert chef clients in my environment that have not checked into the Chef server, even if the clients are not in the pem file. I found this,…
Devon
  • 307
  • 3
  • 13
1
vote
1 answer

Ansible - automate the deletion of hosts in Sensu

I'm working with Ansible's inventory file and the sensu-cli (interactes with Sensu's API) Once a server is removed from inventory that server still sticks around until it's manually deleted with an API call. This workflow works but it's not ideal in…
hfranco
  • 943
  • 4
  • 16
  • 26
1 2
3
11 12