Ad Widget

Collapse

help zabbix has stopped working

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • przemo2
    Junior Member
    • Oct 2020
    • 23

    #1

    help zabbix has stopped working

    Hey help me, I had a zabbix disk usage of 80% then 90% and now it has stopped working. How do I remove this data to make zabbix work again? provide steps, commands or is it done directly on the database?
  • Zdenek_OMNISENSUIT
    Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Nov 2020
    • 55

    #2
    Hello.

    It looks that your db just growing up - it's a normal state.
    What's your db size, disk size, items history and trends time, ...?
    Info: Housekeeper is responsible to delete obsolete data from db.


    -------------------------
    omnisensuit.com

    Comment

    • przemo2
      Junior Member
      • Oct 2020
      • 23

      #3
      Click image for larger version

Name:	Screen Shot 04-23-21 at 10.03 PM.PNG
Views:	762
Size:	9.0 KB
ID:	423446I have zabbix on Linux, the disk has 35GB, and it shows so much busy. Now I can't access zabbix from my browser

      Comment

      • Zdenek_OMNISENSUIT
        Member
        Zabbix Certified SpecialistZabbix Certified Professional
        • Nov 2020
        • 55

        #4
        Hello.

        It's common that db will stop working when you have no disk space.
        Check your OS with df -h command.
        You will see the space total/used/free.
        Try add some space if need nad possible.
        I can recommand you to setup separate FSs for database data and logs.


        -------------------------
        omnisensuit.com

        Comment

        • przemo2
          Junior Member
          • Oct 2020
          • 23

          #5
          I cannot extend the disk. Could you please tell me how can I delete stories from the database? I do not need logs that have been collected for 6 months, I want to delete them and collect them again, but I do not want to lose settings, only delete the logs themselves

          Comment

          • Zdenek_OMNISENSUIT
            Member
            Zabbix Certified SpecialistZabbix Certified Professional
            • Nov 2020
            • 55

            #6
            Hello.

            I mentioned db binary logs (you can't delete them).
            If you are collecting some other logs just delete them.
            You must release some space to db can run again.
            Try find out everything you can delete from FS.
            Than change setup of time for storing data in db - history and trends.
            Change frequency for collecting data to less often.
            It's possible deleta data from db directly but I really do not recommand to you this operation.
            Just release some space and immediatelly after that change the history and trends.
            Than keep eye on your monitoring of zabbix server/db.
            And backup your setup/config files/hosts/templates etc.
            Generally make backups to be able restore your system if something happen.


            -------------------------
            omnisensuit.com

            Comment

            • przemo2
              Junior Member
              • Oct 2020
              • 23

              #7
              hey, I am not able to enter the web panel, how can I free up some space with commands from the console?

              Comment

              • Zdenek_OMNISENSUIT
                Member
                Zabbix Certified SpecialistZabbix Certified Professional
                • Nov 2020
                • 55

                #8
                Hello.

                Not from web console at the first time but directly from the system.
                Use ssh to connect the server and try delete some data.
                (logs, tmp, packages, whatever is possible)
                After that use web to change setup for history and trends.


                -------------------------
                omnisensuit.com

                Comment

                • Singularity
                  Member
                  • Aug 2020
                  • 81

                  #9
                  Which Database are you using ?

                  Comment

                  • jessicaWilbur
                    Junior Member
                    • May 2021
                    • 2

                    #10
                    I have been gradually working out this worker, and it has been working impeccably up until now. I had around 20 UPSes in, and today I chose to add on of my destinations Cisco switches as well (around 10 or something like that). This went fine and dandy, all the information was gathered, however I go to mind it around evening time and I get "Zabbix isn't running" on the webui. Check the CLI and sure enough Zabbix-worker has halted.

                    Comment

                    • Sebastian
                      Member
                      • Jul 2020
                      • 33

                      #11
                      Hello przemo2
                      I would do following to try to clean full disk.

                      your disk space is full, your database engine propably won't start properly. and you cannot now connect to it to clean tables, is that correct?

                      try below steps and provide output:

                      1. Stop zabbix server process. - need to avoid writing new data to database after celaning up space
                      2. Clean some disk space to make database up again - you can erase / move old log files ( I mean for example any application log located in /var/log)
                      3. Start Database service
                      4. truncate tables in database. you are interested in 2 huge tables (history.uint / trends/uint) by truncating these tables your space should be reclaimed
                      5. enable zabbix services

                      installation should collect data from scratch, and should work fine until next lack of space.


                      Comment

                      Working...