ML
    • Register
    • Login
    • Search
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups

    Fix OpenVAS when not starting Scans

    IT Discussion
    openvas ubuntu 18.04 openvas-scanner script
    4
    8
    556
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • dbeato
      dbeato last edited by

      I have been working with OpenVAS 9 and once it hits a hung up on the openvas-scanner service with Ubuntu 18.04 you cannot start the service at all even when starting it and it stays as below no matter what.

      0_1533847384197_2018-08-09_16-41-59.png

      What I do to fix it is the following

      sudo apt-get purge --auto-remove openvas9
      sudo apt-get update
      sudo  apt-get install openvas9
      openvas-manage-certs -f
      

      This remove all the application and their dependencies, then updates the packages, install Openvas and then you get to update the SSL Cert of the application. You don't lose any configuration in the process.

      I also have this script to update the Database Daily:

      sudo greenbone-nvt-sync
      sudo greenbone-scapdata-sync
      sudo greenbone-certdata-sync
      
      1 Reply Last reply Reply Quote 1
      • black3dynamite
        black3dynamite last edited by

        Does it still work using only this command: openvas-manage-certs -f to fix it?

        dbeato 1 Reply Last reply Reply Quote 0
        • dbeato
          dbeato @black3dynamite last edited by

          @black3dynamite said in Fix OpenVAS when not starting Scans:

          Does it still work using only this command: openvas-manage-certs -f to fix it?

          No, I use that because it finds the old Certs and I just replace them.

          1 Reply Last reply Reply Quote 0
          • momurda
            momurda last edited by

            @dbeato does getting this to run on ubuntu still require to load fan-made repos?

            dbeato 1 Reply Last reply Reply Quote 0
            • dbeato
              dbeato @momurda last edited by

              @momurda said in Fix OpenVAS when not starting Scans:

              @dbeato does getting this to run on ubuntu still require to load fan-made repos?

              If this repo add-apt-repository ppa:mrazavi/openvas is fan-made, yes it is

              1 Reply Last reply Reply Quote 2
              • dbeato
                dbeato last edited by

                You can also do this

                sudo redis-cli -s /var/run/redis/redis.sock flushall
                sudo service openvas-scanner start
                
                1 Reply Last reply Reply Quote 0
                • dafyre
                  dafyre last edited by

                  You can also download & install using their ISO. They label it a "Virtual Appliance" for some reason. It's worked on everything I've thrown at it so far.

                  https://www.greenbone.net/en/install_use_gce/

                  dbeato 1 Reply Last reply Reply Quote 0
                  • dbeato
                    dbeato @dafyre last edited by

                    @dafyre said in Fix OpenVAS when not starting Scans:

                    You can also download & install using their ISO. They label it a "Virtual Appliance" for some reason. It's worked on everything I've thrown at it so far.

                    https://www.greenbone.net/en/install_use_gce/

                    I don't prefer it due to being harder to troubleshoot... since it is an older OS version and such.

                    1 Reply Last reply Reply Quote 1
                    • First post
                      Last post