Skip to main content

This Script return a plain text report with a complete system info.

Project description

Overview

This simple Script is a first try to develop a simple agent to monitoring computers from remote server.

Processes

For now, this script can return a plain text report with this:

  • Basic system info.

  • CPU and RAM Load.

  • Hard Disk status.

  • Logged users.

  • Network Status

  • System services and running programs.

  • Listening ports and established connections.

Install:

At moment, Wmon is only compatible with Python3.

You can install wmon from Pypi:

pip install wmon

May will need to specify the version of Pypi:

pip3 install wmon

Also you can install from console:

python setup.py install

Specific for Python3:

python3 setup.py install

Examples:

Linux Mint 16 output:

  ----------------------------------------------------------------------
  PCpractico.es Wmon v0.62b (08/05/2014)
  Developer: Francisco Martínez Estellés
* ------------ GENERAL SYSTEM INFO -------------------------------------
* Platform: Linux-3.11.0-12-generic-x86_64-with-LinuxMint-16-petra
* System: Linux
* Release: 3.11.0-12-generic
* Version: #19-Ubuntu SMP Wed Oct 9 16:20:46 UTC 2013
* CPU ID: x86_64
* CPU Cores: 4
* UPTIME: 13-05-2014 15:30:30
* CPU Use: [#                                   ] 3.1%
         - USO CPU Core 1: [#                       ] 6.0%
         - USO CPU Core 2: [#                       ] 6.0%
         - USO CPU Core 3: [                        ] 3.5%
         - USO CPU Core 4: [#                       ] 5.5%
* Mem use: [#######                             ] 19.7% of 3.66 Gigabytes
* ------------ SYSTEM UNITS -------------------------------------
- Unit /dev/sda5 : [#####    ] 51.1% Used of 24.32 Gigabytes [rw,errors=remount-ro]
* ------------ NETWORK INTERFACES -------------------------------------
* Hostname: pcplenovo
* IP Address: 127.0.1.1
                 Snd          Rcv Err-out  Err-in  Interface
------------ ------------ ------- -------  ----------
         53.35Kb      53.35Kb       0       0  lo
          2.58Mb      38.24Mb       0       0  wlan0
          0.00B        0.00B        0       0  eth0
* ------------ LOGED USERS -------------------------------------
USER:pcpractico LOGED:13-05-2014 15:34:56 TERM:tty7
USER:pcpractico LOGED:13-05-2014 15:34:56 TERM:pts/0
USER:pcpractico LOGED:13-05-2014 16:21:52 TERM:pts/2
* ------------ PROCESS LIST ---------------------------------
User                             Pid  %CPU   %MEM Process
----------                       ---  ----   ---- ----------
root                               1   0.0    0.1 init
root                               2   0.0    0.0 kthreadd
root                               3   0.0    0.0 ksoftirqd/0
root                               5   0.0    0.0 kworker/0:0H
root                               7   0.0    0.0 migration/0
root                              53   0.0    0.0 ecryptfs-kthrea
...

* ------------ NETWORK STATUS ---------------------------------
Local           LPort Remote          RPort       Status Pid    Service
--------------- ----- --------------- ----- ------------ -----  ----------
0.0.0.0         445                               LISTEN None
0.0.0.0         139                               LISTEN None
127.0.1.1       53                                LISTEN None
0.0.0.0         22                                LISTEN None
127.0.0.1       631                               LISTEN None
::              445                               LISTEN None
::              139                               LISTEN None
::              22                                LISTEN None

Windows 8 output:

  ----------------------------------------------------------------------
  PCpractico.es Wmon v0.62b (08/05/2014)
  Developer: Francisco Martínez Estellés
* ------------ GENERAL SYSTEM INFO -------------------------------------
* Platform: Windows-8-6.2.9200
* System: Windows
* Release: 8
* Version: 6.2.9200
* CPU ID: Intel64 Family 6 Model 37 Stepping 5, GenuineIntel
* CPU Cores: 4
* UPTIME: 09-05-2014 16:00:27
* CPU Use: [##                                  ] 7.6%
         - USO CPU Core 1: [##                      ] 10.2%
         - USO CPU Core 2: [#                       ] 7.1%
         - USO CPU Core 3: [####                    ] 17.2%
         - USO CPU Core 4: [###                     ] 14.2%
* Mem use: [#############                       ] 35.9% of 7.99 Gigabytes
* ------------ SYSTEM UNITS -------------------------------------
- Unit C:\ : [#######  ] 75.4% Used of 223.23 Gigabytes
- Unit D:\ : [###      ] 36.6% Used of 100.00 Megabytes
* ------------ NETWORK INTERFACES -------------------------------------
* Hostname: pcphost
* IP Address: 192.168.1.10
                 Snd          Rcv Err-out  Err-in  Interface
------------ ------------ ------- -------  ----------
          1.35Gb     417.20Mb       0       0  Ethernet
          2.00Mb       0.00B        0       0  VMware Network Adapter VMnet8
* ------------ LOGED USERS -------------------------------------
USER:PCpractico LOGED:12-05-2014 21:43:59
* ------------ PROCESS LIST ---------------------------------
User                             Pid  %CPU   %MEM Process
----------                       ---  ----   ---- ----------
NT AUTHORITY\SYSTEM                0 800.0    0.0 System Idle Process
NT AUTHORITY\SYSTEM                4   0.0    0.0 System
                                                                 292   0.0    0.0 ?
                                                                 420   0.0    0.0 ?
                                                                 512   0.0    0.0 ?
pcpractico                      9064   0.0    0.1 taskhostex.exe
...
* ------------ NETWORK STATUS ---------------------------------
Local           LPort Remote          RPort       Status Pid    Service
--------------- ----- --------------- ----- ------------ -----  ----------
0.0.0.0         111                               LISTEN 2804
0.0.0.0         135                               LISTEN 816
192.168.1.9     139                               LISTEN 4      System
192.168.175.1   139                               LISTEN 4      System
127.0.0.1       19728                             LISTEN 3520
192.168.1.9     21888 192.168.1.11    22     ESTABLISHED 6412   putty.exe
127.0.0.1       27015 127.0.0.1       8805   ESTABLISHED 1904

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wmon-0.62.zip (6.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page