Ad Widget

Collapse

Shutdown host if UPS < xx% remaining

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nicolasfo
    Member
    • Jul 2015
    • 56

    #1

    Shutdown host if UPS < xx% remaining

    Hello,

    If power goes down on my UPS and % of remaining power reaches a certain level, I'd like to shutdown hosts.
    I already monitor my UPSs and I have the % of remaining power.

    To make my tests, I created two tests hosts, 2 linux servers. The first is the host to shutdown and the second hosts an Apache server. If I stop the Apache service on the second host, the first host need to be shutdown.
    I precise that I've installed Aabbix agent on both tests servers and I'm able to see if Apache is running or not on the second server.

    To do so, I tried to create a trigger on the first host, like this :
    Code:
    {test2.domain.lan:net.tcp.service[http].last()}=0
    but the trigger is created on the second test server and not on the first (the on to shutdown).

    I'm stuck at this point (not go so far, I admit...)

    So is there a solution to do what I want ?!

    Thanks in advance

    Nicolas
Working...