Trees | Indices | Help |
|
---|
|
1 # -*- coding: UTF-8 -*- 2 3 """Fonctionnement du Webmail 4 """ 5 from zephir.monitor.agent.agent import MicroAgent 6 import commands 79 """Test Webmail 10 """29 30 if __name__ == "__main__": 31 Webmail() 3212 self.name="webmail" 13 self.description="""Interface Webmail""" 14 15 MicroAgent.__init__(self) 16 self._system() 17 self.dump_xml() 18 self.dump_html()1921 """Récupère une sortie système 22 """ 23 exec_cmd = "tcpcheck 3 localhost:80" 24 s = commands.getoutput(exec_cmd) 25 if s.count("alive") > 0: 26 return 1 27 self.set_status("0") 28 return 0
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0beta1 on Mon Oct 1 23:56:59 2007 | http://epydoc.sourceforge.net |