Ad Widget

Collapse

Executing script after trigger is activated

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • QQme
    Junior Member
    • May 2022
    • 2

    #1

    Executing script after trigger is activated

    Hi. I would like to configure the execution of an external script that will only be executed when a trigger fired. Specifically, what I want is for the script to run only when a trigger is triggered with a message that the disk is more than 80% occupied. I have a script, I installed the agent on an external computer and uploaded my script there. I just can't find the option to trigger the item only when the trigger is fired. Is there such a possibility in zabbix at all? (I tried via Actions, but it failed :[ )

    Version of zabbix is 5.0.20

  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    Using an "action" to attempt automatic problem remediation via a script is the correct approach, so it sounds like you're on the right path.

    How did it fail? Was anything logged in the zabbix_server.log file? Was anything logged in the zabbix agent log on the client system? If you browse the Zabbix web interface and go to Monitoring->Problems and then mouse over the "Actions" column for the specific problem event, does the text that's displayed when you're mousing over that area display any clues?

    Did you carefully read https://www.zabbix.com/documentation...remote_command

    Comment

    Working...