Home | Trees | Indices | Help |
---|
|
1 # -*- coding: UTF-8 -*- 2 3 """Fonctionnement du SMTP 4 """ 5 from zephir.monitor.agent.agent import MicroAgent 6 import commands 79 """Test SMTP 10 """29 30 if __name__ == "__main__": 31 Smtp() 3212 self.name="smtp" 13 self.description="""Fonctionnement du serveur SMTP""" 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:25" 24 s = commands.getoutput(exec_cmd) 25 if s.count("alive") > 0: 26 return 1 27 self.set_status("0") 28 return 0
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0beta1 on Tue Sep 28 15:01:26 2010 | http://epydoc.sourceforge.net |