Trees | Indices | Help |
|
---|
|
1 ########################################################################### 2 # 3 # This program is part of Zenoss Core, an open source monitoring platform. 4 # Copyright (C) 2007, Zenoss Inc. 5 # 6 # This program is free software; you can redistribute it and/or modify it 7 # under the terms of the GNU General Public License version 2 as published by 8 # the Free Software Foundation. 9 # 10 # For complete information please visit: http://www.zenoss.com/oss/ 11 # 12 ########################################################################### 13 14 from AsyncPing import PingJob 15 from twisted.internet import reactor 16 import os.path 17 import time 184721 self.count = 02224 return self.count2527 self.count += 1 28 pj.reset() 29 pj.start = time.time() 30 if not os.path.exists('/tmp/testping'): 31 reactor.callLater(0, self.bad, pj) 32 else: 33 for line in file('/tmp/testping'): 34 if line.strip() == pj.ipaddr: 35 reactor.callLater(0, self.good, pj) 36 break 37 else: 38 reactor.callLater(0, self.bad, pj)39 43
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Thu Oct 25 16:28:52 2007 | http://epydoc.sourceforge.net |