Ad Widget

Collapse

Is this possible?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dmcconnell
    Junior Member
    • Jun 2016
    • 3

    #1

    Is this possible?

    If I create an item in Zabbix as type Zabbix agent and system.run as the key, is there any way to have Zabbix copy a powershell script to the server instead of it needing to already exist there?

    Here is the expression in the Key field: system.run[powershell.exe -command c:\scripts\get-ipv6status.ps1]

    And this does work if the script already exists.

    I assume that the scripts under Administration -> Script in no way tie in with items?

    Thanks,
    David
  • DmitryL
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • May 2016
    • 278

    #2
    Hi dmcconnell!

    Administration -> Scripts is a place for internal scripts only. They will execute locally on server.

    Perhaps you could make a script on Zabbix server, that sends a copy of powershell script to desired host.

    Althrough there could be some issues with firewall and access rights to copy of script.

    Best regards,
    Dmitry
    Last edited by DmitryL; 09-06-2016, 16:52.

    Comment

    • Linwood
      Senior Member
      • Dec 2013
      • 398

      #3
      If it's for Windows in Active Directory, one way I've used is to put them in the netlogon folder (or a subfolder of it), then AD replication will make it available on all DC's, and available over a well known path to other servers. That let's you push out new scripts fairly easily.

      It would be nice if there was an integrated distribution function inside of the agent.

      Comment

      Working...