|
@@ -42,6 +42,13 @@ EOF
|
|
|
if [ $Raspberry ]; then
|
|
if [ $Raspberry ]; then
|
|
|
echo "extend .1.3.6.1.4.1.2021.8.4 cpu_temp /scripts/snmp_temp/snmp_temp.sh cpu" >> /etc/snmp/snmpd.conf
|
|
echo "extend .1.3.6.1.4.1.2021.8.4 cpu_temp /scripts/snmp_temp/snmp_temp.sh cpu" >> /etc/snmp/snmpd.conf
|
|
|
echo "extend .1.3.6.1.4.1.2021.8.5 gpu_temp /scripts/snmp_temp/snmp_temp.sh gpu" >> /etc/snmp/snmpd.conf
|
|
echo "extend .1.3.6.1.4.1.2021.8.5 gpu_temp /scripts/snmp_temp/snmp_temp.sh gpu" >> /etc/snmp/snmpd.conf
|
|
|
|
|
+
|
|
|
|
|
+ mkdir -p /scripts/snmp/
|
|
|
|
|
+ cd /scripts/snmp/
|
|
|
|
|
+ git clone http://git.klenzel.net/daniel/snmp_temp
|
|
|
|
|
+ chmod +x snmp_temp/snmp_sensors.sh
|
|
|
|
|
+
|
|
|
|
|
+ usermod -aG video Debian-snmp
|
|
|
fi
|
|
fi
|
|
|
|
|
|
|
|
###########################################################################
|
|
###########################################################################
|
|
@@ -58,10 +65,6 @@ echo "Configuration SSH-Daemon..."
|
|
|
sed -i 's@#Port 22@Port 4711@g' /etc/ssh/sshd_config
|
|
sed -i 's@#Port 22@Port 4711@g' /etc/ssh/sshd_config
|
|
|
sed -i 's@#PermitRootLogin prohibit-password@PermitRootLogin yes@g' /etc/ssh/sshd_config
|
|
sed -i 's@#PermitRootLogin prohibit-password@PermitRootLogin yes@g' /etc/ssh/sshd_config
|
|
|
|
|
|
|
|
-if [ $Raspberry ]; then
|
|
|
|
|
- usermod -aG video Debian-snmp
|
|
|
|
|
-fi
|
|
|
|
|
-
|
|
|
|
|
echo "Enabling and restarting nessasary Services..."
|
|
echo "Enabling and restarting nessasary Services..."
|
|
|
/bin/systemctl enable chrony
|
|
/bin/systemctl enable chrony
|
|
|
/bin/systemctl restart chrony
|
|
/bin/systemctl restart chrony
|