# ------------------------------------------------------------------------------ # SNMP monitoring conf # This file is part of the init.sh project # Copyright (c) 2019-2021 Geoffray Levasseur # ------------------------------------------------------------------------------ # This file is distributed under 3-clause BSD license. # The complete license agreement can be obtained at: # https://opensource.org/licenses/BSD-3-Clause # ------------------------------------------------------------------------------ export VER_patch_snmp="0.0.1" export DEP_patch_snmp="install_pkg" patch_snmp() { backupdist /etc/snmp/snmpd.conf /etc/default/snmpd \ /lib/systemd/system/snmpd.service /etc/init.d/snmpd installfile snmpd.conf /etc/snmp/snmpd.conf installfile snmpd.init /etc/init.d/snmpd if [[ -e /lib/systemd/system/snmpd.service ]]; then installfile snmpd.service /lib/systemd/system/snmpd.service systemctl daemon-reload fi svc_restart snmpd } precheck_patch_snmp() { : } export -f patch_snmp export -f precheck_patch_snmp