Ad Widget

Collapse

не поступают данные zabbix 1.8

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sapsan
    Junior Member
    • Jul 2010
    • 6

    #1

    не поступают данные zabbix 1.8

    Установил на debian lenny zabbix 1.8 всё замечательно встало, но не поступают данные. В логах агента:

    Code:
    asterpbx:/var/log/zabbix-agent# cat zabbix_agentd.log
     27456:20100705:121103.932 Zabbix Agent stopped. Zabbix 1.8.2 (revision 11211).
     27573:20100705:121106.394 Zabbix Agent started. Zabbix 1.8.2 (revision 11211).
     27573:20100705:121106.394 cfg: para: [Server] val [localhost]
     27573:20100705:121106.394 cfg: para: [Hostname] val [localhost]
     27573:20100705:121106.394 cfg: para: [StartAgents] val [5]
     27573:20100705:121106.394 cfg: para: [DebugLevel] val [4]
     27573:20100705:121106.394 cfg: para: [PidFile] val [/var/run/zabbix-server/zabbix_agentd.pid]
     27573:20100705:121106.394 cfg: para: [LogFile] val [/var/log/zabbix-agent/zabbix_agentd.log]
     27573:20100705:121106.394 cfg: para: [Timeout] val [3]
     27574:20100705:121106.394 zabbix_agentd collector started
     27575:20100705:121106.394 zabbix_agentd listener started
     27576:20100705:121106.394 zabbix_agentd listener started
     27577:20100705:121106.395 zabbix_agentd listener started
     27578:20100705:121106.395 zabbix_agentd listener started
     27574:20100705:121106.395 In collector_diskdevice_get("")
     27574:20100705:121106.395 In collector_diskdevice_add("")
     27579:20100705:121106.395 zabbix_agentd listener started
     27580:20100705:121106.395 zabbix_agentd active check started [localhost:10051]
     27580:20100705:121106.395 In init_active_metrics()
     27580:20100705:121106.395 In send_buffer('localhost','10051')
     27580:20100705:121106.395 Values in the buffer 0 Max 100
     27580:20100705:121106.395 refresh_active_checks('localhost',10051)
     27580:20100705:121106.395 Sending [{
            "request":"active checks",
            "host":"localhost"}]
     27580:20100705:121106.395 Before read
     27580:20100705:121106.396 Got [NOT OK]
     27580:20100705:121106.396 In parse_list_of_checks()
     27580:20100705:121106.396 In disable_all_metrics()
     27580:20100705:121106.396 Can't parse list of active checks. Can't open JSON object "NOT OK"
     27580:20100705:121106.396 In process_active_checks('localhost',10051)
     27580:20100705:121106.396 In get_min_nextcheck()
     27580:20100705:121106.396 Sleeping for 1 seconds
     27580:20100705:121107.396 In send_buffer('localhost','10051')
     27580:20100705:121107.396 Values in the buffer 0 Max 100
     27580:20100705:121107.397 Sleeping for 1 seconds
  • ruswold
    Senior Member
    • Mar 2010
    • 210

    #2
    Я бы смотрел логи сервера, а не агента.

    Comment

    • sapsan
      Junior Member
      • Jul 2010
      • 6

      #3
      Originally posted by ruswold
      Я бы смотрел логи сервера, а не агента.
      Вроде в логах сервера ничего не обычного

      Code:
       32496:20100705:143429 Starting zabbix_server. ZABBIX 1.4.6.
       32496:20100705:143429 **** Enabled features ****
       32496:20100705:143429 SNMP monitoring:       YES
       32496:20100705:143429 WEB monitoring:        YES
       32496:20100705:143429 Jabber notifications:  YES
       32496:20100705:143429 IPv6 support:           NO
       32496:20100705:143429 **************************
       32496:20100705:143429 Query::select distinct t.triggerid,t.expression,t.description,t.status,t.priority,t.value,t.url,t.comments from hosts h,items i,triggers t,functions f where f.triggerid=t.triggerid and f.itemid=i.itemid and h.hostid=i.hostid and i.nextcheck+i.delay<1278326069 and i.key_<>'status' and h.status not in (4,3) and i.type not in (2)
       32496:20100705:143429 Query failed:Unknown column 'i.nextcheck' in 'where clause' [1054]
       32497:20100705:143429 server #1 started [Poller. SNMP:ON]
       32499:20100705:143429 server #3 started [Poller. SNMP:ON]
       32498:20100705:143429 server #2 started [Poller. SNMP:ON]
       32499:20100705:143429 Query::select i.itemid,i.key_,h.host,h.port,i.delay,i.description,i.nextcheck,i.type,i.snmp_community,i.snmp_oid,h.useip,h.ip,i.history,i.lastvalue,i.prevvalue,i.hostid,h.status,i.value_type,h.errors_from,i.snmp_port,i.delta,i.prevorgvalue,i.lastclock,i.units,i.multiplier,i.snmpv3_securityname,i.snmpv3_securitylevel,i.snmpv3_authpassphrase,i.snmpv3_privpassphrase,i.formula,h.available,i.status,i.trapper_hosts,i.logtimefmt,i.valuemapid,i.delay_flex,h.dns from hosts h, items i where i.nextcheck<=1278326069 and i.status in (0,3) and i.type not in (2,7,9) and h.status=0 and h.disable_until<=1278326069 and h.errors_from=0 and h.hostid=i.hostid and mod(i.itemid,5)=2 and i.key_ not in ('status','icmpping','icmppingsec','zabbix[log]') and  h.hostid>=100000000000000*0 and h.hostid<=(100000000000000*0+99999999999999)  order by i.nextcheck
       32499:20100705:143429 Query failed:Unknown column 'i.nextcheck' in 'field list' [1054]
       32497:20100705:143429 Query::select i.itemid,i.key_,h.host,h.port,i.delay,i.description,i.nextcheck,i.type,i.snmp_community,i.snmp_oid,h.useip,h.ip,i.history,i.lastvalue,i.prevvalue,i.hostid,h.status,i.value_type,h.errors_from,i.snmp_port,i.delta,i.prevorgvalue,i.lastclock,i.units,i.multiplier,i.snmpv3_securityname,i.snmpv3_securitylevel,i.snmpv3_authpassphrase,i.snmpv3_privpassphrase,i.formula,h.available,i.status,i.trapper_hosts,i.logtimefmt,i.valuemapid,i.delay_flex,h.dns from hosts h, items i where i.nextcheck<=1278326069 and i.status in (0,3) and i.type not in (2,7,9) and h.status=0 and h.disable_until<=1278326069 and h.errors_from=0 and h.hostid=i.hostid and mod(i.itemid,5)=0 and i.key_ not in ('status','icmpping','icmppingsec','zabbix[log]') and  h.hostid>=100000000000000*0 and h.hostid<=(100000000000000*0+99999999999999)  order by i.nextcheck
       32499:20100705:143429 Query::select count(*),min(nextcheck) from items i,hosts h where h.status=0 and h.disable_until<1278326069 and h.errors_from=0 and h.hostid=i.hostid and i.status in (0,3) and i.type not in (2,7,9) and mod(i.itemid,5)=2 and i.key_ not in ('status','icmpping','icmppingsec','zabbix[log]') and h.hostid>=100000000000000*0 and h.hostid<=(100000000000000*0+99999999999999) 
       32497:20100705:143429 Query failed:Unknown column 'i.nextcheck' in 'field list' [1054]
       32499:20100705:143429 Query failed:Unknown column 'nextcheck' in 'field list' [1054]
       32497:20100705:143429 Query::select count(*),min(nextcheck) from items i,hosts h where h.status=0 and h.disable_until<1278326069 and h.errors_from=0 and h.hostid=i.hostid and i.status in (0,3) and i.type not in (2,7,9) and mod(i.itemid,5)=0 and i.key_ not in ('status','icmpping','icmppingsec','zabbix[log]') and h.hostid>=100000000000000*0 and h.hostid<=(100000000000000*0+99999999999999) 
       32497:20100705:143429 Query failed:Unknown column 'nextcheck' in 'field list' [1054]
       32498:20100705:143429 Query::select i.itemid,i.key_,h.host,h.port,i.delay,i.description,i.nextcheck,i.type,i.snmp_community,i.snmp_oid,h.useip,h.ip,i.history,i.lastvalue,i.prevvalue,i.hostid,h.status,i.value_type,h.errors_from,i.snmp_port,i.delta,i.prevorgvalue,i.lastclock,i.units,i.multiplier,i.snmpv3_securityname,i.snmpv3_securitylevel,i.snmpv3_authpassphrase,i.snmpv3_privpassphrase,i.formula,h.available,i.status,i.trapper_hosts,i.logtimefmt,i.valuemapid,i.delay_flex,h.dns from hosts h, items i where i.nextcheck<=1278326069 and i.status in (0,3) and i.type not in (2,7,9) and h.status=0 and h.disable_until<=1278326069 and h.errors_from=0 and h.hostid=i.hostid and mod(i.itemid,5)=1 and i.key_ not in ('status','icmpping','icmppingsec','zabbix[log]') and  h.hostid>=100000000000000*0 and h.hostid<=(100000000000000*0+99999999999999)  order by i.nextcheck
       32498:20100705:143429 Query failed:Unknown column 'i.nextcheck' in 'field list' [1054]
       32498:20100705:143429 Query::select count(*),min(nextcheck) from items i,hosts h where h.status=0 and h.disable_until<1278326069 and h.errors_from=0 and h.hostid=i.hostid and i.status in (0,3) and i.type not in (2,7,9) and mod(i.itemid,5)=1 and i.key_ not in ('status','icmpping','icmppingsec','zabbix[log]') and h.hostid>=100000000000000*0 and h.hostid<=(100000000000000*0+99999999999999) 
       32498:20100705:143429 Query failed:Unknown column 'nextcheck' in 'field list' [1054]
       32502:20100705:143429 server #6 started [Trapper]
       32503:20100705:143429 server #7 started [Trapper]
       32504:20100705:143429 server #8 started [Trapper]
       32505:20100705:143429 server #9 started [Trapper]
       32506:20100705:143429 server #10 started [Trapper]
       32508:20100705:143429 server #12 started [Alerter]
       32509:20100705:143429 server #13 started [Housekeeper]
       32509:20100705:143429 Executing housekeeper
       32511:20100705:143429 server #14 started [Timer]
       32507:20100705:143429 server #11 started [ICMP pinger]
       32500:20100705:143429 server #4 started [Poller. SNMP:ON]
       32511:20100705:143429 Query::select distinct i.itemid,i.key_,h.host,h.port,i.delay,i.description,i.nextcheck,i.type,i.snmp_community,i.snmp_oid,h.useip,h.ip,i.history,i.lastvalue,i.prevvalue,i.hostid,h.status,i.value_type,h.errors_from,i.snmp_port,i.delta,i.prevorgvalue,i.lastclock,i.units,i.multiplier,i.snmpv3_securityname,i.snmpv3_securitylevel,i.snmpv3_authpassphrase,i.snmpv3_privpassphrase,i.formula,h.available,i.status,i.trapper_hosts,i.logtimefmt,i.valuemapid,i.delay_flex,h.dns from hosts h, items i, functions f where h.hostid=i.hostid and h.status=0 and i.status=0 and f.function in ('nodata','date','dayofweek','time','now') and i.itemid=f.itemid and h.hostid>=100000000000000*0 and h.hostid<=(100000000000000*0+99999999999999) 
       32511:20100705:143429 Query failed:Unknown column 'i.nextcheck' in 'field list' [1054]
       32500:20100705:143429 Query::select i.itemid,i.key_,h.host,h.port,i.delay,i.description,i.nextcheck,i.type,i.snmp_community,i.snmp_oid,h.useip,h.ip,i.history,i.lastvalue,i.prevvalue,i.hostid,h.status,i.value_type,h.errors_from,i.snmp_port,i.delta,i.prevorgvalue,i.lastclock,i.units,i.multiplier,i.snmpv3_securityname,i.snmpv3_securitylevel,i.snmpv3_authpassphrase,i.snmpv3_privpassphrase,i.formula,h.available,i.status,i.trapper_hosts,i.logtimefmt,i.valuemapid,i.delay_flex,h.dns from hosts h, items i where i.nextcheck<=1278326069 and i.status in (0,3) and i.type not in (2,7,9) and h.status=0 and h.disable_until<=1278326069 and h.errors_from=0 and h.hostid=i.hostid and mod(i.itemid,5)=3 and i.key_ not in ('status','icmpping','icmppingsec','zabbix[log]') and  h.hostid>=100000000000000*0 and h.hostid<=(100000000000000*0+99999999999999)  order by i.nextcheck
       32500:20100705:143429 Query failed:Unknown column 'i.nextcheck' in 'field list' [1054]
       32500:20100705:143429 Query::select count(*),min(nextcheck) from items i,hosts h where h.status=0 and h.disable_until<1278326069 and h.errors_from=0 and h.hostid=i.hostid and i.status in (0,3) and i.type not in (2,7,9) and mod(i.itemid,5)=3 and i.key_ not in ('status','icmpping','icmppingsec','zabbix[log]') and h.hostid>=100000000000000*0 and h.hostid<=(100000000000000*0+99999999999999) 
       32500:20100705:143429 Query failed:Unknown column 'nextcheck' in 'field list' [1054]
       32501:20100705:143429 server #5 started [Poller. SNMP:ON]
       32521:20100705:143429 server #19 started [HTTP Poller]
       32520:20100705:143429 server #18 started [HTTP Poller]
       32512:20100705:143429 server #15 started [Poller for unreachable hosts. SNMP:ON]
       32519:20100705:143429 server #17 started [HTTP Poller]
       32501:20100705:143429 Query::select i.itemid,i.key_,h.host,h.port,i.delay,i.description,i.nextcheck,i.type,i.snmp_community,i.snmp_oid,h.useip,h.ip,i.history,i.lastvalue,i.prevvalue,i.hostid,h.status,i.value_type,h.errors_from,i.snmp_port,i.delta,i.prevorgvalue,i.lastclock,i.units,i.multiplier,i.snmpv3_securityname,i.snmpv3_securitylevel,i.snmpv3_authpassphrase,i.snmpv3_privpassphrase,i.formula,h.available,i.status,i.trapper_hosts,i.logtimefmt,i.valuemapid,i.delay_flex,h.dns from hosts h, items i where i.nextcheck<=1278326069 and i.status in (0,3) and i.type not in (2,7,9) and h.status=0 and h.disable_until<=1278326069 and h.errors_from=0 and h.hostid=i.hostid and mod(i.itemid,5)=4 and i.key_ not in ('status','icmpping','icmppingsec','zabbix[log]') and  h.hostid>=100000000000000*0 and h.hostid<=(100000000000000*0+99999999999999)  order by i.nextcheck
       32501:20100705:143429 Query failed:Unknown column 'i.nextcheck' in 'field list' [1054]
       32523:20100705:143429 server #20 started [HTTP Poller]
       32501:20100705:143429 Query::select count(*),min(nextcheck) from items i,hosts h where h.status=0 and h.disable_until<1278326069 and h.errors_from=0 and h.hostid=i.hostid and i.status in (0,3) and i.type not in (2,7,9) and mod(i.itemid,5)=4 and i.key_ not in ('status','icmpping','icmppingsec','zabbix[log]') and h.hostid>=100000000000000*0 and h.hostid<=(100000000000000*0+99999999999999) 
       32501:20100705:143429 Query failed:Unknown column 'nextcheck' in 'field list' [1054]
       32518:20100705:143429 server #16 started [Node watcher. Node ID:0]
       32525:20100705:143429 server #21 started [HTTP Poller]
       32512:20100705:143429 Query::select h.hostid,min(i.itemid) from hosts h,items i where mod(h.hostid,1)=0 and i.nextcheck<=1278326069 and i.status in (0) and i.type not in (2,7,9) and h.status=0 and h.disable_until<=1278326069 and h.errors_from!=0 and h.hostid=i.hostid and i.key_ not in ('status','icmpping','icmppingsec','zabbix[log]') and  h.hostid>=100000000000000*0 and h.hostid<=(100000000000000*0+99999999999999)  group by h.hostid
       32512:20100705:143429 Query failed:Unknown column 'i.nextcheck' in 'where clause' [1054]
       32512:20100705:143429 Query::select count(*),min(nextcheck) as nextcheck from items i,hosts h where mod(h.hostid,1)=0 and i.nextcheck<=1278326069 and i.status in (0) and i.type not in (2,7,9) and h.status=0 and h.disable_until<=1278326069 and h.errors_from!=0 and h.hostid=i.hostid and i.key_ not in ('status','icmpping','icmppingsec','zabbix[log]') and  h.hostid>=100000000000000*0 and h.hostid<=(100000000000000*0+99999999999999) order by nextcheck
       32512:20100705:143429 Query failed:Unknown column 'nextcheck' in 'field list' [1054]
       32518:20100705:143429 Query::select curr.nodeid,curr.tablename,curr.recordid from node_cksum prev, node_cksum curr where curr.tablename=prev.tablename and curr.recordid=prev.recordid and curr.fieldname=prev.fieldname and curr.nodeid=prev.nodeid and curr.cksum<>prev.cksum and curr.cksumtype=1 and prev.cksumtype=0
       32518:20100705:143429 Query failed:Unknown column 'curr.fieldname' in 'where clause' [1054]
       32518:20100705:143429 Query::select curr.nodeid,curr.tablename,curr.recordid from node_cksum curr left join node_cksum prev on curr.tablename=prev.tablename and curr.recordid=prev.recordid and curr.fieldname=prev.fieldname and curr.nodeid=prev.nodeid and curr.cksumtype<>prev.cksumtype where prev.cksumid is null and curr.cksumtype=1
       32518:20100705:143429 Query failed:Unknown column 'prev.cksumid' in 'where clause' [1054]
       32518:20100705:143429 Query::select curr.nodeid,curr.tablename,curr.recordid from node_cksum curr left join node_cksum prev on curr.tablename=prev.tablename and curr.recordid=prev.recordid and curr.fieldname=prev.fieldname and curr.nodeid=prev.nodeid and curr.cksumtype<>prev.cksumtype where prev.cksumid is null and curr.cksumtype=0
       32518:20100705:143429 Query failed:Unknown column 'prev.cksumid' in 'where clause' [1054]
       32496:20100705:143429 server #0 started [Watchdog]
       32526:20100705:143429 server #22 started [Discoverer. SNMP:ON]
      Или может я что-то не знамечаю

      Comment

      • dima_dm
        Senior Member
        • Dec 2009
        • 2697

        #4
        В логах ZABBIX 1.4.6, а говорите что у вас Zabbix 1.8

        Comment

        • ruswold
          Senior Member
          • Mar 2010
          • 210

          #5
          query failed:unknown column...
          Вы думаете так и должно быть?
          База данных не соответствует вашей версии забикса, раз отсутствуют колонки. Что то вы тут не договариваете.

          Comment

          • step_slim
            Member
            • Jul 2010
            • 84

            #6
            Originally posted by ruswold
            Вы думаете так и должно быть?
            База данных не соответствует вашей версии забикса, раз отсутствуют колонки. Что то вы тут не договариваете.
            У меня такая же ошибка, причём как раз на версии 1.8 И вроде бы как я понял, колонки для забикса в базе формирует скрипт... Объясните в чём тут дело?
            Code:
             3306:20100705:154717.100 [Z3005] Query failed: [1054] Unknown column 'eventid' in 'field list' [select max(eventid) from events w
              3312:20100705:154717.100 [Z3005] Query failed: [1054] Unknown column 'nodeid' in 'field list' [insert into ids (nodeid,table_name
              3306:20100705:154717.100 [Z3005] Query failed: [1054] Unknown column 'nodeid' in 'field list' [insert into ids (nodeid,table_name
              3312:20100705:154717.100 [Z3005] Query failed: [1054] Unknown column 'nodeid' in 'where clause' [update ids set nextid=nextid+1 w
              3306:20100705:154717.100 [Z3005] Query failed: [1054] Unknown column 'nodeid' in 'where clause' [update ids set nextid=nextid+1 w
              3312:20100705:154717.100 [Z3005] Query failed: [1054] Unknown column 'nextid' in 'field list' [select nextid from ids where nodei
              3306:20100705:154717.100 [Z3005] Query failed: [1054] Unknown column 'nextid' in 'field list' [select nextid from ids where nodei
              3312:20100705:154717.100 [Z3005] Query failed: [1054] Unknown column 'eventid' in 'field list' [select max(eventid) from events w
            /usr/sbin/zabbix-server [3306]: Can't rename log file [/var/log/zabbix/zabbix-server.log] to [/var/log/zabbix/zabbix-server.log.old

            Comment

            • ruswold
              Senior Member
              • Mar 2010
              • 210

              #7
              Интересуют моменты
              1. Ошибка после обновления с версии 1.6 на 1.8 ?
              2. какое значение стоит в NodeID в zabbix_server.conf ?
              3. Используется ли распределенный мониторинг ? (то есть несколько зависимых серверов)

              Ответы
              1. если да, то необходимо обновить базу данных после обновления
              http://www.zabbix.com/documentation/...tion/upgrading
              2. если NodeID = 1 и у вас сервер один, то или вы ставите NodeID = 0, или комментируете строку, или применяете для распределенного мониторинга
              http://www.zabbix.com/documentation/...ted_monitoring

              Comment

              • step_slim
                Member
                • Jul 2010
                • 84

                #8
                Originally posted by ruswold
                Интересуют моменты
                1. Ошибка после обновления с версии 1.6 на 1.8 ?
                2. какое значение стоит в NodeID в zabbix_server.conf ?
                3. Используется ли распределенный мониторинг ? (то есть несколько зависимых серверов)

                Ответы
                1. если да, то необходимо обновить базу данных после обновления
                http://www.zabbix.com/documentation/...tion/upgrading
                2. если NodeID = 1 и у вас сервер один, то или вы ставите NodeID = 0, или комментируете строку, или применяете для распределенного мониторинга
                http://www.zabbix.com/documentation/...ted_monitoring
                1. Ошибка после установки с нуля, без обновления.
                2. NodeID = 0 (строка закоментирована)
                3. Распределённый мониторинг не используется, всё живёт на одном сервере.

                Comment

                • ruswold
                  Senior Member
                  • Mar 2010
                  • 210

                  #9
                  Originally posted by step_slim
                  1. Ошибка после установки с нуля, без обновления.
                  2. Nodeid = 0 (строка закоментирована)
                  3. Распределённый мониторинг не используется, всё живёт на одном сервере.
                  Базу как создавали?

                  Comment

                  • step_slim
                    Member
                    • Jul 2010
                    • 84

                    #10
                    Originally posted by ruswold
                    Базу как создавали?
                    Как вот ту научили http://www.zabbix.com/forum/showthread.php?t=17785

                    Comment

                    • ruswold
                      Senior Member
                      • Mar 2010
                      • 210

                      #11
                      Originally posted by step_slim
                      Как вот ту научили http://www.zabbix.com/forum/showthread.php?t=17785
                      Видимо не разобрались
                      попробуйте выполнить приложенный файл mysql.sql как вам советовали
                      shell> mysql -u<username> -p<password>
                      mysql> drop database zabbix;
                      mysql> create database zabbix character set utf8;
                      mysql> quit;
                      shell> cat mysql.sql | mysql -u<username> -p<password> zabbix
                      и потом
                      shell> cd ../data
                      shell> cat data.sql | mysql -u<username> -p<password> zabbix
                      shell> cat images_mysql.sql | mysql -u<username> -p<password> zabbix
                      Attached Files

                      Comment

                      • step_slim
                        Member
                        • Jul 2010
                        • 84

                        #12
                        Originally posted by ruswold
                        Видимо не разобрались
                        попробуйте выполнить приложенный файл mysql.sql как вам советовали
                        shell> mysql -u<username> -p<password>
                        mysql> drop database zabbix;
                        mysql> create database zabbix character set utf8;
                        mysql> quit;
                        shell> cat mysql.sql | mysql -u<username> -p<password> zabbix
                        и потом
                        shell> cd ../data
                        shell> cat data.sql | mysql -u<username> -p<password> zabbix
                        shell> cat images_mysql.sql | mysql -u<username> -p<password> zabbix
                        shell> cd ../data - На вот этом шаге сообщает на отсутствие каталога data. Нашёл вручную этот файл, выполняю- сервер уходит в долгую задумчивость на минут 20, потом отпустило, далее делаю cat на images_mysql.sql отрабатывает быстро, стартую zabbix-server проблема осталась

                        Comment

                        • ruswold
                          Senior Member
                          • Mar 2010
                          • 210

                          #13
                          Вообще не должен так задумываться

                          выполните
                          shell> mysql -u<username> -p<password>
                          mysql> use zabbix
                          mysql> select eventid from events;
                          mysql> exit

                          Что выводит после select?
                          Last edited by ruswold; 05-07-2010, 15:42.

                          Comment

                          • step_slim
                            Member
                            • Jul 2010
                            • 84

                            #14
                            Originally posted by ruswold
                            Вообще не должен так задумываться

                            выполните
                            shell> mysql -u<username> -p<password>
                            mysql> use zabbix
                            mysql> select eventid from events;
                            mysql> exit

                            Что выводит после select?
                            Почему не должен? Фиг его знает как там в скрипте организовано создание столбцов в таблице, ведь так?
                            Вот что говорит команда:
                            Code:
                            mysql> use zabbix
                            Database changed
                            mysql> select eventid from events;
                            Empty set (0.00 sec)
                            
                            mysql> exit
                            Bye
                            У меня предчувствие, что это не хорошо- я прав?
                            Last edited by step_slim; 06-07-2010, 07:44.

                            Comment

                            • ruswold
                              Senior Member
                              • Mar 2010
                              • 210

                              #15
                              Originally posted by step_slim
                              У меня предчувствие, что это не хорошо- я прав?
                              Нет, это говорит что нет значений, но поле есть.
                              Проверьте еще раз на что ругается заббикс в логах

                              Comment

                              Working...