for nagios monitor script