Ad Widget

Collapse

zabbix-proxy configuration

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vrolok
    Junior Member
    • Jan 2011
    • 22

    #1

    zabbix-proxy configuration

    I'm stuck, and I think after reading so many threads about proxy,active/passive checks I completely missed the point.
    I have a zabbix-server, a sql-server and a new proxy that I'm trying to setup.

    Zabbix Server (10.0.1.10) conf:
    Code:
    ListenPort=10051
    LogFile=/tmp/zabbix_server.log
    DBHost=10.0.2.10
    DBName=zabbix
    DBUser=zabbix
    DBPassword=XXX
    StartPollers=40
    StartIPMIPollers=5
    StartPollersUnreachable=5
    StartTrappers=5
    StartPingers=5
    StartHTTPPollers=1
    HousekeepingFrequency=24
    SenderFrequency=60
    CacheSize=8M
    CacheUpdateFrequency=60
    StartDBSyncers=10
    HistoryCacheSize=8M
    TrendCacheSize=4M
    HistoryTextCacheSize=12M
    Timeout=30
    UnreachablePeriod=60
    UnreachableDelay=30
    AlertScriptsPath=/etc/zabbix/alert.d/
    FpingLocation=/usr/bin/fping
    Proxy conf (Active Mode in the GUI):
    Code:
    Server=10.0.1.10
    Hostname=proxy.contoso.com
    LogFile=/var/log/zabbix/zabbix_proxy.log
    LogFileSize=0
    PidFile=/var/run/zabbix/zabbix_proxy.pid
    DBName=/tmp/proxy.db
    DBSocket=/var/lib/mysql/mysql.sock
    ProxyOfflineBuffer=2
    HousekeepingFrequency=24
    And there is an agent (which I'm trying to setup to be monitored by proxy).
    I've changed "Monitored by proxy" to proxy.contoso.com in GUI.

    Config is:
    Code:
    PidFile=/var/run/zabbix/zabbix_agentd.pid
    LogFile=/var/log/zabbix/zabbix_agentd.log
    LogFileSize=0
    Server=proxy.contoso.com
    Hostname=testbox
    ServerPort=10051
    But there is no communication at all. All items go to more than 10 minutes state in queue. Could somebody point me where is my mistake.
    Thanks!
  • vrolok
    Junior Member
    • Jan 2011
    • 22

    #2
    I've resolved my proxy config. But...
    I'm having issues with icmpping, icmppingsec through proxy, those keys simply don't work. The proxy server has fping installed and permissions are set correctly. Also snmp doesn't work as well.

    Comment

    • efrain02
      Banned
      • Apr 2011
      • 81

      #3
      Could you explain a little bit more what do you do to configure your proxy monitoring?

      Comment

      • vrolok
        Junior Member
        • Jan 2011
        • 22

        #4
        I've just followed this link

        Comment

        • vrolok
          Junior Member
          • Jan 2011
          • 22

          #5
          SNMP fixed but I can't get simple checks to work properly. ICMP keys don't work at all through proxy. Don't now what to do next.

          Comment

          • RobSimons
            Junior Member
            Zabbix Certified Specialist
            • Nov 2012
            • 3

            #6
            ICMP checks through proxy

            After having checked all config files and permissions for so many times and finding nothing wrong I finaly realized it was time to disable selinux ..

            Things started working from that moment on.

            Maybe this information can help someone.

            Comment

            • bruor
              Junior Member
              • Apr 2013
              • 3

              #7
              Thank you robsimons

              I was fighting with getting an ICMP pinger working this afternoon and your reply in this thread was the fix I needed to get things online!

              Disabling SElinux on the proxies resolved my hung status of "zabbix was just restarted" and "trigger was just created" messages and started giving me real data.

              Comment

              • nick0909
                Member
                • Apr 2013
                • 73

                #8
                I had the same problem and figured out how to add an SELinux policy instead of disabling it altogether. If you are interested I posted the steps I had to use here.

                Comment

                Working...