improve check uptime script for fortigate units