Fixing nagios plugin