Ad Widget

Collapse

Remote command executing on one win host only

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bashman
    Senior Member
    • Dec 2009
    • 432

    #1

    Remote command executing on one win host only

    Hi!

    When an item is triggered my action "remote command" only executes a script on one windows host. I have the same configuration for all hosts. If I execute the script on each local host, it works. My Server is a linux and my hosts are windows.

    My conditions:

    A) Trigger = "MyTriggerName"
    (B) Trigger value = "PROBLEM"
    (C) Host template = "MyTemplateHosts"

    My remote command:

    {HOSTNAME}:C:\Inetpub\AdminScripts\uppools.vbs
    {HOSTNAME}:echo It works > C:\tmp\mylog.txt

    There is only one entry log on the host that remote command works.

    Why my script is only executed on one host?. Also "echo It works > C:\tmp\mylog.txt" only works for one host.

    Could it be a permisions problem?.
    Could anybody explain how zabbix conects to a windows host and a linux hosts?
    Last edited by bashman; 11-12-2009, 11:30.
    978 Hosts / 16.901 Items / 8.703 Triggers / 44 usr / 90,59 nvps / v1.8.15
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    http://www.zabbix.com/documentation/...remote_actions
    Zabbix 3.0 Network Monitoring book

    Comment

    • bashman
      Senior Member
      • Dec 2009
      • 432

      #3
      Hi Richlv!

      Thanks for showing me this new zabbix wiki version, but I still haven't resolve the problem yet. I think it could be a permission problem.

      Thanks again.
      978 Hosts / 16.901 Items / 8.703 Triggers / 44 usr / 90,59 nvps / v1.8.15

      Comment

      • richlv
        Senior Member
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Oct 2005
        • 3112

        #4
        did you notice what the correct syntax for hostgroup remote commands is ?
        Zabbix 3.0 Network Monitoring book

        Comment

        • bashman
          Senior Member
          • Dec 2009
          • 432

          #5
          Hi richlv!

          Yeah, syntaxt of hostgroup is ok, I only get this action executed on one host:

          {HOSTNAME}:echo It works > C:\tmp\mylog.txt

          I think it could be a permissions problem, thanks for your help.

          I'll response if I get the problem solved.
          978 Hosts / 16.901 Items / 8.703 Triggers / 44 usr / 90,59 nvps / v1.8.15

          Comment

          • richlv
            Senior Member
            Zabbix Certified Trainer
            Zabbix Certified SpecialistZabbix Certified Professional
            • Oct 2005
            • 3112

            #6
            it's not... doublecheck documentation on required syntax for referring to a group
            Zabbix 3.0 Network Monitoring book

            Comment

            Working...