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;"
0

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 127.0.0.1

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;"
29247


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

3 comments:

  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.

    ReplyDelete
  2. Hello! I know this is kind of off topic, but I was wondering if you knew where I could find a captcha plugin for my comment form? I'm using the same blog platform as yours and I'm having trouble finding one? Thanks a lot! Imp source: How To Password Protect Folder The Planet Using Just Your Blog.

    ReplyDelete