NetWorker: Konfigurieren von NetWorker für die Verwendung von SNMP

Summary: Konfigurieren des NetWorker-Servers für die Nutzung von SNMP-Trap

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

1. Stellen Sie sicher, dass die folgenden Pakete auf dem SNMP-Traps-Empfängerserver installiert sind.
  • net-snmp-agent-libs
  • net-snmp-libs
  • net-snmp
2. Kopieren der NetWorker-MIB-Datei in den SNMP-Ordner
/opt/nsr/snmp/NETWORKER-MIB.txt 
 
3. Fügen Sie auf dem SNMP-Empfängerhost eine Zeile mit den obigen Informationen in /etc/snmp/snmptrapd.conf hinzu 
root@networker-mc:~# cat /etc/snmp/snmptrapd.conf
# Example configuration file for snmptrapd
#
# No traps are handled by default, you must edit this file!
#
authCommunity   log,execute,net public

Informationen zu SNMPv3 finden Sie unter: NetWorker-SNMPV3-Konfiguration


5. Starten Sie snmptrapd auf dem SNMP-Empfänger-Host:

# snmptrapd -f -C -c /etc/snmp/snmptrapd.conf -Lf /var/log/snmptrap.log -M /usr/share/snmp/mibs -m NETWORKER-MIB &


6. Konfigurieren des NetWorker-Jobs zum Senden von SNMP-Traps

Hinweis:

  • Backupkonfiguration auf Aktionsebene unterstützt nur SNMPv2
  • Die Backupkonfiguration auf Policy-Ebene unterstützt sowohl SNMPv2 als auch v3.

Für SNMP v2: /usr/sbin/nsrtrap <snmp-Empfänger-IP> -c community-string
image.png


7. Sie können auch "SNMP Notification request" über die Registerkarte "Server" in NMC konfigurieren. Bitte lesen Sie das beigefügte Handbuch.

8. Sie können das Protokoll /var/log/snmptrap.log verfolgen, um festzustellen, ob SNMP für Jobs gesendet wird.

root@networker-mc:~# tail -n 71 /var/log/snmptrap.log
2024-03-05 13:02:58 networker-mc.emclab.local [UDP: [192.168.25.10]:58200->[192.168.25.10]:162]:
SNMPv2-SMI::mib-2.1.3.0 = Timeticks: (301267624) 34 days, 20:51:16.24   SNMPv2-SMI::snmpModules.1.1.4.1.0 = OID: NETWORKER-MIB::nwServerNotification    SNMPv2-SMI::mib-2.1.1.0 = STRING: "--- Server Backup Action Report ---
Policy name:Server Protection
Workflow name:Server backup
Action name:Server db backup
Action status:succeeded
Action start time:03/05/24 13:02:33
Action duration:0 hours 0 minutes 25 seconds
--- Successful Server Backup Save Sets ---
        3353828926/1709661758 networker-mc.emclab.local: index:networker-mc.emclab.local level=1, 53 MB, 62 files
        ...(removed for brevity)...
        3152502350/1709661774 networker-mc.emclab.local: bootstrap level=full, 9668 KB, 294 files
--- Bootstrap backup report ---
      date     time       ssid        volume            device                      access info
  02/05/2024 10:00:24 AM  3485530120  ddveBootstrap.002 ddve.emclab.local_Bootstrap ddve.emclab.local:/networker-mc/Bootstrap
...(removed for brevity)...
  03/05/2024 01:02:54 PM  3152502350  ddveBootstrap.002 ddve.emclab.local_Bootstrap ddve.emclab.local:/networker-mc/Bootstrap
--- Failed Server Backup Save Sets ---
        none"
2024-03-05 13:02:59 networker-mc.emclab.local [UDP: [192.168.25.10]:45415->[192.168.25.10]:162]:
SNMPv2-SMI::mib-2.1.3.0 = Timeticks: (301267768) 34 days, 20:51:17.68   SNMPv2-SMI::snmpModules.1.1.4.1.0 = OID: NETWORKER-MIB::nwServerNotification    SNMPv2-SMI::mib-2.1.1.0 = STRING: "---Summary notification report---
Policy name:Server Protection
        Workflow name:Server backup, Workflow status:succeeded, Workflow start time:03/05/24 13:02:32, Duration:0 hours 0 minutes 27 seconds
                Action name:Server db backup, Action status:succeeded, Action start time:03/05/24 13:02:33, Duration:0 hours 0 minutes 25 seconds
                Action name:Expiration, Action status:succeeded, Action start time:03/05/24 13:02:58, Duration:0 hours 0 minutes 1 seconds"
root@networker-mc:~#

Additional Information

Weitere Informationen zu SNMP-Traps finden Sie im NetWorker Administration Guide: https://www.dell.com/support/home/product-support/product/networker/docs

Affected Products

NetWorker Family
Article Properties
Article Number: 000204267
Article Type: How To
Last Modified: 05 Mar 2024
Version:  2
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.