Fix OpenVAS when not starting Scans
-
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.
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
-
Does it still work using only this command:
openvas-manage-certs -f
to fix it? -
@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.
-
@dbeato does getting this to run on ubuntu still require to load fan-made repos?
-
@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
-
You can also do this
sudo redis-cli -s /var/run/redis/redis.sock flushall sudo service openvas-scanner start
-
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.
-
@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.
I don't prefer it due to being harder to troubleshoot... since it is an older OS version and such.