Home | Trees | Indices | Help |
---|
|
1 # -*- coding: UTF-8 -*- 2 3 """Fonctionnement du RVP 4 """ 5 from zephir.monitor.agent.agent import MicroAgent 6 import commands 79 """Test RVP 10 """30 31 if __name__ == "__main__": 32 Vpn() 3312 self.name="vpn" 13 self.description="""Fonctionnement du réseau virtuel (RVP)""" 14 MicroAgent.__init__(self) 15 16 MicroAgent.__init__(self) 17 self._system() 18 self.dump_xml() 19 self.dump_html()2022 """Récupère une sortie système 23 """ 24 exec_cmd = "service ipsec status | grep IPsec" 25 s = commands.getoutput(exec_cmd) 26 if s.count("running") > 0: 27 return 1 28 self.set_status("0") 29 return 0
Home | Trees | Indices | Help |
---|
Generated by Epydoc 3.0.1 on Thu Jan 23 17:05:22 2014 | http://epydoc.sourceforge.net |