Paula,

try :
locate openvas/mgr

checking logs, yours should be /usr/local/lib/var/lib/locate openvas/mgr

do a :
touch /usr/local/lib/var/lib/locate openvas/mgr/task.db

and retry:
openvasmd --rebuild  (take care that openvassd must be running)



Le 06/03/2013 09:24, Paula Gonzalez Muñoz a écrit :
Hello,

Although openvasmd --rebuild creates a tasks.db, it does not populate
it. Also, I have seen that it creates it on a path different than the
one openvas-check-setup.sh is looking for it. I have double checked
that openvassd is working as you can see:

# ps ax |grep openvassd
 5470 ?        Ss     0:00 openvassd: waiting for incoming connections

And after running openvasmd --rebuild I've checked with sqlite 3 and got this:

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

But openvas-check-setup log is as follows:

openvas-check-setup 2.2.1
  Mode:  desktop
  Date:  Wed, 06 Mar 2013 09:21:00 +0100

Checking for old OpenVAS Scanner <= 2.0 ...
openvas-check-setup: line 155: openvasd: command not found

Checking presence of OpenVAS Scanner ...
OpenVAS Scanner 3.3.1
Nessus origin: (C) 2004 Renaud Deraison <derai...@nessus.org>
Most new code since OpenVAS: (C) 2011 Greenbone Networks GmbH
 License GPLv2: GNU GPL version 2
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Checking OpenVAS Scanner version ...

        OK: OpenVAS Scanner is present in version 3.3.1.
 plugins_folder = /usr/local/lib/var/lib/openvas/plugins
cache_folder = /usr/local/lib/var/cache/openvas
include_folders = /usr/local/lib/var/lib/openvas/plugins
max_hosts = 30
max_checks = 10
be_nice = no
 logfile = /usr/local/lib/var/log/openvas/openvassd.messages
log_whole_attack = no
log_plugins_name_at_load = no
dumpfile = /usr/local/lib/var/log/openvas/openvassd.dump
rules = /usr/local/lib/share/openvas/openvassd.rules
 cgi_path = /cgi-bin:/scripts
port_range = default
optimize_test = yes
checks_read_timeout = 5
network_scan = no
non_simult_ports = 139, 445
plugins_timeout = 320
safe_checks = yes
auto_enable_dependencies = yes
 silent_dependencies = no
use_mac_addr = no
save_knowledge_base = no
kb_restore = no
only_test_hosts_whose_kb_we_dont_have = no
only_test_hosts_whose_kb_we_have = no
kb_dont_replay_scanners = no
kb_dont_replay_info_gathering = no
 kb_dont_replay_attacks = no
kb_dont_replay_denials = no
kb_max_age = 864000
slice_network_addresses = no
nasl_no_signature_check = yes
drop_privileges = no
unscanned_closed = yes
vhosts =
vhosts_ip =
 report_host_details = yes
cert_file = /usr/local/lib/var/lib/openvas/CA/servercert.pem
key_file = /usr/local/lib/var/lib/openvas/private/CA/serverkey.pem
ca_file = /usr/local/lib/var/lib/openvas/CA/cacert.pem
 reverse_lookup = no
config_file = /usr/local/lib/etc/openvas/openvassd.conf
Checking OpenVAS Scanner CA cert ...

        OK: OpenVAS Scanner CA Certificate is present as
/usr/local/lib/var/lib/openvas/CA/cacert.pem.
 Checking NVT collection ...

        OK: NVT collection in /usr/local/lib/var/lib/openvas/plugins
contains 29831 NVTs.
Checking status of signature checking in OpenVAS Scanner ...
        WARNING: Signature checking of NVTs is not enabled in OpenVAS Scanner.
         SUGGEST: Enable signature checking (see
http://www.openvas.org/trusted-nvts.html [1]).

Checking presence of OpenVAS Manager ...
OpenVAS Manager 3.0.5
 Manager DB revision 56
Copyright (C) 2010 Greenbone Networks GmbH
License GPLv2+: GNU GPL version 2 or later
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

        OK: OpenVAS Manager is present in version 3.0.5.
Checking OpenVAS Manager client certificate ...

        OK: OpenVAS Manager client certificate is present as
/usr/local/lib/var/lib/openvas/CA/clientcert.pem.
 Checking OpenVAS Manager database ...
        ERROR: No OpenVAS Manager database found. (Tried:
/usr/local/lib/var/lib/openvas/mgr/tasks.db)
        FIX: Run 'openvasmd --rebuild' while OpenVAS Scanner is running.

I do not see on the manual or on the default configuration where to
set the path to the tasks.db file and, as I said. My system is a
gentoo and the installation is from source files with all the default
options chosen.

Regards,
Paula

--

       Paula González Muñoz
 

Links:
------
[1] http://www.openvas.org/trusted-nvts.html

_______________________________________________
Openvas-discuss mailing list
Openvas-discuss@wald.intevation.org

https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss

--
"Le saviez-vous ? la technologie d'ITrust va sécuriser le cloud français"

    | Sébastien AUCOUTURIER | Responsable R&D
    | ITrust | 55 L'Occitane 31670 LABEGE
    | Email: s.aucoutur...@itrust.fr
    | Fixe Sdt. 05.67.34.67.80
    | IT Security Services & SaaS Editor
_______________________________________________
Openvas-discuss mailing list
Openvas-discuss@wald.intevation.org
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss

Reply via email to