Ad Widget

Collapse

Action syntax required to restart a remote machine

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tahir.bhatti
    Member
    • Dec 2006
    • 56

    #1

    Action syntax required to restart a remote machine

    I m using zabbix since last two months for monitoring my network. now I m working with triggers and actions. trigger is ok but i m facing problem with
    actions.

    Situation is as, I created a trigger that become true when the processor load
    become greater then 75%. so now i want to create an action that when this
    trigger become true then the action against this trigger is that it should
    restart the machine. the machine/host is Windows based.
  • dsipe
    Senior Member
    • Oct 2006
    • 184

    #2
    Look @the attached image.
    I made this action to test the remote action to reboot my pc [ pc-dsipe2 ].

    When i modify a file, the trigger 'Fichier c:toto.txt modifie' raised ON.
    On that two conditions, i reboot the PC.
    Remember to enable remote command on the agent side for this to work.
    Attached Files

    Comment

    • Alexei
      Founder, CEO
      Zabbix Certified Trainer
      Zabbix Certified SpecialistZabbix Certified Professional
      • Sep 2004
      • 5654

      #3
      Thanks for the message, I added you recipe to ZABBIX Manual
      Alexei Vladishev
      Creator of Zabbix, Product manager
      New York | Tokyo | Riga
      My Twitter

      Comment

      • Ismael Medina
        Junior Member
        • Mar 2007
        • 15

        #4
        Problem starting windows service

        I'm testing Zabbix features, now I'm trying to execute a remote comand but I have an issue.

        I have a trigger that fires when a zero value is returned by a user parameter that is a program at the client side and it has been sending data to zabbix without any problems

        The trigger is {HOSTNAME}-wr_inventory
        Expression is {win-svrsoptec:wr_inventory.last(0)} = 0

        I created an action linked to this trigger but is doesn't do nothing, the trigger depends on this conditions

        Trigger description like "win-svrsoptec-wr_inventory"
        Trigger value = "ON"

        and it fires this remote command

        win-svrsoptec:C:\WINDOWS\system32\net.exe start telnet > output.txt

        Could you help me about what i should do???.

        The zabbix service runs under "Local System" acount and it's listening fine 'couse it calls my user parameter.

        Thanks in advance

        Comment

        Working...