[zenoss-zenpacks] Re: Newbie: ApacheMonitor Zenpack Problems

jimsmart jim at jimsmart.org
Sun Dec 30 05:36:54 EST 2007


ideally, in check_apache.py when it goes


Code:
  if response.status != 200:
                print response.reason
                sys.exit(1)




it would be better to do something like:


Code:
  if response.status != 200:
                print 'Server replied: ' + response.status + ' ' + response.reason + ' to action GET ' + self.url 
                sys.exit(1)




or similar - i've not tested the code, but it looks about right.




-------------------- m2f --------------------

Read this topic online here:
http://community.zenoss.com/forums/viewtopic.php?p=14787#14787

-------------------- m2f --------------------





More information about the zenoss-zenpacks mailing list