forked from p34709852/monkey
20 lines
353 B
Python
20 lines
353 B
Python
|
import socket
|
||
|
__author__ = 'uri'
|
||
|
|
||
|
|
||
|
class LinuxInfoCollector(object):
|
||
|
"""
|
||
|
System information collecting module for Linux operating systems
|
||
|
"""
|
||
|
|
||
|
def __init__(self):
|
||
|
self.info = {}
|
||
|
|
||
|
def collect(self):
|
||
|
self.info['hostname'] = socket.gethostname()
|
||
|
|
||
|
def get_info(self):
|
||
|
self.collect()
|
||
|
return self.info
|
||
|
|