user2358015
user2358015

Reputation: 11

python plugin to monitoring linux system

Is there any famous python plugin/library to monitor linux system , such as :

is there any?

thank you very much :D

Upvotes: 0

Views: 2220

Answers (2)

Shock Bolt
Shock Bolt

Reputation: 21

I made this simple application in Python, all you need to install for this to run is a package named "acpi". Change the refresh rate to your preferences.

import os
import time
refreshrate = 10
while(1):
    os.system("clear")
    print(os.system("acpi -V"))
    time.sleep(refreshrate)

Upvotes: 2

ibi0tux
ibi0tux

Reputation: 2629

You should have a look to this project that looks closely to what you want to do.

Alternatively you can use system programs through a an exec or a pipe (popen). More generally have a look to this package

For instance, to get temperature, you can simply use os.system() :

import os
print os.system('acpi -t')

Depending on the program you want to execute you may need threading and pipes or not.

Upvotes: 0

Related Questions