Ad Widget

Collapse

Deploying files on hosts

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • alaahil
    Junior Member
    • Oct 2023
    • 18

    #1

    Deploying files on hosts

    Hello,

    I am not sure that this is the correct place to post this question, but here it goes. we have deployed a large zabbix environment and the server is connected to proxies in a star topology. However the proxy and the hosts are on a network that are separate from that of the zabbix server and the database (as in the attached image). The communication is happening through zabbix ports while every thing else is closed.

    I have some powershell scripts that I would like to deploy and execute regularly on the proxies and on the hosts. We are constantly updating these scripts (ansible and powershell scripts) and would like these scripts to be regularly updated on the proxies and on the agent so that the latest version is always executed. Also we would like to refrain from using git directly on the machines. Does zabbix by any chance have the capability to migrate files without having to open ssh ports between the networks?
    Attached Files
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4806

    #2
    Zabbix does not distribute any files. You need to find separate way to update your scripts.

    Comment

    • LenR
      Senior Member
      • Sep 2009
      • 1005

      #3
      Never done this, just sharing these thoughts....

      1. Put a version of the script in a first line comment.
      2. Have a Zabbix item check for the proper version (set the desired version in a macro)
      3. Have a remote command to git-pull if the desired version doesn't match.

      It may be a bigger hole than opening ssh to a central jump-box specific IP :-)

      Comment

      • tim.mooney
        Senior Member
        • Dec 2012
        • 1427

        #4
        Originally posted by alaahil

        .... we have deployed a large zabbix environment ...

        I have some powershell scripts that I would like to deploy and execute regularly on the proxies and on the hosts. We are constantly updating these scripts (ansible and powershell scripts)
        I was going to comment that the right solution for your problem isn't to hack something together with Zabbix (no matter how clever LenR's idea is) but to use the correct tool for the job: a configuration management system.

        But then you mention ansible, so you already have a configuration management system? Why aren't you managing the scripts with ansible ?

        Also, you mention PowerShell on your Zabbix proxies. Are you using PowerShell on Linux?

        Comment

        Working...