Ad Widget

Collapse

mariadb zabbix table is missing

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • majed17
    Junior Member
    • Oct 2019
    • 19

    #1

    mariadb zabbix table is missing

    Peace, after zabbix database grew and hogged all the space on the server i deleted the 2 largest tables, history and trends
    now in the problems page i get :
    <output class="msg-bad" role="contentinfo" aria-label="Error message"><div class="msg-details"><ul class="list-dashed"><li>Error in query [SELECT MAX(h.clock) FROM history_uint h WHERE h.itemid='43547' AND h.clock&gt;1684674338] [Table 'zabbix.history_uint' doesn't exist] [zabbix.php:22 → require_once() → ZBase-&gt;run() → ZBase-&gt;processRequest() → ZBase-&gt;processResponseFinal() → CView-&gt;getOutput() → include() → CPartial-&gt;getOutput() → include() → CScreenProblem-&gt;get() → getTriggerDependencies() → CMacrosResolverHelper::resolveTriggerNames() → CMacrosResolver-&gt;resolveTriggerNames() → CMacrosResolverGeneral-&gt;getItemMacros() → CHistoryManager-&gt;getLastValues() → CHistoryManager-&gt;getLastValuesFromSql() → DBselect() → trigger_error() in include/db.inc.php:248]</li><li>Error in query [SELECT MAX(h.clock) FROM history_uint h WHERE h.itemid='43695' AND h.clock&gt;1684674338] [Table 'zabbix.history_uint' doesn't exist] [zabbix.php:22 → require_once() → ZBase-&gt;run() → ZBase-&gt;processRequest() → ZBase-&gt;processResponseFinal() → CView-&gt;getOutput() → include() → CPartial-&gt;getOutput() → include() → CScreenProblem-&gt;get() → getTriggerDependencies() → CMacrosResolverHelper::resolveTriggerNames() → CMacrosResolver-&gt;resolveTriggerNames() → CMacrosResolverGeneral-&gt;getItemMacros() → CHistoryManager-&gt;getLastValues() → CHistoryManager-&gt;getLastValuesFromSql() → DBselect() → trigger_error() in include/db.inc.php:248]</li><li>Error in query [SELECT MAX(h.clock) FROM history_uint h WHERE h.itemid='44007' AND h.clock&gt;1684674338] [Table 'zabbix.history_uint' doesn't exist] [zabbix.php:22 → require_once() → ZBase-&gt;run() → ZBase-&gt;processRequest() → ZBase-&gt;processResponseFinal() → CView-&gt;getOutput() → include() → CPartial-&gt;getOutput() → include() → CScreenProblem-&gt;get() → getTriggerDependencies() → CMacrosResolverHelper::resolveTriggerNames() → CMacrosResolver-&gt;resolveTriggerNames() → CMacrosResolverGeneral-&gt;getItemMacros() → CHistoryManager-&gt;getLastValues() → CHistoryManager-&gt;getLastValuesFromSql() → DBselect() → trigger_error() in include/db.inc.php:248]</li><li>Error in query [SELECT MAX(h.clock) FROM history_uint h WHERE h.itemid='44985' AND h.clock&gt;1684674338] [Table 'zabbix.history_uint' doesn't exist] [zabbix.php:22 → require_once() → ZBase-&gt;run() → ZBase-&gt;processRequest() → ZBase-&gt;processResponseFinal() → CView-&gt;getOutput() → include() → CPartial-&gt;getOutput() → include() → CScreenProblem-&gt;get() → getTriggerDependencies() → CMacrosResolverHelper::resolveTriggerNames() → CMacrosResolver-&gt;resolveTriggerNames() → CMacrosResolverGeneral-&gt;getItemMacros() → CHistoryManager-&gt;getLastValues() → CHistoryManager-&gt;getLastValuesFromSql() → DBselect() → trigger_error() in include/db.inc.php:248]</li><li>Error in query [SELECT MAX(h.clock) FROM history_uint h WHERE h.itemid='47341' AND h.clock&gt;1684674338] [Table 'zabbix.history_uint' doesn't exist] [zabbix.php:22 → require_once() → ZBase-&gt;run() → ZBase-&gt;processRequest() → ZBase-&gt;processResponseFinal() → CView-&gt;getOutput() → include() → CPartial-&gt;getOutput() → include() → CScreenProblem-&gt;get() → getTriggerDependencies() → CMacrosResolverHelper::resolveTriggerNames() → CMacrosResolver-&gt;resolveTriggerNames() → CMacrosResolverGeneral-&gt;getItemMacros() → CHistoryManager-&gt;getLastValues() → CHistoryManager-&gt;getLastValuesFromSql() → DBselect() → trigger_error() in include/db.inc.php:248]</li><li>Error in query [SELECT MAX(h.clock) FROM history_uint h WHERE h.itemid='51690' AND h.clock&gt;1684674338] [Table 'zabbix.history_uint' doesn't exist] [zabbix.php:22 → require_once() → ZBase-&gt;run() → ZBase-&gt;processRequest() → ZBase-&gt;processResponseFinal() → CView-&gt;getOutput() → include() → CPartial-&gt;getOutput() → include() → CScreenProblem-&gt;get() → getTriggerDependencies() → CMacrosResolverHelper::resolveTriggerNames() → CMacrosResolver-&gt;resolveTriggerNames() → CMacrosResolverGeneral-&gt;getItemMacros() → CHistoryManager-&gt;getLastValues() → CHistoryManager-&gt;getLastValuesFromSql() → DBselect() → trigger_error() in include/db.inc.php:248]</li><li>Error in query [SELECT MAX(h.clock) FROM history_uint h WHERE h.itemid='63466' AND h.clock&gt;1684674338] [Table 'zabbix.history_uint' doesn't exist] [zabbix.php:22 → require_once() → ZBase-&gt;run() → ZBase-&gt;processRequest() → ZBase-&gt;processResponseFinal() → CView-&gt;getOutput() → include() → CPartial-&gt;getOutput() → include() → CScreenProblem-&gt;get() → getTriggerDependencies() → CMacrosResolverHelper::resolveTriggerNames() → CMacrosResolver-&gt;resolveTriggerNames() → CMacrosResolverGeneral-&gt;getItemMacros() → CHistoryManager-&gt;getLastValues() → CHistoryManager-&gt;getLastValuesFromSql() → DBselect() → trigger_error() in include/db.inc.php:248]</li></ul></div><button type="button" class="overlay-close-btn" onclick="jQuery(this).closest('.msg-bad').remove();" title="Close"></button></output>​
  • tim.mooney
    Senior Member
    • Dec 2012
    • 1427

    #2
    Well, you know what you did that broke it, I'm not sure why you're posting here about it? Are you planning to fix it?

    Have you told your supervisor that deleting two tables was your solution to the space issue?

    Comment

    • majed17
      Junior Member
      • Oct 2019
      • 19

      #3
      well i don't know how to fix it, so i came here for help.

      Comment

      • cyber
        Senior Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Dec 2006
        • 4807

        #4
        Oh deer, oh deer... This is so wrong on so many levels...

        Your topic name says what's wrong, you stated in first sentence, what you did to get to that point... So press ctrl-z (figuratively speaking) until you get it fixed...

        Comment

        • LenR
          Senior Member
          • Sep 2009
          • 1005

          #5
          In the Zabbix install doc is a step to build the initial database. You are at the crossroads of "start over" and "restore from backup".

          Comment

          • majed17
            Junior Member
            • Oct 2019
            • 19

            #6
            can't i just configure the tables again and it works?

            Comment

            • cyber
              Senior Member
              Zabbix Certified SpecialistZabbix Certified Professional
              • Dec 2006
              • 4807

              #7
              Originally posted by majed17
              can't i just configure the tables again and it works?
              From that point on, it probably will work, but you may experience some errors if something happens to refer the data you deleted... If its OK with you, then its better than not working instance.

              Comment

              • majed17
                Junior Member
                • Oct 2019
                • 19

                #8
                so how to recreate the tables?

                Comment

                Working...