nodeChecker update: now with SSH and Sockets!

javascript modcloth node.js 
↞ See all posts

The nodeCheker project which I spoke about a few months ago got an update today. Now you can execute arbitrary SSH commands to other servers (like checking load, disk space, etc). You can then parse the returned strings via regex to extract a graph-able quantity. For example. here is my script to monitor the used disk space on the ActionHero demo server:

1{ 2 "name": "disk_space_on_actionHero_demo_server", 3 "type": "ssh", 4 "frequencyInSeconds": 10, 5 "entriesToKeep": 100, 6 "params": { 7 "hostname": "", 8 "user": "userNameHere", 9 "command": "df", 10 "sshKey": "/path/to/your/file.pem", 11 "regex": "/dev/xvda1\\s*\\d*\\s*\\d*\\s*\\d*\\s*(...)%" 12 } 13}

which parses a response like:

1Filesystem 1K-blocks Used Available Use% Mounted on 2/dev/xvda1 8256952 1407440 6765640 18% / 3tmpfs 305624 0 305624 0% /dev/shm

and would return 18 as the quantity I was looking for.

The goal of this project is to create a simple tool for ops-types to monitor their applications, and SSH checking was a oft-requested feature. Huzzah!

I’ve also updated the project to push messages to connected SSH users by room. You can be in the "all" room to get all the check results, or a room named by the name of the checkout the project to learn more.


Hi, I'm Evan

I write about Technology, Software, and Startups. I use my Product Management, Software Engineering, and Leadership skills to build teams that create world-class digital products.

Get in touch