This is a simple node script that queries a hbase REST server and either sends out an email alerting the recipient of it's response (using nodemailer) or reboots if no nodes are active or if it's unable to resolve google.com
- Install Node.JS
- Install Node dependencies
npm install
- Change the settings.json to fit your requirements
- The settings in this file are blank by default
- Run it as a service on your cluster
Read Notes
This was designed for a specific usecase and hasn't been tested on any other systems. Consequently, it might not work on other systems. I don't see why not though, provided the settings.json is set right. Honestly, I'm mostly hosting this here for archiving. Someone might find it useful though.
- Alexander Collins [email protected]
See git log (I tried to keep it tidy)