Closed chris-mendoza closed 8 years ago
Seems legit to me. The if statement only relies on exit code, so output from nc shouldn't have any bearing on whether the plugin returns success or failure.
+1 (unless someone points out something really obvious I'm missing)
Services such as MySQL have an output that interrupts the status of this alarm. The if/then conditional is the main part of the script that Cloud Monitoring needs to read to function.