Ad Widget

Collapse

Script zabbix agent - How to ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • code42
    Junior Member
    • Aug 2013
    • 4

    #1

    Script zabbix agent - How to ?

    Hi guys,

    I want to create many scripts which may give us the possibility to act on servers directly from maps or suchs.

    One simple agent command like "net start vss" works fine.
    Unfortunately when i want to use some command extensions, i always have an error like "Get value from agent failed: ZBX_TCP_READ() failed: [4] Interrupted system call".

    For example, the first script i want to use is about windows backup.
    The command i want to be sent is
    Code:
    cmd /c "wbadmin start backup -quiet"
    It returns the upper error
    I then tried
    Code:
    cmd /c "wbadmin start backup"
    It works through the agent. But wbadmin.exe really need the -quiet extension to be done, or it waits for an answer i cannot send.

    I tried to use a local .bat, same problem. And using powershell instead of cmd leads me to that trouble too.

    I gave a look at remote commands, but it do not seem to be what i want. It is supposed to be human act from the map, not automatically done with conditions at that time.

    Thanks in advance.
    Matt
  • BDiE8VNy
    Senior Member
    • Apr 2010
    • 680

    #2
    Is it for sure that the script ends within configured timeout?
    See: Remote commands

    Comment

    Working...