Listing 2. Python Script for Remote Computer

#!/usr/bin/python2

import os

Web_Log = "/var/log/httpd/access_log"

if os.path.isfile(Web_Log): 
  print "GOOD:" + Web_Log + ":GOOD"
else: 
  print "ERROR: couldn't find file."