Thursday, January 10, 2013

ERROR: The number of NVTs in the OpenVAS Manager database is too low

I was setting up OpenVas on BackTrack 5 R3 and got stuck at his error.

ERROR: The number of NVTs in the OpenVAS Manager database is too low

Syncing the NVTs and rebuilding the database do not work. I still get the same error when I run the openvas-check-setup script and the OpenVas Manager does not run.

This checks counts the number of records in the NVT table inside the database, I tried to run and it returned 0

sqlite3 /usr/local/var/lib/openvas/mgr/tasks.db "select count(*) from nvts;"

The problem at the end turned out to be with the OpenVas Scanner not the Manager. In the OpenVas Scanner log (/usr/local/var/log/openvas/openvassd.messages) the following error was getting logged every time I rebuild the database.

bad login attempt from

I ran the scanner in the foreground with -f switch then attempted to rebuild again, I got the following message in the scanner's console

/usr/local/var/lib/openvas/users/om/auth/dname: No such file or directory

checking this directory /usr/local/var/lib/openvas/users/ I found that om is misnamed as "-om". Apparently that was a mistake when running the openvas-mkcert-client earlier.
I renamed the directory and now the rebuild command works. I also corrected the CN name in the file /usr/local/var/lib/openvas/users/om/auth/dname

sqlite3 /usr/local/var/lib/openvas/mgr/tasks.db "select count(*) from nvts;"

you can escape the hyphen like this: mv ./-om om

1 comment:

  1. Thanks, you made my day! I had skipped openvas-mkcert-client because I copied cert and key from a previous installation; no idea the command secretly did some more things.