Ad Widget

Collapse

Sqlite database insert failures

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • heaje
    Senior Member
    Zabbix Certified Specialist
    • Sep 2009
    • 325

    #1

    Sqlite database insert failures

    I'm running Zabbix 1.9.6 (compiled on my own) on RHEL5. My setup is that I have a main Zabbix server (16 CPU, 64GB RAM) that runs just fine. Along with that I have an active Zabbix proxy server (2CPU, 6GB RAM) that is having issues with its SQLite3 database.

    I have a discovery rule for the proxy that is having issues inserting data into the SQLite database. Every time the proxy tries to write to the database the following error shows up in the logs:

    [Z3005] query failed: [0] proxy_dhistory.dcheckid may not be NULL [insert into proxy_dhistory (clock,druleid,type,ip,dns,status) values (1316636599,2,-1,'ip.add.xxx.xxx','server.fqdn.com',1)]


    I have tried recompiling to account for any oddities that could've showed up, but it didn't make any difference.

    Now here's the real kicker: I have this exact same setup in another environment. That other environment works great without any problems. In fact, the scripts I use to do all the compilation/configuring/install were used in both environments. I have compared the configuration in the non-working environment to the working environment and both are identical (with the exception of server names of course).

    Edit:

    I forgot to add that I have already verified that permissions on the file system were correct for the zabbix user to be able to write to the database. Everything checks out there.
    Last edited by heaje; 21-09-2011, 22:43. Reason: forgot minor detail
  • richlv
    Senior Member
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Oct 2005
    • 3112

    #2
    could you please report this on the tracker ?
    thanks.
    i'm assuming that the proxy has not been upgraded, and the sqlite db file contains latest schema, as created by the proxy itself, right ?
    Zabbix 3.0 Network Monitoring book

    Comment

    • heaje
      Senior Member
      Zabbix Certified Specialist
      • Sep 2009
      • 325

      #3
      Yes, you're right, the proxy has not been upgraded and it is the vanilla schema as created by the proxy itself.

      I'll get that added to the tracker as you suggested.

      Comment

      • heaje
        Senior Member
        Zabbix Certified Specialist
        • Sep 2009
        • 325

        #4
        I created the issue has requested on the tracker. The link to it is https://support.zabbix.com/browse/ZBX-4165 for anyone that cares to follow this.

        Comment

        Working...