Monitor web servers, print to stdout
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
package.json
peng.js
servers-example.json

README.md

peng

Ping web servers to see if they're up, optionally check text return.. Prints errors to stdout.. Sends email using Mailgun.

Create a config file..

servers.json

{
   "mailgun_apikey": "",
   "mailgun_domain": "",
   "mailgun_from": "Admin <admin@example.com>",
   "mailgun_to": "toaddress@example.com",
   "subject": "Problem server",
   "body": "problem with a server ${info}",

   "servers":{
     "example-server": {
	    "check": "http://google.info",
	    "every": "10 minutes",
            "forText": "googley"
     }
   }
}

Start and save log to nohup.out

$ nohup peng.js &