Ad Widget

Collapse

icmpping simple check fails

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • davidpe
    Junior Member
    • Mar 2007
    • 18

    #1

    icmpping simple check fails

    I'm using Zabbix 1.3.3(beta) and when I setup a simple check for icmpping or icmppingsec all the zabbix server processes exit. Below is the log file showing that it dies on a sql query.

    2828:20070315:115826 HOSTNAME [opennms.channeladvisor.com]
    2828:20070315:115826 In do_ping()
    2828:20070315:115826 Update IP [opennms.channeladvisor.com is alive (5.91 ms)]
    2828:20070315:115826 Mseconds [5.910000]
    2828:20070315:115826 IP [opennms.channeladvisor.com] alive [1]
    2828:20070315:115826 In process_value([email protected])
    2828:20070315:115826 In process_ip([opennms.channeladvisor.com])
    2828:20070315:115826 End of process_ip([-1])
    2828:20070315:115826 Executing query:select i.itemid,i.key_,h.host,h.port,i.delay,i.descriptio n,i.nextcheck,i.type,i.snmp_comm unity,i.snmp_oid,h.useip,h.ip,i.history,i.lastvalu e,i.prevvalue,i.hostid,h.status,i.value_type,h.err ors_from,i.snmp_port,i.delta ,i.prevorgvalue,i.lastclock,i.units,i.multiplier,i .snmpv3_securityname,i.snmpv3_securitylevel,i.snmp v3_authpassphrase,i.snmpv3_p rivpassphrase,i.formula,h.available,i.status,i.tra pper_hosts,i.logtimefmt,i.valuemapid,i.delay_flex, h.dns from hosts h, items i where h.status=0 and h.hostid=i.hostid and h.host='opennms.channeladvisor.com' and i.key_='icmpping' and i.status=0 and i.type=3 and configid>=100000000000000*0 and configid<=(100000000000000*0+99999999999999)
    2828:20070315:115826 Query::select i.itemid,i.key_,h.host,h.port,i.delay,i.descriptio n,i.nextcheck,i.type,i.snmp_community,i.s nmp_oid,h.useip,h.ip,i.history,i.lastvalue,i.prevv alue,i.hostid,h.status,i.value_type,h.errors_from, i.snmp_port,i.delta,i.prevor gvalue,i.lastclock,i.units,i.multiplier,i.snmpv3_s ecurityname,i.snmpv3_securitylevel,i.snmpv3_authpa ssphrase,i.snmpv3_privpassph rase,i.formula,h.available,i.status,i.trapper_host s,i.logtimefmt,i.valuemapid,i.delay_flex,h.dns from hosts h, items i where h.s tatus=0 and h.hostid=i.hostid and h.host='opennms.channeladvisor.com' and i.key_='icmpping' and i.status=0 and i.type=3 and conf igid>=100000000000000*0 and configid<=(100000000000000*0+99999999999999)
    2828:20070315:115826 Query failed:Unknown column 'configid' in 'where clause' [1054]
    2816:20070315:115826 One child process died. Exiting ...
    2816:20070315:115826 zbx_on_exit() called.
    2818:20070315:115826 Got signal. Exiting ...
    2827:20070315:115826 Got signal. Exiting ...
    2840:20070315:115826 Got signal. Exiting ...
    2831:20070315:115826 Got signal. Exiting ...
    2826:20070315:115826 Got signal. Exiting ...
    2848:20070315:115826 Got signal. Exiting ...
    2835:20070315:115826 Got signal. Exiting ...
    2817:20070315:115826 Got signal. Exiting ...
    2825:20070315:115826 Got signal. Exiting ...
    2836:20070315:115826 Got signal. Exiting ...
    2819:20070315:115826 Got signal. Exiting ...
    2847:20070315:115826 Got signal. Exiting ...
    2838:20070315:115826 Got signal. Exiting ...
    2820:20070315:115826 Got signal. Exiting ...
    2846:20070315:115826 Got signal. Exiting ...
    2824:20070315:115826 Got signal. Exiting ...
    2842:20070315:115826 Got signal. Exiting ...
    2821:20070315:115826 Got signal. Exiting ...
    2845:20070315:115826 Got signal. Exiting ...
    2823:20070315:115826 Got signal. Exiting ...
    2822:20070315:115826 Got signal. Exiting ...
    2816:20070315:115828 ZABBIX Server stopped
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    Use 1.3.3 database schema.
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • davidpe
      Junior Member
      • Mar 2007
      • 18

      #3
      Where is this 1.3.3 database schema? I see a patch.sql script in the source download in \upgrades\dbpatches\1.3\mysql. I looked at the script and it drops the tables and renames them to %tablename%_tmp. I'd rather not have to re-create my hosts and configurations.

      Comment

      • Alexei
        Founder, CEO
        Zabbix Certified Trainer
        Zabbix Certified SpecialistZabbix Certified Professional
        • Sep 2004
        • 5654

        #4
        The patch is for upgrade from 1.1.x. ZABBIX 1.3.3 schemas can be found in usual location in create/<db engine>/. Read documentation (PDF) for more details.
        Alexei Vladishev
        Creator of Zabbix, Product manager
        New York | Tokyo | Riga
        My Twitter

        Comment

        • davidpe
          Junior Member
          • Mar 2007
          • 18

          #5
          Ok, I'm using a fresh install of 1.3.3 so I am using the correct schema. Can I manually alter the correct table for this column 'configid' that is missing?
          Last edited by davidpe; 15-03-2007, 19:59.

          Comment

          • davidpe
            Junior Member
            • Mar 2007
            • 18

            #6
            Anyone have any ideas about the missing 'configid' field?

            Comment

            • ghislain
              Senior Member
              • Jun 2005
              • 160

              #7
              i have the very same error after a fresh install of 1.3.3.

              The upgrade script failed to upgrade 1.1.6 so i dropped the base and recreated using schemal.sql, data.sql and image.sql but zabbix dies with:

              10519:20070318:021503 Query::select i.itemid,i.key_,h.host,h.port,i.delay,i.descriptio n,i.nextcheck,i.type,i.snmp_community,i.snmp_oid,h .useip,h.ip,i.history,i.lastvalue,i.prevvalue,i.ho stid,h.status,i.value_type,h.errors_from,i.snmp_po
              rt,i.delta,i.prevorgvalue,i.lastclock,i.units,i.mu ltiplier,i.snmpv3_securityname,i.snmpv3_securityle vel,i.snmpv3_authpassphrase,i.snmpv3_privpassphras e,i.formula,h.available,i.status,i.trapper_hosts,i .logtimefmt,i.valuemapid,i.delay_flex
              ,h.dns from hosts h, items i where h.status=0 and h.hostid=i.hostid and h.host='aqueos.com' and i.key_='icmpping' and i.status=0 and i.type=3 and configid>=100000000000000*0 and configid<=(100000000000000*0+99999999999999)
              10519:20070318:021503 Query failed:Unknown column 'configid' in 'where clause' [1054]
              10493:20070318:021503 One child process died. Exiting ...



              it must be missing something.

              regards,
              Ghislain.
              Regards,
              Ghislain.

              Comment

              • ghislain
                Senior Member
                • Jun 2005
                • 160

                #8
                i searched in the sql files and configid appears only in the config table, not in the host or item:

                CREATE TABLE config (
                configid bigint unsigned DEFAULT '0' NOT NULL,
                alert_history integer DEFAULT '0' NOT NULL,
                event_history integer DEFAULT '0' NOT NULL,
                refresh_unsupported integer DEFAULT '0' NOT NULL,
                work_period varchar(100) DEFAULT '1-5,00:00-24:00' NOT NULL,
                alert_usrgrpid bigint unsigned DEFAULT '0' NOT NULL,
                PRIMARY KEY (configid)
                );

                any idea ?

                regards,
                Ghislain.
                Regards,
                Ghislain.

                Comment

                • ghislain
                  Senior Member
                  • Jun 2005
                  • 160

                  #9
                  patch to ./src/zabbix_server/pinger/pinger.c

                  i found the issue in the file:

                  ./src/zabbix_server/pinger/pinger.c

                  i changed :

                  505: result = DBselect("select refresh_unsupported from config where " ZBX_COND_NODEID, LOCAL_NODE("configid"));


                  into
                  505: result = DBselect("select refresh_unsupported from config where " ZBX_COND_NODEID, LOCAL_NODE("h.hostid"));


                  and it works fine now , seems to be a typo in the code.

                  regards,
                  Ghislain.
                  Last edited by ghislain; 20-03-2007, 16:23.
                  Regards,
                  Ghislain.

                  Comment

                  • monsieurcanard
                    Member
                    • Mar 2007
                    • 40

                    #10
                    Just to confirm, I too used the 1.3.3 schema and have the very same problem. Will try correcting the code as above and recompiling :-)

                    Alexei, can you confirm that this fix has been committed?

                    Many thanks,
                    Matt

                    Comment

                    • Alexei
                      Founder, CEO
                      Zabbix Certified Trainer
                      Zabbix Certified SpecialistZabbix Certified Professional
                      • Sep 2004
                      • 5654

                      #11
                      The problem has been fixed in pre-1.3.4. Replace 'configid' by 'h.hostid' as suggested to make it work.
                      Alexei Vladishev
                      Creator of Zabbix, Product manager
                      New York | Tokyo | Riga
                      My Twitter

                      Comment

                      • monsieurcanard
                        Member
                        • Mar 2007
                        • 40

                        #12
                        Thanks Alexei :-)

                        Comment

                        Working...