Check your server health easily
go build
Build (above) or download health-check and run:
./health-check
Just open http://localhost:3000/status in your server :)
{
"memory": {
"total": "12349032 Kb",
"used": "3490432 Kb",
"free": "8858600 Kb"
},
"disks": [{
"name": "sda1",
"total": "1623248 Kb",
"used": "643480 Kb",
"free": "979768 Kb"
}, {
"name": "sda2",
"total": "5483946 Kb",
"used": "5235354 Kb",
"free": "248592 Kb"
}],
"processor": {
"total": "8.09 %"
}
}
If you want to hack on health-check
go get github.com/robertoduessmann/health-check
To make sure all the dependencies are installed
dep ensure