Skip to content
This repository has been archived by the owner on Nov 16, 2019. It is now read-only.
/ pingme Public archive

Super simple HTTP server that can be easily pinged so that Nagios et al can know your stuff's healthy.

License

Notifications You must be signed in to change notification settings

npm/pingme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pingme

Super simple HTTP server that can be easily pinged so that Nagios et al can know your stuff's healthy.

USAGE

var pm = require('pingme');
pm({
  status: function(cb) {
    // cb(new Error('oh noes!')); if not ok
    cb(null, {
      pid: process.pid,
      whateverRandom: dataYouWantToShow
    })
  },
  ping: function(cb) {
    cb(null); // cb(new Error('oh noes!')) if not ok
  },
  // pass in ssl: { key, cert } to use https instead
  // pass in `server: someServer` to hijack its request handler
  // but be warned that this takes over the /ping and /status urls
}).listen(1337);

About

Super simple HTTP server that can be easily pinged so that Nagios et al can know your stuff's healthy.

Resources

License

Stars

Watchers

Forks

Packages

No packages published