Ad Widget

Collapse

Distributed monitoring problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Palmertree
    Senior Member
    • Sep 2005
    • 746

    #16
    Look at the following to change timeouts:



    You have to change it in the C code and the zabbix_server.conf file for trapper.

    Comment

    • r3dn3ck
      Member
      • Jul 2008
      • 43

      #17
      Originally posted by Alvils
      Seems that zabbix server tries to insert data in PostgreSQL like it was MySQL.



      I created a quick patch to check this:
      In file src/zabbix_server/trapper/nodehistory.c
      Find line 348. It should look like:
      zbx_snprintf_alloc(sql, sql_allocated, &sql_offset, len + 8, "0x%s,",
      Change that to
      zbx_snprintf_alloc(sql, sql_allocated, &sql_offset, len + 38, "encode(decode('%s','hex'),'escape'),

      Recompile Zabbix and that should work.

      Yet, it still crashes occasionally. Perhaps after receiving data from Zabbix remote nodes. For now, I stopped the remote nodes and will see if it still crashes. If not, I will take a look at this problem again...

      Would this change apply to a mysql back-ended setup?

      Comment

      • vinny
        Senior Member
        • Jan 2008
        • 145

        #18
        I face this bug too...
        I tried on the master & slaves nodes to modify the nodehistory.c but without success.

        Was this bug corrected ?

        vinny
        -------
        Zabbix 1.8.3, 1200+ Hosts, 40 000+ Items...zabbix's everywhere

        Comment

        • kombat
          Junior Member
          • Jun 2008
          • 1

          #19
          Hi,
          We have 4 nodes with mysql but when we decided mysql replace by postrge.
          We have the same problem with nodes and postgres because on mysql it's system are working well.

          maybe it's bug ?

          Sorry, my english

          Comment

          Working...