Commit 7f3d854d by Bach Dániel

add Oracle Linux support

parent a7afca28
...@@ -75,9 +75,9 @@ class SerialLineReceiver(SerialLineReceiverBase): ...@@ -75,9 +75,9 @@ class SerialLineReceiver(SerialLineReceiverBase):
def send_status(self): def send_status(self):
import psutil import psutil
disk_usage = {(disk.device.replace('/', '_')): disk_usage = dict((disk.device.replace('/', '_'),
psutil.disk_usage(disk.mountpoint).percent psutil.disk_usage(disk.mountpoint).percent)
for disk in psutil.disk_partitions()} for disk in psutil.disk_partitions())
args = {"cpu": dict(psutil.cpu_times()._asdict()), args = {"cpu": dict(psutil.cpu_times()._asdict()),
"ram": dict(psutil.virtual_memory()._asdict()), "ram": dict(psutil.virtual_memory()._asdict()),
"swap": dict(psutil.swap_memory()._asdict()), "swap": dict(psutil.swap_memory()._asdict()),
......
...@@ -39,6 +39,7 @@ mount_template_linux = ( ...@@ -39,6 +39,7 @@ mount_template_linux = (
distros = {'Scientific Linux': 'rhel', distros = {'Scientific Linux': 'rhel',
'Oracle Linux Server': 'rhel',
'CentOS': 'rhel', 'CentOS': 'rhel',
'CentOS Linux': 'rhel', 'CentOS Linux': 'rhel',
'Debian': 'debian', 'Debian': 'debian',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment