diff --git a/lib/services.js b/lib/services.js index e8198a05..4f717ed4 100644 --- a/lib/services.js +++ b/lib/services.js @@ -1,5 +1,6 @@ var Web3 = require('web3'); var async = require('async'); +var request = require('request'); var ServicesMonitor = function(options) { this.logger = options.logger; @@ -41,8 +42,15 @@ ServicesMonitor.prototype.check = function() { }, function checkIPFS(result, callback) { self.logger.trace('checkIPFS'); - result.push('IPFS'.green); - callback(null, result); + + request('http://localhost:5001', function(error, response, body) { + if (error) { + result.push('IPFS'.red); + } else { + result.push('IPFS'.green); + } + callback(null, result); + }); }, function checkDevServer(result, callback) { self.logger.trace('checkDevServer');