racker / rackspace-monitoring-agent-plugins-contrib

Contributed Rackspace Monitoring Agent plugins
71 stars 65 forks source link

redirect all output from nc command to remove the chance of false alarm #121

Closed chris-mendoza closed 8 years ago

chris-mendoza commented 8 years ago

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.

stackedsax commented 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)