All Projects → sanathp → Statusok

sanathp / Statusok

Licence: other
Monitor your Website and APIs from your Computer. Get Notified through Slack, E-mail when your server is down or response time is more than expected.

Programming Languages

go
31211 projects - #10 most used programming language

Projects that are alternatives of or similar to Statusok

Uptime Monitor App
A PHP application to monitor uptime and ssl certificates
Stars: ✭ 205 (-86.53%)
Mutual labels:  slack, notifications, monitor
Laravel Failed Job Monitor
Get notified when a queued job fails
Stars: ✭ 582 (-61.76%)
Mutual labels:  slack, notifications, monitor
Glass Isc Dhcp
Glass - ISC DHCP Server Interface
Stars: ✭ 486 (-68.07%)
Mutual labels:  slack, monitor
Laravel Server Monitor
Don't let your servers just melt down
Stars: ✭ 595 (-60.91%)
Mutual labels:  notifications, monitor
Vigil
🚦 Microservices Status Page. Monitors a distributed infrastructure and sends alerts (Slack, SMS, etc.).
Stars: ✭ 804 (-47.17%)
Mutual labels:  slack, monitor
Alertmanager
Prometheus Alertmanager
Stars: ✭ 4,574 (+200.53%)
Mutual labels:  slack, notifications
Monitor Table Change With Sqltabledependency
Get SQL Server notification on record table change
Stars: ✭ 459 (-69.84%)
Mutual labels:  notifications, monitor
Notify
A dead simple Go library for sending notifications to various messaging services.
Stars: ✭ 727 (-52.23%)
Mutual labels:  slack, notifications
SAPNetworkMonitor
Based on niping for sap network monitoring QQ群: 651878914
Stars: ✭ 48 (-96.85%)
Mutual labels:  monitor, monitoring-server
Craft Brief
Quick, easy, and customizable user-group notifications for Craft CMS.
Stars: ✭ 47 (-96.91%)
Mutual labels:  slack, notifications
Synology Notifications
Synology notifications service
Stars: ✭ 47 (-96.91%)
Mutual labels:  slack, notifications
Jonsnow
App Store/Google Play review watcher, deliver new reviews to slack channel
Stars: ✭ 65 (-95.73%)
Mutual labels:  slack, monitor
Chronos
📊 📊 📊 Monitors the health and web traffic of servers, microservices, and containers with real-time data monitoring and receive automated notifications over Slack or email.
Stars: ✭ 347 (-77.2%)
Mutual labels:  slack, notifications
Monitoror
Unified monitoring wallboard — Light, ergonomic and reliable monitoring for anything.
Stars: ✭ 3,400 (+123.39%)
Mutual labels:  monitor, monitoring-server
slack-texts
SMS notifications for Slack groups
Stars: ✭ 19 (-98.75%)
Mutual labels:  notifications, slack
Diun
Receive notifications when an image is updated on a Docker registry
Stars: ✭ 704 (-53.75%)
Mutual labels:  slack, notifications
Gocd Slack Build Notifier
GoCD (gocd.org) plugin to push build notifications to Slack
Stars: ✭ 96 (-93.69%)
Mutual labels:  slack, notifications
Laravel Slack Slash Command
Make a Laravel app respond to a slash command from Slack
Stars: ✭ 215 (-85.87%)
Mutual labels:  slack, notifications
Psslack
PowerShell module for simple Slack integration
Stars: ✭ 231 (-84.82%)
Mutual labels:  slack, notifications
Yii2 Slack Log
Pretty Slack log target for Yii 2
Stars: ✭ 24 (-98.42%)
Mutual labels:  slack, notifications

StatusOK

Monitor your Website and APIs from your computer.Get notified through Slack or E-mail when your server is down or response time is more than expected.

Simple Version

Simple Setup to monitor your website and recieve a notification to your Gmail when your website is down.

Step 1: Write a config.json with the url information

{
	"notifications":{
		"mail":{
			"smtpHost":"smtp.gmail.com",
			"port":587,
			"username":"[email protected]",
			"password":"your gmail password",
			"from":"[email protected]",
			"to":"[email protected]"
		}
	},
	"requests":[
		{
			"url":"http://mywebsite.com",
			"requestType":"GET",
			"checkEvery":30,	
			"responseTime":800
		}
	]
}

Turn on access for your gmail https://www.google.com/settings/security/lesssecureapps .

Step 2: Download bin file from here and run the below command from your terminal

$ ./statusok --config config.json

Thats it !!!! You will receive a mail when your website is down or response time is more.

To run as background process add & at the end

$ ./statusok --config config.json &	

to stop the process

$ jobs
$ kill %jobnumber

Complete Version using InfluxDb

alt text

You can save data to influx db and view response times over a period of time as above using graphana.

Guide to install influxdb and grafana

With StatusOk you can monitor all your REST APIs by adding api details to config file as below.A Notification will be triggered when you api is down or response time is more than expected.

{
	"url":"http://mywebsite.com/v1/data",
	"requestType":"POST",
	"headers":{
		"Authorization":"Bearer ac2168444f4de69c27d6384ea2ccf61a49669be5a2fb037ccc1f",
		"Content-Type":"application/json"
	},
	"formParams":{
		"description":"sanath test",
		"url":"http://google.com"
	},
	"checkEvery":30,
	"responseCode":200,		
	"responseTime":800
},

{
	"url":"http://mywebsite.com/v1/data",
	"requestType":"GET",
	"headers":{
		"Authorization":"Bearer ac2168444f4de69c27d6384ea2ccf61a49669be5a2fb037ccc1f",		
	},
	"urlParams":{
		"name":"statusok"
	},
	"checkEvery":300,
	"responseCode":200,		
	"responseTime":800
},

{
	"url":"http://something.com/v1/data",
	"requestType":"DELETE",
	"formParams":{
		"name":"statusok"
	},
	"checkEvery":300,
	"responseCode":200,		
	"responseTime":800
}

Guide to write config.json file

Sample config.json file

To run the app

$ ./statusok --config config.json &

Database

Save Requests response time information and error information to your database by adding database details to config file. Currently only Influxdb 0.9.3+ is supported.

You can also add data to your own database.view details

Notifications

Notifications will be triggered when mean response time is below given response time for a request or when an error is occured . Currently the below clients are supported to receive notifications.For more information on setup click here

  1. Slack
  2. Smtp Email
  3. Mailgun
  4. Http EndPoint
  5. Dingding

Adding support to other clients is simple.view details

Running with plain Docker

docker run -d -v /path/to/config/folder:/config sanathp/statusok

Note: Config folder should contain config file with name config.json

Running with Docker Compose

Prepare docker-compose.yml config like this:

version: '2'
services:
  statusok:
    build: sanathp/statusok
    volumes:
      - /path/to/config/folder:/config
    depends_on:
      - influxdb
  influxdb:
    image: tutum/influxdb:0.9
    environment:
      - PRE_CREATE_DB="statusok" 
    ports:
      - 8083:8083 
      - 8086:8086
  grafana:
    image: grafana/grafana
    ports:
      - 3000:3000

Now run it:

docker-compose up

Contribution

Contributions are welcomed and greatly appreciated. Create an issue if you find bugs. Send a pull request if you have written a new feature or fixed an issue .Please make sure to write test cases.

License

Copyright 2015 Sanath Kumar Pasumarthy

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].