shell script for nagios plugin