exception handling on lock for nagios check
check lock exception on nagios check