Ad Widget

Collapse

Не импортируются шаблоны

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Alex_D
    Member
    • Jun 2010
    • 30

    #1

    Не импортируются шаблоны

    День добрый. У меня возникла такая проблема, в zabbix 1.8.2 (revision11211) не испортируются шаблоны. Пятался делать собственные шаблоны с помощью http://www.zabbix.com/forum/showthread.php?t=15400 , так же скачивал другие самописные шаблоны, они так же не испортируются, а именно, после выбора файла для импорта и нажатия на клавишу импорт появляется следующее окно.



    После чего в Настройки -> Группы узлов сети не обнаруживал новый шаблон...

    Ось CentOs 5.4, в логах сервера вроде ничего критичного нет кроме того, что он не с первого раза к MySQL подключается

    Code:
      3119:20100721:120859.012 [Z3005] Query failed: [2006] MySQL server has gone away [select escalationid,actionid,triggerid,eventid,r_eventid,esc_step,status from escalations where status in (0,1) and nextcheck<=1279674539 and escalationid between 000000000000000 and 099999999999999]
      3119:20100721:120859.012 Database is down. Retrying in 10 seconds
      3099:20100721:120859.747 [Z3005] Query failed: [2006] MySQL server has gone away [select t.httptestid,t.name,t.applicationid,t.nextcheck,t.status,t.delay,t.macros,t.agent,t.authentication,t.http_user,t.http_password from httptest t,applications a,hosts h where t.applicationid=a.applicationid and a.hostid=h.hostid and t.nextcheck<=1279674539 and mod(t.httptestid,1)=0 and t.status=0 and h.status=0 and (h.maintenance_status=0 or h.maintenance_type=0) and t.httptestid between 000000000000000 and 099999999999999]
      3099:20100721:120859.747 Database is down. Retrying in 10 seconds
      3096:20100721:120900.681 [Z3005] Query failed: [2006] MySQL server has gone away [select distinct i.itemid,i.key_,h.host,h.port,i.delay,i.description,i.type,h.useip,h.ip,i.history,i.lastvalue,i.prevvalue,i.hostid,i.value_type,i.delta,i.prevorgvalue,i.lastclock,i.units,i.multiplier,i.formula,i.status,i.valuemapid,h.dns,i.trends,i.lastlogsize,i.data_type,i.mtime 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.maintenance_status=0 or h.maintenance_type=0) and h.hostid between 000000000000000 and 099999999999999]
      3096:20100721:120900.681 Database is down. Retrying in 10 seconds
      3102:20100721:120900.922 [Z3005] Query failed: [2006] MySQL server has gone away [begin;]
      3102:20100721:120900.922 [Z3005] Query failed: [2006] MySQL server has gone away [select itemid,status,lastclock,prevorgvalue,delta,multiplier,formula,history,trends from items where itemid in (22166,22167,22168,22169,22170,22171,22194,22195,22196,22197,22198,22199,22226,22229,22255,22256,22257,22258,22259) order by itemid]
      3102:20100721:120900.922 Database is down. Retrying in 10 seconds
      3101:20100721:120901.793 [Z3005] Query failed: [2006] MySQL server has gone away [begin;]
      3101:20100721:120901.793 [Z3005] Query failed: [2006] MySQL server has gone away [select dh.dhostid,dh.status,dh.lastup,dh.lastdown from dhosts dh,dservices ds where ds.dhostid=dh.dhostid and ds.dcheckid=4 and ds.value='' order by dh.dhostid]
      3101:20100721:120901.793 Database is down. Retrying in 10 seconds
      3088:20100721:120906.728 [Z3005] Query failed: [2006] MySQL server has gone away [select a.alertid,a.mediatypeid,a.sendto,a.subject,a.message,a.status,mt.mediatypeid,mt.type,mt.description,mt.smtp_server,mt.smtp_helo,mt.smtp_email,mt.exec_path,mt.gsm_modem,mt.username,mt.passwd,a.retries from alerts a,media_type mt where a.status=0 and a.mediatypeid=mt.mediatypeid and a.alerttype=0 and mt.mediatypeid between 000000000000000 and 099999999999999 order by a.clock]
      3088:20100721:120906.728 Database is down. Retrying in 10 seconds
      3119:20100721:120909.035 [Z3001] Connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
      3119:20100721:120909.035 Database is down. Reconnecting in 10 seconds
      3099:20100721:120909.767 [Z3001] Connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
      3099:20100721:120909.767 Database is down. Reconnecting in 10 seconds
      3096:20100721:120910.773 [Z3001] Connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
      3096:20100721:120910.773 Database is down. Reconnecting in 10 seconds
      3047:20100721:120910.846 One child process died (PID:3069). Exiting ...
      3047:20100721:120912.849 [Z3001] Connection to database 'zabbix' failed: [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
      3038:20100721:121132.531 Starting Zabbix Server. Zabbix 1.8.2 (revision 11211).
      3038:20100721:121132.535 **** Enabled features ****
      3038:20100721:121132.536 SNMP monitoring:       YES
      3038:20100721:121132.536 IPMI monitoring:        NO
      3038:20100721:121132.536 WEB monitoring:        YES
      3038:20100721:121132.536 Jabber notifications:   NO
      3038:20100721:121132.536 ODBC:                   NO
      3038:20100721:121132.536 SSH2 support:           NO
      3038:20100721:121132.536 IPv6 support:           NO
      3038:20100721:121132.536 **************************
      3121:20100721:121134.385 server #1 started [DB Cache]
      3128:20100721:121134.724 server #7 started [Trapper]
      3130:20100721:121134.726 server #8 started [Trapper]
      3132:20100721:121134.728 server #9 started [Trapper]
      3134:20100721:121134.730 server #10 started [Trapper]
      3136:20100721:121134.731 server #11 started [Trapper]
      3138:20100721:121134.733 server #12 started [ICMP pinger]
      3123:20100721:121134.747 server #2 started [Poller. SNMP:YES]
      3124:20100721:121134.766 server #3 started [Poller. SNMP:YES]
      3125:20100721:121134.785 server #4 started [Poller. SNMP:YES]
      3126:20100721:121134.806 server #5 started [Poller. SNMP:YES]
      3140:20100721:121134.882 server #13 started [Alerter]
      3146:20100721:121134.884 server #14 started [Housekeeper]
      3146:20100721:121134.884 Executing housekeeper
      3148:20100721:121134.886 server #15 started [Timer]
      3151:20100721:121134.893 server #17 started [HTTP Poller]
      3127:20100721:121134.942 server #6 started [Poller. SNMP:YES]
      3154:20100721:121135.127 server #19 started [DB Syncer]
      3157:20100721:121135.129 server #20 started [Escalator]
      3038:20100721:121135.130 server #0 started [Watchdog]
      3150:20100721:121135.167 server #16 started [Poller for unreachable hosts. SNMP:YES]
      3153:20100721:121135.191 server #18 started [Discoverer. SNMP:YES]
      3146:20100721:121145.170 Deleted 0 records from history and trends
      3126:20100721:121948.051 Item [Zabbix Server:sensor[temp1]] error: Not supported by Zabbix Agent
      3127:20100721:121949.860 Item [Zabbix Server:sensor[temp2]] error: Not supported by Zabbix Agent
      3123:20100721:121950.482 Item [Zabbix Server:sensor[temp3]] error: Not supported by Zabbix Agent
      3127:20100721:122009.886 Item [Zabbix Server:vfs.file.cksum[/etc/inetd.conf]] error: Not supported by Zabbix Agent
      3127:20100721:122014.895 Item [Zabbix Server:vfs.file.cksum[/vmlinuz]] error: Not supported by Zabbix Agent
      3123:20100721:122015.502 Item [Zabbix Server:vfs.file.size[/var/log/syslog]] error: Not supported by Zabbix Agent
    Поскажите, плз, как можно посмотреть где еще может быть затык, а то логи серверане так уж и много информации выдают...
    Attached Files
    Last edited by Alex_D; 21-07-2010, 03:41.
  • ugh
    Senior Member
    • Jun 2009
    • 296

    #2
    логи веб-сервера посмотрите

    Comment

    • Alex_D
      Member
      • Jun 2010
      • 30

      #3
      Посмотрел, там такое написано

      Code:
      [Wed Jul 21 17:43:21 2010] [error] [client x.x.x.x] PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'include/classes/class.domdocument.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/include/config.inc.php on line 62, referer: http://x.x.x.x/import.php?sid=81b84502c127482e
      И действительно, файла class.domdocument.php в нужной директории нету... Посмотрел в установочном пакете его тоже нету, странно, что это может значить?
      Last edited by Alex_D; 21-07-2010, 08:54.

      Comment

      • ruswold
        Senior Member
        • Mar 2010
        • 210

        #4
        Originally posted by Alex_D
        Посмотрел, там такое написано

        Code:
        [Wed Jul 21 17:43:21 2010] [error] [client x.x.x.x] PHP Fatal error:  require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'include/classes/class.domdocument.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/include/config.inc.php on line 62, referer: http://x.x.x.x/import.php?sid=81b84502c127482e
        И действительно, файла class.domdocument.php в нужной директории нету... Посмотрел в установочном пакете его тоже нету, странно, что это может значить?
        установи php5-dom

        Comment

        • Alex_D
          Member
          • Jun 2010
          • 30

          #5
          Все заработало, спасибо! Тока из-за того, что у меня CentOs поставил php-xml.

          Comment

          • ruswold
            Senior Member
            • Mar 2010
            • 210

            #6
            Originally posted by Alex_D
            Все заработало, спасибо! Тока из-за того, что у меня CentOs поставил php-xml.
            Скорее как из-за зависимости, а не из-за CentOs.

            Comment

            Working...