var https = require('https');https.get('PING_URL').on('error', (err) => { console.log('Ping failed: ' + err)});