Ad Widget

Collapse

Zabbix Agent installed on VCSA 6.0?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vcsa
    Junior Member
    • Sep 2015
    • 10

    #1

    Zabbix Agent installed on VCSA 6.0?

    I've posted this question on VMware communities as well but I figured I'd ask Zabbix folks directly as well:

    How do I get Zabbix Agent working on VCSA 6.0? (VMware vCenter Server Appliance 6.0)

    It's SLES (Linux) with an apparently proprietary firewall system.

    I'm trying to get the Zabbix Agent installed on the server in order to monitor the baseline foodgroups of the server (CPU, RAM, disk) as well as some basic services (postgre and VPXD).

    Is the Zabbix Agent the best way to do this? Or is there a better way?
  • vcsa
    Junior Member
    • Sep 2015
    • 10

    #2
    I just wanted to say that a colleague discovered that you can add a firewall exception directly on VCSA 6.0 using the iptables command.

    Comment

    • reinard
      Junior Member
      • Jan 2017
      • 1

      #3
      What worked for me

      This is what i did to install the agent:

      Code:
      zypper addrepo http://download.opensuse.org/repositories/server:monitoring/SLE_11_SP3/server:monitoring.repo
      zypper refresh
      zypper install zabbix-agent
      This didn't properly setup the log and pid dirs for me, so

      Code:
      mkdir /var/run/zabbix
      chown zabbix:zabbix /var/run/zabbix/ /var/log/zabbix/
      Then edit /etc/zabbix/zabbix-agentd.conf as needed. It also doesn't properly setup zabbix-agent as a service, so I manually start it:

      Code:
      /etc/init.d/zabbix-agentd start
      and add the above line to /etc/init.d/after.local as well

      Regarding the firewall this rule opens the port (I could not figure out a way to adjust the port filter via the web interface):

      Code:
      iptables -A port_filter -p tcp -m tcp --dport 10050 -j ACCEPT
      you'll have to devise some way of saving/restoring this on boot

      for me i did

      Code:
      iptables-save > /etc/iptables.rules
      and then add

      Code:
      iptables-restore -c < /etc/iptables.rules
      into /etc/init.d/after.local

      Comment

      • Sean35
        Junior Member
        • Jan 2015
        • 19

        #4
        reinard - Thanks for taking the time to post this, hugely helpful.

        Comment

        • ErikS
          Junior Member
          • Feb 2017
          • 1

          #5
          Worked for me too. Thanks reinard!

          Comment

          • bbrendon
            Senior Member
            • Sep 2005
            • 870

            #6
            A slightly different way to the above which was very solid. Thanks!

            Code:
            # Add this to /etc/init.d/after.local (x.x.x.x is the zabbix server)
            
            /usr/sbin/iptables -I INPUT -s x.x.x.x -j ACCEPT
            
            # Setup the service to start on boot.
            insserv zabbix-agentd
            I tried to figure out a more graceful way to modify the firewall rules and couldn't. Not a big fan of messing with restore/save myself.
            Unofficial Zabbix Expert
            Blog, Corporate Site

            Comment

            • troffasky
              Senior Member
              • Jul 2008
              • 567

              #7
              Would make more sense to use active agent items if allowing connections in to the VCSA is a hassle.

              Comment

              Working...