service monitor
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


a simple http service monitoring daemon


npm install -g curex


  1. create a config script somewhere, like the example below
  2. run curex -c path/to/config_script.js

you can change your config script anytime, it will be re-evaluated

example config

feel free to do whatever you want in the config file, call out to your other softwre, etc...

module.exports = {
  my_app: {
    url: "",
    frequency: 1000 * 60 * 5, // how often to make a request (optional, defaults to 5 minutes)
    expectStatusCode: 200, // http status code (optional, defaults to 200)
    expectMatchBody: new RegExp("all good in the hood"), // (optional, doesn't check body by default)
    alertBegan: function(reason) {
      // reason could be a string or an object
      // e.g. require('sms_sender').sendSMS(1234567890, "my app is down!!!");
      // or perhaps send a Raven with
    alertEnded: function(downtime) {
      // downtime is a human-readable string. e.g. "4 minutes 5 seconds"
      // let yourself know everything is ok now
  my_other_app: {
    // and so on ...