HTTP and HTTPS monitor using node.js
Problem this snippet solves: HTTP and HTTPS monitor using node.js. Beginning with 12.0 you can run node.js from the CLI just like you do Perl, Python, or TCL or Bash. This script uses the node.js ...
Published Nov 18, 2016
Version 1.0John_Alam_45640
Historic F5 Account
Joined June 12, 2006
John_Alam_45640
Historic F5 Account
Joined June 12, 2006
Algebraic_Mirror
Jun 24, 2020Cirrostratus
Wouldn't this block of code cause the monitor to always be up?
req.on('error', function(err) {
console.log(err);
return;
});
For an external monitor, isn't any output at all (even an error message) taken as an indicator of success? Wouldn't this error catching portion need to remain absolutely silent to get the desired result?