GithubHelp home page GithubHelp logo

gorathon / proxmox-snmp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from in-famous-raccoon/proxmox-snmp

0.0 0.0 0.0 30 KB

SNMP Scripts to monitor Proxmox with PRTG

License: GNU General Public License v3.0

Shell 100.00%

proxmox-snmp's Introduction

Configuration on Proxmox

Install snmpd

apt install snmpd

Configure snmpd

Paste content from snmpd.conf to /etc/snmp/snmpd.conf

nano /etc/snmp/snmpd.conf

Paste content from sh file to /opt folder and make executable

nano /opt/snmp-cpu-temp.sh
nano /opt/snmp-smart-status.sh
nano /opt/snmp-lvm-used.sh for LVM
nano /opt/snmp-zfs-used.sh for ZFS
nano /opt/snmp-ceph-used.sh for Ceph
chmod +x /opt/snmp-*

Run snmpd as root, because debian added the user "Debian-snmp" to the snmp.service but for SMART/LVM Status we need to be root.

edit snmpd.service and replace "Debian-snmp" with "root"

nano /lib/systemd/system/snmpd.service

From
ExecStart=/usr/sbin/snmpd -Lsd -Lf /dev/null -u Debian-snmp -g Debian-snmp -I -smux,mteTrigger,mteTriggerConf -f -p /run/snmpd.pid
To
ExecStart=/usr/sbin/snmpd -Lsd -Lf /dev/null -u root -g Debian-snmp -I -smux,mteTrigger,mteTriggerConf -f -p /run/snmpd.pid

Restart SNMPD

systemctl restart snmpd.service

Configuration on PRTG WebUI

CPU temperature

  • Add sensor
  • SNMP Custom
  • Name = CPU Temp
  • OID = .1.3.6.1.2.1.25.1.8
  • Channel Name = Temperature
  • Unit String = °C

LVM used

  • Add sensor
  • SNMP Custom
  • Name = LVM allocated pool data
  • OID = .1.3.6.1.2.1.25.1.9
  • Channel Name = LVM used
  • Unit String = %

SMART status

  • Add sensor
  • SNMP Custom String
  • Name = SMART status
  • OID = .1.3.6.1.2.1.25.1.10
  • Response Must Include (Down Status) = PASSED
  • Response Must Include (Warning Status) = PASSED

PRTG

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.