I'm using this sensu plugin https://github.com/sensu-plugins/sensu-plugins-process-checks/blob/master/bin/check-cmd.rb
to run
sudo lsof | grep couchbase | grep ESTABLISHED | wc -l
I'm trying to come up with a regex for the output. I want it to alert if the value is over 30,000 connections.
What would be the regex I can use?