librenms fixes
This commit is contained in:
@@ -173,6 +173,7 @@ git \
|
|||||||
rsync \
|
rsync \
|
||||||
tshark \
|
tshark \
|
||||||
tcpdump \
|
tcpdump \
|
||||||
|
sudo \
|
||||||
lynis \
|
lynis \
|
||||||
qemu-guest-agent \
|
qemu-guest-agent \
|
||||||
zsh \
|
zsh \
|
||||||
@@ -200,6 +201,7 @@ function global-postPackageConfiguration()
|
|||||||
echo "Now running $FUNCNAME...."
|
echo "Now running $FUNCNAME...."
|
||||||
|
|
||||||
###Post package deployment bits
|
###Post package deployment bits
|
||||||
|
curl --silent https://dl.knownelement.com/FetchApplyDistPoint/snmp-sudo.conf > /etc/sudoers.d/snmpd.conf
|
||||||
systemctl stop snmpd && /etc/init.d/snmpd stop
|
systemctl stop snmpd && /etc/init.d/snmpd stop
|
||||||
sed -i "s|-Lsd|-LS6d|" /lib/systemd/system/snmpd.service
|
sed -i "s|-Lsd|-LS6d|" /lib/systemd/system/snmpd.service
|
||||||
curl --silent https://dl.knownelement.com/FetchApplyDistPoint/snmpd.conf > /etc/snmp/snmpd.conf && systemctl stop netdata && systemctl start netdata
|
curl --silent https://dl.knownelement.com/FetchApplyDistPoint/snmpd.conf > /etc/snmp/snmpd.conf && systemctl stop netdata && systemctl start netdata
|
||||||
|
1
snmp-sudo.conf
Normal file
1
snmp-sudo.conf
Normal file
@@ -0,0 +1 @@
|
|||||||
|
Debian-snmp ALL = NOPASSWD: /bin/cat
|
@@ -31,9 +31,9 @@ extend osupdate /usr/local/librenms/os-updates.sh
|
|||||||
|
|
||||||
#Hardware Detection
|
#Hardware Detection
|
||||||
# (uncomment for x86 platforms)
|
# (uncomment for x86 platforms)
|
||||||
extend manufacturer '/bin/cat /sys/devices/virtual/dmi/id/sys_vendor'
|
extend manufacturer '/usr/bin/sudo /bin/cat /sys/devices/virtual/dmi/id/sys_vendor'
|
||||||
extend hardware '/bin/cat /sys/devices/virtual/dmi/id/product_name'
|
extend hardware '/usr/bin/sudo /bin/cat /sys/devices/virtual/dmi/id/product_name'
|
||||||
extend serial '/bin/cat /sys/devices/virtual/dmi/id/product_serial'
|
extend serial '/usr/bin/sudo /bin/cat /sys/devices/virtual/dmi/id/product_serial'
|
||||||
|
|
||||||
|
|
||||||
# Allow Systems Management Data Engine SNMP to connect to snmpd using SMUX
|
# Allow Systems Management Data Engine SNMP to connect to snmpd using SMUX
|
||||||
|
Reference in New Issue
Block a user