sysalert

0.0.2 • Public • Published

What's this?

An app which alerts you when your system is down.

Features

To-Do

  • scan directory for configs
  • accept ini, or JSON configs

API Methods

/alert/:source/:event

Triggers a notification on the server

  • source - the source of the notification. E.g: alertbird
  • event - the event that handles the given notification. E.g: myapp-errors, myapp-warnings
Example:

http://user@pass:teamdigest-sysalert.heroku.com/alert/alertbird/server-down?description=...

Configuration

In your sysalert.cont file:

                              
       
#optional       
[auth]
username=basicuser
password=basicpass     
               
 
# event for notifications 
[event:X]
email=me@email.com another@email.com          
sms=+1XXXXXXXXXX
voice=+1XXXXXXXXXX 
message=general message to display
 
[keys:sysalert_notify_part_twilio]
token=XXXXXXXXXXXXX  
sid=XXXXXXXXXXXXX
phoneNumber=+1XXXXXXXXXX   
hostname=XXXX.localtunnel.com
 
[keys:sysalert_notify_part_mailgun]
key=XXXXXXXXXX           
         
#to-do 
[include]
directories=/etc/syslog/*.conf
   
                        
 

Readme

Keywords

none

Package Sidebar

Install

npm i sysalert

Weekly Downloads

0

Version

0.0.2

License

none

Last publish

Collaborators

  • architectd
  • crcn