mirror of
https://github.com/KevinMidboe/Node-Com-Handler.git
synced 2025-10-29 17:50:27 +00:00
Added the start of a script for getting load average. (Only Linux).
This commit is contained in:
10
status/load.py
Normal file
10
status/load.py
Normal file
@@ -0,0 +1,10 @@
|
||||
#!/usr/bin/env python3
|
||||
from subprocess import check_output
|
||||
from re import findall
|
||||
|
||||
def load():
|
||||
arpOutput = check_output("sudo arp-scan -l", shell=True)
|
||||
print(findall('[0-9]{1,2}[\.][0-9]{2}'))
|
||||
|
||||
if __name__ == '__main__':
|
||||
load()
|
||||
Reference in New Issue
Block a user