monkey/chaos_monkey/system_info/linux_info_collector.py

18 lines
362 B
Python
Raw Normal View History

2015-12-09 22:33:44 +08:00
from . import InfoCollector
__author__ = 'uri'
2015-12-09 22:33:44 +08:00
class LinuxInfoCollector(InfoCollector):
"""
System information collecting module for Linux operating systems
"""
def __init__(self):
2015-12-09 22:33:44 +08:00
super(LinuxInfoCollector, self).__init__()
def get_info(self):
2015-12-09 22:33:44 +08:00
self.get_hostname()
self.get_process_list()
return self.info