Configuration:
Now we can send a test trap:
send-trap oid=1.2.2.1.2 type=string value="this is new way"
Make sure the trap has been recieved inside:
cat /tmp/zabbix_traps.tmp
Look inside 'zabbix_server.log':
tail -50 /var/log/zabbix/zabbix_server.log
It may contain lines such as:
unmatched trap received from "x.y.z.w"
In this case I need to create a new host with IP address "x.y.z.w" and at least assign the template which contains
snmptrap.fallback item:
Here is how to implement tome manual trap sending based on some condition:
The punchline is that I need to always use full path to send a trap:
/snmp send-trap oid=1.2.2.1.2 type=string value="55 is down"
No comments:
Post a Comment