12.5. SNMPv3 通知の設定
SNMP の設定
Tendrl-ansible は、10 個のdrl-notifier をインストールし、設定します。10drl-notifier ファイルを設定したら、SNMPv3 トラップ通知を設定します。
10drl-notifier設定ファイルを開きます。# cat /etc/tendrl/notifier/snmp.conf.yaml
v3 トラップアラートのファイルでパラメーターを更新します。
For v3_endpoint: # For more hosts you can add more entry with endpoint2, endpoint3, etc endpoint1: # Name or IP address of the remote SNMP host. host_ip: <Receiving machine ip> # Name of the user on the host that connects to the agent. username: <Username of receiver> # Enables the agent to receive packets from the host. auth_key: <md5 password> # The private user password priv_key: <des password> # For v2_endpoint: # For more hosts you can add more entry with endpoint2, endpoint3, etc endpoint1: # Name or IP address of the remote SNMP host. host_ip: <Receiving machine ip> community: <community name>10drl-notifier サービスを再起動します。
systemctl restart tendrl-notifier