Ad Widget

Collapse

Auto clear Zabbix Trapper

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rwelle
    Junior Member
    • Mar 2021
    • 8

    #1

    Auto clear Zabbix Trapper

    Hi I am very new to Zabbix and I would like to know if the following is possible.

    I have a script that checks all servers in AD and if it finds servers that are in AD and haven't logged on for a considerable amount of time a message if being sent to Zabbix with the zabbix_sender.exe.
    this script runs on ServerA and the data is being picked up by Zabbix, but I want this "Problem" to automatically close after 20 hours because I run this script once per day.
    Is it possible to get this done? I have tried several things with the .nodata() expression, but it is not working the way I want.
    The problems are closing as soon as the last zabbix_sender.exe message has been sent, but I want each trap to be checked on its own.
  • rwelle
    Junior Member
    • Mar 2021
    • 8

    #2
    I fixed solved my own question. For the people that are interrested this is what I did.

    I have setup a Zabbix Trapper and created an item for the server sending the traps.
    The traps are being sent with zabbix_trapper.exe and they are sent with a specific string in the message value (-o).
    Within the item I have configured the Problem to trigger on .str() with that specific string (use lowercase because any capital will make it stop working).
    As a Recovery method I used a Recovery Expression again with the .str() method, but a different string.
    This will clear any problem created by the trap

    Comment

    Working...