Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Download the package :
    https://public.panagenda.com/download/idna/alma9-snmp.zip

  • Copy zip file to folder /root/ on the appliance (using WinScp)

  • Extract contents of zip file:
    unzip alma9-snmp.zip

  • Check if SNMP is already installed:
    systemctl status snmpsnmpd.service

  • If the service answers, you can SKIP the next paragraph "Install SNMP Server"

...

  • Enter directory "snmp":
    cd /root/snmp

  • Install packages in folder:
    rpm -ivh --force *.rpm

...

  • Enter directory "snmp":
    cd /root/snmp

  • Stop SNMP server:
    systemctl stop snmpd

  • Back up old snmp config file:
    mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.orig

  • Generate new UUID for next step (copy to notepad for further use):
    uuidgen

  • Edit snmpd.conf to enter newly generated GUID
    nano ./snmpd.conf

  • Replace string "GUID" in line .1.3.6.1.2.1.47.1.1.1.1.11.0 with new GUID
    Example: override .1.3.6.1.2.1.47.1.1.1.1.11.0 octet_str "6c422afb-b420-4f3b-84ff-cfb9e1431bde"

  • Check if hostname needs to be overridden (e.g. to show FQDN instead of CN)
    Uncomment and edit line .1.3.6.1.2.1.1.5.0 if necessary

  • Modify "syslocation" and "syscontact" as needed

  • Copy new config file to /etc:
    cp ./snmpd.conf /etc/snmp/

  • Restart SNMP server:
    systemctl restart snmpd

  • Make sure SNMP service starts at boot time:
    systemctl enable snmpd

  • Test configuration:
    snmpwalk -v2c -c public localhost
    and/or
    snmpget -v1 -c public localhost .1.3.6.1.2.1.47.1.1.1.1.11.0

  • In case of errors, check logs:
    systemctl status snmpd
    and/or
    journalctl

...