Ad Widget

Collapse

Run script on Host A from Item on Host B

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • greavette
    Member
    • Jul 2015
    • 82

    #1

    Run script on Host A from Item on Host B

    Hello Forum,

    I have a scenario where I monitor my CyberPower UPS devices over the network using Zabbix. There is an item called 'Remaining Runtime' for my UPS Host.

    I also have a server that is connected to the above UPS. In the event of a Power Failure I want to shutdown this server before the battery runs out.

    I would like to execute a script when the 'Remainting Runtime' item is below a threshold where the script will be executed on my server connected to that UPS.

    Does anyone have an example or a post I can follow on how to set up this type of scenario?

    Thank you.
  • Markku
    Senior Member
    Zabbix Certified SpecialistZabbix Certified ProfessionalZabbix Certified Expert
    • Sep 2018
    • 1781

    #2
    Hi, basically you want to create a script and an action that executes the script on the server when your conditions are met.

    Actions: https://www.zabbix.com/documentation...remote_command
    Scripts: https://www.zabbix.com/documentation...ration/scripts

    Markku

    Comment

    Working...