Ad Widget

Collapse

Extracting data from SNMP TRAPS via script.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jesras
    Junior Member
    • Dec 2022
    • 3

    #1

    Extracting data from SNMP TRAPS via script.

    I receive snmptraps from a common host, hosting multible customers and services that I need alarm traps from.
    I have setup 5-6 traps for each customer per service in templates. but it becomes quite a job maintaining all these templates/customers.
    What I would like is to setup only one Template with the Items & Triggers of needed alarms "5-6 pieces" and hopefully create a script to resolve the <service name> & <customer name> before adding the alarm to zabbix monitor.
    examble of a regular expression from a trap.

    snmptrap [regex] "<service name1> fails to upload for <customer name3>"
    snmptrap [regex] "<service name2> fails to upload for <customer name5>"
    snmptrap [regex] "<service name2> token error for <customer name5>"

    Anyone who is familiar with such solution?​
Working...