mirror of
https://github.com/in-famous-raccoon/proxmox-snmp.git
synced 2025-07-17 07:36:26 +00:00
Update README.md
added Known issues
This commit is contained in:
53
README.md
53
README.md
@ -4,26 +4,28 @@
|
|||||||
apt install snmpd
|
apt install snmpd
|
||||||
|
|
||||||
## Configure snmpd
|
## Configure snmpd
|
||||||
#### Edit /etc/snmp/snmpd.conf <br />
|
#### Edit /etc/snmp/snmpd.conf
|
||||||
`nano /etc/snmp/snmpd.conf` <br />
|
`nano /etc/snmp/snmpd.conf`
|
||||||
#### Add basic configuration <br />
|
#### Add basic configuration
|
||||||
`# Listen on all interfaces IPv4 only`<br />
|
```
|
||||||
`agentAddress udp:161`<br />
|
#Listen on all interfaces, IPv4 only
|
||||||
`# ACCESS CONTROL` <br />
|
agentAddress udp:161
|
||||||
`view all included .1.3.6.1.2.1.1` <br />
|
#ACCESS CONTROL
|
||||||
`view all included .1.3.6.1.2.1.25.1` <br />
|
view all included .1.3.6.1.2.1.1
|
||||||
`#Read only snmp v2 with community public restricted to Network` <br />
|
view all included .1.3.6.1.2.1.25.1
|
||||||
`#Change IP to your used IP!!!` <br />
|
#SNMP v2 (Read only) with community "public" restricted to Network
|
||||||
`rocommunity public 192.168.1.0/24` <br />
|
#Please change IP 192.168.1.0/24 to your Network.
|
||||||
`sysLocation YourCity` <br />
|
rocommunity public 192.168.1.0/24
|
||||||
`sysContact YourName` <br />
|
sysLocation YourCity
|
||||||
`# Run as root` <br />
|
sysContact YourName
|
||||||
`agentuser root` <br />
|
#Run as root
|
||||||
`# Add commands` <br />
|
agentuser root
|
||||||
`pass .1.3.6.1.2.1.25.1.8 /bin/sh /root/snmp-cpu-temp.sh`<br />
|
#Add commands
|
||||||
`pass .1.3.6.1.2.1.25.1.9 /bin/sh /root/snmp-lvm-used.sh`<br />
|
pass .1.3.6.1.2.1.25.1.8 /bin/sh /root/snmp-cpu-temp.sh
|
||||||
`pass .1.3.6.1.2.1.25.1.10 /bin/sh /root/snmp-smart-status.sh`<br />
|
pass .1.3.6.1.2.1.25.1.9 /bin/sh /root/snmp-lvm-used.sh
|
||||||
#### Restart SNMPD <br />
|
pass .1.3.6.1.2.1.25.1.10 /bin/sh /root/snmp-smart-status.sh
|
||||||
|
```
|
||||||
|
#### Restart SNMPD
|
||||||
`systemctl restart snmpd.service`
|
`systemctl restart snmpd.service`
|
||||||
|
|
||||||
# Configuration on PRTG WebUI
|
# Configuration on PRTG WebUI
|
||||||
@ -52,3 +54,14 @@ apt install snmpd
|
|||||||
* Response Must Include (Warning Status) = PASSED
|
* Response Must Include (Warning Status) = PASSED
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
# Known issues
|
||||||
|
#### Recently debian added the user "Debian-snmp" to the snmp.service but for SMART/LVM Status we need the root user.
|
||||||
|
#### edit snmpd.service and replace "Debian-snmp" with "root"
|
||||||
|
```
|
||||||
|
nano /lib/systemd/system/snmpd.service
|
||||||
|
...
|
||||||
|
ExecStart=/usr/sbin/snmpd -Lsd -Lf /dev/null -u root -g Debian-snmp -I -smux,mteTrigger,mteTriggerConf -f -p /run/snmpd.pid
|
||||||
|
...
|
||||||
|
```
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user