How to set automatic trigger for snmp trap?

problem description

trap is stereotyped and talked about on the Internet. Now I know how the client actively sends alarms to the server through commands, but how to configure the client to automatically monitor which monitoring items on this machine have problems and report them to the server? (snmp device is Linux)

the platform version of the problem and what methods you have tried

initially located to add notificationEvent and monitor, to / etc/snmp/snmpd.conf but how to configure it. No detailed instructions were found, and the experimental configuration did not report automatically.

related codes

notificationEvent memTotalTrap memTotalReal memTotalSwap
monitor -r 10 -e memTotalTrap "Total memory" memTotalReal < 1000000000000

what about trap automatically triggering alarms on linux clients?

May.31,2021

Hello, have you solved this problem now?

Menu