From 00344fccf7e80cf4d58cd4c1f72b08886b0cbc65 Mon Sep 17 00:00:00 2001 From: Charles N Wyble Date: Sat, 14 Jun 2025 07:49:09 -0500 Subject: [PATCH] such legacy hop ons... fixed! --- newSrv.sh | 4 ++-- snmpd.conf | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/newSrv.sh b/newSrv.sh index f2186a3..5d6ecb8 100644 --- a/newSrv.sh +++ b/newSrv.sh @@ -72,7 +72,7 @@ echo "Completed running $FUNCNAME" if [[ ! -f /root/ntpserver ]]; then curl --silent http://dl.knownelement.com/FetchApplyDistPoint/ntp.conf > /etc/ntp.conf export DEBIAN_FRONTEND="noninteractive" && apt-get -qq --yes -o Dpkg::Options::="--force-confold" install ntp ntpdate -systemctl stop ntp && ntpdate pfv-dc-02.turnsys.net && systemctl start ntp +systemctl stop ntp && ntpdate pool.ntp.org && systemctl start ntp fi function global-systemServiceConfigurationFiles() @@ -104,7 +104,7 @@ if [ ! -d $LOCALUSER_SSH_DIR ]; then fi if [ ! -d $SUBODEV_SSH_DIR ]; then - if [ ! -d /home/localuser]; then + if [ ! -d /home/localuser ]; then mkdir /home/subodev/.ssh/ curl --silent http://dl.knownelement.com/FetchApplyDistPoint/ssh-authorized-keys> /home/subodev/.ssh/authorized_keys && chmod 400 /home/subodev/.ssh/authorized_keys chmod 400 /home/subodev/.ssh/authorized_keys diff --git a/snmpd.conf b/snmpd.conf index 54bd2cb..5653613 100644 --- a/snmpd.conf +++ b/snmpd.conf @@ -14,7 +14,7 @@ rocommunity kn3lmgmt sysservices 76 #syslocation Rack, Room, Building, City, Country [Lat, Lon] -syslocation R5, Prod Center, HQ, Pflugervile, Unite States +syslocation ServerRoom, Prod Center, HQ, Pflugerville, United States syscontact coo@turnsys.com #NTP @@ -25,7 +25,7 @@ extend mailq /usr/local/librenms/postfix-queues extend postfixdetailed /usr/local/librenms/postfixdetailed #OS Distribution Detection -extend distro /usr/local/librenms/distro +extend distro /usr/local/bin/distro extend osupdate /usr/local/librenms/os-updates.sh