This repository contains Python scripts for gathering host machine information and sending it to InfluxDB. The scripts cover various aspects, including disk statistics, KVM virtual machine status, and sensor readings.
Make sure you have the following installed on your system:
- Python 3.x
- InfluxDB
- InfluxDB Python Client
Run this line to install.
bash -c "$(curl -fsSL https://bugswriter.com/pve2influx-install.sh)"
-
Clone the repository:
git clone https://github.com/bugswriter/pve2influx.git cd pve2influx
-
Set up a virtual environment (optional but recommended):
python -m venv env source env/bin/activate
-
Install dependencies:
pip install -r requirements.txt
-
Set up your InfluxDB configuration by creating a
.env
file with the following variables:INFLUX_URL="https://your-influxdb-url:8086" INFLUX_TOKEN="your-influxdb-token" INFLUX_ORG="your-influxdb-organization" INFLUX_BUCKET="your-influxdb-bucket"
-
Run the desired scripts:
python disk.py python vmstatus.py python sensors.py # Add more scripts as needed
This script retrieves disk statistics and sends them to InfluxDB.
Monitors the status of KVM virtual machines and logs the information to InfluxDB.
Gathers sensor readings from the host machine and stores them in InfluxDB.
Feel free to contribute by opening issues, suggesting improvements, or submitting pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.