Rewrote to use Nagios::Plugin