Skip to content

Bugswriter/pve2influx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

System Monitoring Scripts

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.

Prerequisites

Make sure you have the following installed on your system:

Installation

Run this line to install.

bash -c "$(curl -fsSL https://bugswriter.com/pve2influx-install.sh)"

Usage

  1. Clone the repository:

    git clone https://github.com/bugswriter/pve2influx.git
    cd pve2influx
  2. Set up a virtual environment (optional but recommended):

    python -m venv env
    source env/bin/activate
  3. Install dependencies:

    pip install -r requirements.txt
  4. 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"
  5. Run the desired scripts:

    python disk.py
    python vmstatus.py
    python sensors.py
    # Add more scripts as needed

Scripts

1. disk.py

This script retrieves disk statistics and sends them to InfluxDB.

2. vmstatus.py

Monitors the status of KVM virtual machines and logs the information to InfluxDB.

3. sensors.py

Gathers sensor readings from the host machine and stores them in InfluxDB.

Contributing

Feel free to contribute by opening issues, suggesting improvements, or submitting pull requests.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages