Re: [Openvas-discuss] No OpenVAS Manager database found

2017-06-07 Thread Michael . Eissele

Dear Gerhard,

we are happy to hear that you could solve the problem in the end,
and it's nice you reached back and shared your solution. Now since
the scanning can take place we hope you enjoy using OpenVAS.
Happy scanning!

Cheers, Michael.



On 07.06.2017 16:34, Gerhard Mourani wrote:

Michael,

Thijs help me find out where the problem reside. For some unknown
reason, when compiling openvas-manager as an rpm package as I do
before installation, the path related to /var/lib/openvas were
rewritten to /usr/var/lib/openvas in the following script and program.

/usr/bin/openvas-manage-certs
/usr/sbin/greenbone-certdata-sync
/usr/sbin/greenbone-scapdata-sync
/usr/sbin/openvasmd
/usr/sbin/openvasmd-sqlite
/usr/sbin/openvas-migrate-to-postgres

Therefore, my solution was to make a sed on those files and replace
any references for /usr/var/lib/openvas to /var/lib/openvas before
running the installation.

Here my build:

%cmake -DCMAKE_BUILD_TYPE=Release \
 -DCMAKE_INSTALL_PREFIX=%{_prefix} \
 -DSYSCONFDIR=%{_sysconfdir} \
 -DLOCALSTATEDIR=%{_localstatedir} .

%{__make} %{?_smp_mflags} VERBOSE=1

Regards,
Gerhard.


On Jun 6, 2017, at 3:15 PM, michael.eiss...@greenbone.net wrote:

Dear Gerhard,

could you please execute 'ls -lah' in /var/lib/openvas/mgr/ and
provide us the full output?
Like Harald already said, this process requires some time and the
ammount can vary depending
on the hardware capacities assigned to the machine.

Please use the basic command for rebuilding: openvasmd --rebuild
You can check if the manager is still rebuilding by launching
'htop',
now look in the 'command' tab and if the rebuild is still running,
it will show the following entry:

openvasmd: rebuilding

As soon as this is gone, the process has completed.
If you still want to check if the scanner is running and a sock
existant please do this in a single
step, right before launching 'openvasmd --rebuild'. Here a short
example how to:
[ ! -f /var/run/openvassd.sock ] && echo "Scanner socket not up nor
running"

If the problem still persists even after granting a generous ammount
of waiting time for the rebuilding process,
then we suggest to link us the output of the ls -lah command as
suggested above.

Thank you very much.

Cheers,
Michael.

On 06.06.2017 20:15, Reindl Harald wrote:
Am 06.06.2017 um 19:18 schrieb Gerhard Mourani:
Hello,
Some generic information about my environment.
Linux CentOS 6.8
openvas-libraries version is 9.0.1
openvas-manger version is 7.0.1
openvas-scanner version is 5.1.1
openvas-gsa version is 7.0.2
OpenVAS compiled from source
When I run the following command -> /usr/bin/openvas-check-setup
--v9
I receive the following error:
ERROR: No OpenVAS Manager database found. (Tried:
/var/lib/openvas/mgr/tasks.db)
FIX: Run 'openvasmd --rebuild' while OpenVAS Scanner is running.
So I run /usr/sbin/openvasmd --otp-scanner=/var/run/openvassd.sock
--rebuild again and again with same result
and how long did you wait?
build/rebuild the database is nothing which finishes within seconds
___
Openvas-discuss mailing list
Openvas-discuss@wald.intevation.org


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


___
Openvas-discuss mailing list
Openvas-discuss@wald.intevation.org
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss


Re: [Openvas-discuss] No OpenVAS Manager database found

2017-06-07 Thread Gerhard Mourani
Michael,

Thijs help me find out where the problem reside. For some unknown reason, when 
compiling openvas-manager as an rpm package as I do before installation, the 
path related to /var/lib/openvas were rewritten to /usr/var/lib/openvas in the 
following script and program.

/usr/bin/openvas-manage-certs
/usr/sbin/greenbone-certdata-sync
/usr/sbin/greenbone-scapdata-sync
/usr/sbin/openvasmd
/usr/sbin/openvasmd-sqlite
/usr/sbin/openvas-migrate-to-postgres

Therefore, my solution was to make a sed on those files and replace any 
references for /usr/var/lib/openvas to /var/lib/openvas before running the 
installation.

Here my build:

%cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DSYSCONFDIR=%{_sysconfdir} \
-DLOCALSTATEDIR=%{_localstatedir} .

%{__make} %{?_smp_mflags} VERBOSE=1

Regards,
Gerhard.


> On Jun 6, 2017, at 3:15 PM, michael.eiss...@greenbone.net wrote:
> 
> Dear Gerhard,
> 
> could you please execute 'ls -lah' in /var/lib/openvas/mgr/ and provide us 
> the full output?
> Like Harald already said, this process requires some time and the ammount can 
> vary depending
> on the hardware capacities assigned to the machine.
> 
> Please use the basic command for rebuilding: openvasmd --rebuild
> You can check if the manager is still rebuilding by launching 'htop',
> now look in the 'command' tab and if the rebuild is still running, it will 
> show the following entry:
> 
> openvasmd: rebuilding
> 
> As soon as this is gone, the process has completed.
> If you still want to check if the scanner is running and a sock existant 
> please do this in a single
> step, right before launching 'openvasmd --rebuild'. Here a short example how 
> to:
> [ ! -f /var/run/openvassd.sock ] && echo "Scanner socket not up nor running"
> 
> If the problem still persists even after granting a generous ammount of 
> waiting time for the rebuilding process,
> then we suggest to link us the output of the ls -lah command as suggested 
> above.
> 
> Thank you very much.
> 
> Cheers,
> Michael.
> 
> 
> 
> On 06.06.2017 20:15, Reindl Harald wrote:
>> Am 06.06.2017 um 19:18 schrieb Gerhard Mourani:
>>> Hello,
>>> Some generic information about my environment.
>>> Linux CentOS 6.8
>>> openvas-libraries version is 9.0.1
>>> openvas-manger version is 7.0.1
>>> openvas-scanner version is 5.1.1
>>> openvas-gsa version is 7.0.2
>>> OpenVAS compiled from source
>>> When I run the following command -> /usr/bin/openvas-check-setup --v9
>>> I receive the following error:
>>> ERROR: No OpenVAS Manager database found. (Tried: 
>>> /var/lib/openvas/mgr/tasks.db)
>>> FIX: Run 'openvasmd --rebuild' while OpenVAS Scanner is running.
>>> So I run /usr/sbin/openvasmd --otp-scanner=/var/run/openvassd.sock 
>>> --rebuild again and again with same result
>> and how long did you wait?
>> build/rebuild the database is nothing which finishes within seconds
>> ___
>> Openvas-discuss mailing list
>> Openvas-discuss@wald.intevation.org
>> https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss
> 

___
Openvas-discuss mailing list
Openvas-discuss@wald.intevation.org
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss

Re: [Openvas-discuss] No OpenVAS Manager database found

2017-06-06 Thread Michael . Eissele

Dear Gerhard,

could you please execute 'ls -lah' in /var/lib/openvas/mgr/ and provide 
us the full output?
Like Harald already said, this process requires some time and the 
ammount can vary depending

on the hardware capacities assigned to the machine.

Please use the basic command for rebuilding: openvasmd --rebuild
You can check if the manager is still rebuilding by launching 'htop',
now look in the 'command' tab and if the rebuild is still running, it 
will show the following entry:


openvasmd: rebuilding

As soon as this is gone, the process has completed.
If you still want to check if the scanner is running and a sock existant 
please do this in a single
step, right before launching 'openvasmd --rebuild'. Here a short example 
how to:
[ ! -f /var/run/openvassd.sock ] && echo "Scanner socket not up nor 
running"


If the problem still persists even after granting a generous ammount of 
waiting time for the rebuilding process,
then we suggest to link us the output of the ls -lah command as 
suggested above.


Thank you very much.

Cheers,
Michael.



On 06.06.2017 20:15, Reindl Harald wrote:

Am 06.06.2017 um 19:18 schrieb Gerhard Mourani:

Hello,

Some generic information about my environment.
Linux CentOS 6.8
openvas-libraries version is 9.0.1
openvas-manger version is 7.0.1
openvas-scanner version is 5.1.1
openvas-gsa version is 7.0.2
OpenVAS compiled from source

When I run the following command -> /usr/bin/openvas-check-setup --v9
I receive the following error:
ERROR: No OpenVAS Manager database found. (Tried: 
/var/lib/openvas/mgr/tasks.db)
 FIX: Run 'openvasmd --rebuild' while OpenVAS Scanner is 
running.


So I run /usr/sbin/openvasmd --otp-scanner=/var/run/openvassd.sock 
--rebuild again and again with same result


and how long did you wait?

build/rebuild the database is nothing which finishes within seconds
___
Openvas-discuss mailing list
Openvas-discuss@wald.intevation.org
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss


___
Openvas-discuss mailing list
Openvas-discuss@wald.intevation.org
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss


Re: [Openvas-discuss] No OpenVAS Manager database found

2017-06-06 Thread Reindl Harald



Am 06.06.2017 um 19:18 schrieb Gerhard Mourani:

Hello,

Some generic information about my environment.
Linux CentOS 6.8
openvas-libraries version is 9.0.1
openvas-manger version is 7.0.1
openvas-scanner version is 5.1.1
openvas-gsa version is 7.0.2
OpenVAS compiled from source

When I run the following command -> /usr/bin/openvas-check-setup --v9
I receive the following error:
ERROR: No OpenVAS Manager database found. (Tried: 
/var/lib/openvas/mgr/tasks.db)

 FIX: Run 'openvasmd --rebuild' while OpenVAS Scanner is running.

So I run /usr/sbin/openvasmd --otp-scanner=/var/run/openvassd.sock 
--rebuild again and again with same result


and how long did you wait?

build/rebuild the database is nothing which finishes within seconds
___
Openvas-discuss mailing list
Openvas-discuss@wald.intevation.org
https://lists.wald.intevation.org/cgi-bin/mailman/listinfo/openvas-discuss


Re: [Openvas-discuss] No OpenVAS Manager database found.

2011-04-06 Thread Zaki Akhmad

Dear Michael, here I attached the /tmp/openvas-check-setup.log Hope it can be 
helpful to identify the problem. 

-za, openvas-check-setup 2.0.2
  Mode:  desktop
  Date:  Wed, 06 Apr 2011 14:05:56 +0700

Checking for old OpenVAS Scanner = 2.0 ...
./openvas-check-setup.sh: 89: openvasd: not found

Checking presence of OpenVAS Scanner ...
OpenVAS Scanner 3.2.2
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.2.2.
plugins_folder = /usr/local/lib/openvas/plugins
cache_folder = /usr/local/var/cache/openvas
include_folders = /usr/local/lib/openvas/plugins
max_hosts = 30
max_checks = 10
be_nice = no
logfile = /usr/local/var/log/openvas/openvassd.messages
log_whole_attack = no
log_plugins_name_at_load = no
dumpfile = /usr/local/var/log/openvas/openvassd.dump
rules = /usr/local/etc/openvas/openvassd.rules
cgi_path = /cgi-bin:/scripts
port_range = default
optimize_test = yes
checks_read_timeout = 5
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 = 
cert_file = /usr/local/var/lib/openvas/CA/servercert.pem
key_file = /usr/local/var/lib/openvas/private/CA/serverkey.pem
ca_file = /usr/local/var/lib/openvas/CA/cacert.pem
config_file = /usr/local/etc/openvas/openvassd.conf
Checking OpenVAS Scanner CA cert ...

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

OK: NVT collection in /usr/local/lib/openvas/plugins contains 20283 NVTs.
Checking presence of OpenVAS Manager ...
OpenVAS Manager 2.0.2
Manager DB revision 41
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 2.0.2.
Checking OpenVAS Manager client certificate ...

OK: OpenVAS Manager client certificate is present as /usr/local/var/lib/openvas/CA/clientcert.pem.
Checking OpenVAS Manager database ...
ERROR: No OpenVAS Manager database found. (Tried: /usr/local/lib/openvas/mgr/tasks.db)
FIX: Run 'openvasmd --rebuild' while OpenVAS Scanner is running.
___
Openvas-discuss mailing list
Openvas-discuss@wald.intevation.org
http://lists.wald.intevation.org/mailman/listinfo/openvas-discuss


Re: [Openvas-discuss] No OpenVAS Manager database found.

2011-04-06 Thread Michael Wiegand
* Zaki Akhmad [ 6. Apr 2011]:
 Dear Michael, here I attached the /tmp/openvas-check-setup.log Hope it can be 
 helpful to identify the problem. 
 
 -za, 
 openvas-check-setup 2.0.2

Please make sure to use the most recent version of openvas-check-setup.

I think your main problem is using an beta version and then upgrading to
OpenVAS-4 in the same installation.

I do recommend a clean installation of OpenVAS-4; otherwise you might
face issues like this originating from obsolete configuration files and
the like.

Regards,


Michael

-- 
Michael Wiegand |  Greenbone Networks GmbH  |  http://www.greenbone.net/
Neuer Graben 17, 49074 Osnabrück, Germany | AG Osnabrück, HR B 202460
Executive Directors: Lukas Grunwald, Dr. Jan-Oliver Wagner

___
Openvas-discuss mailing list
Openvas-discuss@wald.intevation.org
http://lists.wald.intevation.org/mailman/listinfo/openvas-discuss


Re: [Openvas-discuss] No OpenVAS Manager database found.

2011-04-04 Thread Michael Wiegand
* Zaki Akhmad [ 4. Apr 2011]:
 Step 1: Checking OpenVAS Scanner ... 
 OK: OpenVAS Scanner is present in version 3.2.2.
 OK: OpenVAS Scanner CA Certificate is present as 
 /usr/local/var/lib/openvas/CA/cacert.pem.
 OK: NVT collection in /usr/local/lib/openvas/plugins contains 20283 
 NVTs.
 Step 2: Checking OpenVAS Manager ... 
 OK: OpenVAS Manager is present in version 2.0.2.
 OK: OpenVAS Manager client certificate is present as 
 /usr/local/var/lib/openvas/CA/clientcert.pem.
 ERROR: No OpenVAS Manager database found. (Tried: 
 /usr/local/lib/openvas/mgr/tasks.db)
 FIX: Run 'openvasmd --rebuild' while OpenVAS Scanner is running.
 
  ERROR: Your OpenVAS-4 installation is not yet complete!
 
 
 The OpenVAS Manager database is at 
 /usr/local/var/lib/openvas/mgr/tasks.db
 
 Is the script or my OpenVAS Manager installation that went wrong? 

I think you are probably trying to use OpenVAS-4 by updating an older
OpenVAS installation. Is this true?

Keep in mind that the openvas-check-setup script is intended for use
with OpenVAS-4 and may not work properly with existing older
installations.

That being said, I'll update the openvas-check-setup script to better
identify situations like the one you described.

Regards,

Michael

-- 
Michael Wiegand |  Greenbone Networks GmbH  |  http://www.greenbone.net/
Neuer Graben 17, 49074 Osnabrück, Germany | AG Osnabrück, HR B 202460
Executive Directors: Lukas Grunwald, Dr. Jan-Oliver Wagner

___
Openvas-discuss mailing list
Openvas-discuss@wald.intevation.org
http://lists.wald.intevation.org/mailman/listinfo/openvas-discuss


Re: [Openvas-discuss] No OpenVAS Manager database found.

2011-04-04 Thread Zaki Akhmad
- Original Message -
 
 I think you are probably trying to use OpenVAS-4 by updating an older
 OpenVAS installation. Is this true?
 
 Keep in mind that the openvas-check-setup script is intended for use
 with OpenVAS-4 and may not work properly with existing older
 installations.

Actually, previously I installed OpenVAS4-beta and now I tried the OpenVAS4.
 
 That being said, I'll update the openvas-check-setup script to better
 identify situations like the one you described.

Ok!

-za, 

___
Openvas-discuss mailing list
Openvas-discuss@wald.intevation.org
http://lists.wald.intevation.org/mailman/listinfo/openvas-discuss