• Stars
    star
    1
  • Language
  • Created over 7 years ago
  • Updated about 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Server (transport Redis)

api:
  image: sstarcher/sensu
  command: api
  environment:
    REDIS_PASSWORD: 666666
    REDIS_RECONNECT_ON_ERROR: "true"
  links:
    - redis

server:
  image: sstarcher/sensu
  command: server
  environment:
    REDIS_PASSWORD: 666666
    REDIS_RECONNECT_ON_ERROR: "true"
  links:
    - redis
    - api

uchiwa:
  build: uchiwa/
  restart: on-failure
  links:
    - api:sensu
  volumes:
    - ./uchiwa/config/uchiwa.json:/etc/uchiwa/config.json
  ports:
    - '3001:3000'

redis:
  image: tutum/redis
  environment:
      REDIS_PASS: 666666
  ports:
    - '6379:6379'

Client (transport Redis)

repo:
echo '[sensu]
name=sensu
baseurl=https://sensu.global.ssl.fastly.net/yum/$releasever/$basearch/
gpgcheck=0
enabled=1' | sudo tee /etc/yum.repos.d/sensu.repo

/etc/sensu/config.json:

{
  "client": {
    "name": "client-host01",
    "address": "server01",
    "subscriptions": [
      "ALL"
    ]
  }
}

/etc/sensu/conf.d/redis.json:

{
  "redis": {
    "host": "server01",
    "port": 6379,
    "password": "666666"
  }
}

/etc/sensu/conf.d/transport.json:

{
  "transport": {
    "name": "redis"
  }
}

Server customization

Install custom plugins inside container

/opt/sensu/embedded/bin/gem sources --remove https://rubygems.org/
/opt/sensu/embedded/bin/gem sources --add http://rubygems.org/
/opt/sensu/embedded/bin/gem install sensu-plugins-slack
additional system deps (for sensu-plugins-http)
apt-get install build-essential

Slack handler config

/etc/sensu/handlers/slack-handler.json:

{
  "handlers": {
    "slack": {
      "type": "pipe",
      "command": "handler-slack.rb",
      "severites": ["ok", "critical", "unknown", "warning"]
      }
    },
    "slack": {
      "webhook_url": "https://hooks.slack.com/services/HIDDEN/SECRET",
      "template" : "",
      "dashboard": "http://HOST:PORT/#/client/$DataCenter/"
  }
}

EMail handler config (sensu-plugins-mailer)

/etc/sensu/handlers/mailer-handler.json:

{
  "mailer": {
    "admin_gui": "http://example.com:3000/",
    "mail_from": "[email protected]",
    "mail_to": [
        "[email protected]"
    ],
    "smtp_address": "smtp.gmail.com",
    "smtp_port": "465",
    "smtp_domain": "gmail.com",
    "smtp_use_tls": "true",
    "smtp_username" : "[email protected]",
    "smtp_password" : "p@ssw0rd"
  },
  "handlers": {
    "mailer": {
      "type": "pipe",
      "command": "handler-mailer.rb"
    }
  }
}
make slack as a default notification handler

/etc/sensu/handlers/default-handlers.json:

{
  "handlers": {
    "default": {
      "type": "set",
      "handlers": [
        "slack",
        "mailer"
      ]
    }
  }
}

More Repositories

1

goimports-reviser

Right imports sorting & code formatting tool (goimports alternative)
Go
459
star
2

proxy-chrome-extension

Chrome plugin to setting up a proxy settings via plugin's UI or by browser's address bar
JavaScript
20
star
3

asterisk-ami-api

Call, SMS, CDR APIs for Asterisk
Go
14
star
4

gostruct2graphql

Go structure to GraphQL object
Go
12
star
5

redis-mock-template

Redis Mock (Stateful) for Java based apps & tests
Java
6
star
6

meteor

Lite CI/CD tool with Slack notifications
Go
5
star
7

asterisk-dialer

JavaScript
5
star
8

liqueur-sensor

Firmware for water leakage sensor with low battery control based on Attiny13
C++
3
star
9

idrac

Shell
2
star
10

kafka-client

2
star
11

docker

Nginx
2
star
12

gdb

Data backup tool for MySQL databases, local files and directories to S3 or DigitalOcean Space
Go
2
star
13

pincode

Java
1
star
14

ansible-paybooks

1
star
15

BigData

Java
1
star
16

elk

ELK + logspout
Go
1
star
17

grpc-java-test

Java
1
star
18

joomla-extensions

PHP
1
star
19

cm_api_client

Java
1
star
20

flux-test

JavaScript
1
star
21

goutils

Go
1
star
22

vote-bot

telegram bot for voting based on AWS DynamoDB
Go
1
star
23

thrift-logger

Thrift log decorator library
Java
1
star
24

AMBARI

JavaScript
1
star
25

vue-dart-template

HTML
1
star
26

xml-creator

Go
1
star
27

logger

Go
1
star
28

fs-automation

Go
1
star
29

http-debug-server

Go
1
star
30

RabbitMQProducer

Go
1
star
31

nginx_modules

C
1
star
32

VIDEO_PROJECTS

Java
1
star
33

jwt-example

Go
1
star
34

homebrew-tap

Homebrew repository for different tools
Ruby
1
star
35

go-with-sonar

Dockerfile
1
star
36

cfengine-client

Java
1
star
37

ckafka

Go
1
star
38

graphQlGoTest

Go
1
star
39

openvox-sms-ui

JavaScript
1
star
40

spring-redis-tpl-example

Example of redis-mock-template usage for Medium article
Java
1
star
41

check-openvox-gsm

Tool to check GSM signal on OpenVox
Go
1
star
42

POLYCOM

Java
1
star
43

json-check

Python
1
star