https://github.com/torxed/sysmon
Monitors system statistics and saves it in a csv-file format.
https://github.com/torxed/sysmon
resource-management sysmon
Last synced: about 2 months ago
JSON representation
Monitors system statistics and saves it in a csv-file format.
- Host: GitHub
- URL: https://github.com/torxed/sysmon
- Owner: Torxed
- License: gpl-3.0
- Created: 2019-02-21T15:27:58.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-02-21T15:35:26.000Z (about 6 years ago)
- Last Synced: 2025-01-25T17:11:23.453Z (4 months ago)
- Topics: resource-management, sysmon
- Language: Python
- Size: 16.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# sysmon
Monitors system statistics and saves it in a csv-file format.
# Installation
## Dependencies
* python3
* python-psutil [Lib] *- (Optional, but highly recommended)*## Manual installation:
# cp sysmon.py /usr/bin/sysmon
# chmod 440 /usr/bin/sysmon
# chmod +x /usr/bin/sysmonCopy the service and timer scripts:
# cp systemd/* /etc/systemd/system/
# systemctl enable [email protected]This enables `sysmon.py` to look at the NIC `eno1`.
# Running sysmon
# systemctl enable [email protected]
# systemctl start [email protected]Or simply via any command line:
# python sysmon.py --output=/root/sysinfo.csv --interface=eno1 --partition=/
# What it does
By default, `[email protected]` will be executed by `[email protected]` every **15 min**.
The information gathered by `[email protected]` is:* Free disk space on `/`
* CPU load percentage over 200ms per sampling time
* Free memory space
* Packets sent and recieved on `@` aboveAll this information is stored under `/root/sysinfo.csv` *(or whichever is configured upon launch)*.
# Help:
Run `python sysmon.py --help` for more information.
Configuration can be done in `[email protected]`.