https://github.com/vshn/process-info-collector
Retrieve process information from Linux systems
https://github.com/vshn/process-info-collector
Last synced: 2 months ago
JSON representation
Retrieve process information from Linux systems
- Host: GitHub
- URL: https://github.com/vshn/process-info-collector
- Owner: vshn
- License: bsd-3-clause
- Created: 2019-11-28T12:48:46.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-02-01T11:51:25.000Z (over 1 year ago)
- Last Synced: 2025-01-29T01:46:28.471Z (4 months ago)
- Language: Python
- Size: 11.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Process Info Collector
This repository provides an Ansible role and a python script which can be used to fetch running processes information from Linux systems.
## Motivation
System process information can provide valuable insights on the kind of software/workloads running in a system. While most of this information can easily be gathered with "ps", collecting this information in a standard format from multiple systems is not trivial.
## Prerequisites
Ansible 2.6+ on the controller system
Python3 in the target systems## Approach
A predefined list of specific information files and paths is retrieved from the /proc filesyst3em
## How to use
Test in a local system:
```bash
sudo scripts/collect.py
```Run on one or more hosts saving the results in the _output/_ directory.
```bash
mkdir output
TARGET=ansible_target_host_or_group
ansible-playbook playbook/collect.yaml -e target=$TARGET
```