How can I increase the log level of openvassd

I’m trying to debug openvassd v. 5.1.3 where it seems to just drop dead under some circumstances.

I cannot figure out how to increase the log level of openvassd and get more debug data into my log file. There is nothing about this in the man page or in openvassd --help?

Anyone?

I take it that it’s not possible.
Is that true?

Unfortunately, openvassd as of GVM-9 (openvassd 5.1.x) does not allow for a modern flexible log configuration.

We have proper log configuration, log levels and log domains in place for all other modules of GVM-9. Those are the modules developed by Greenbone from scratch.

However, for GVM-10 we have implemented this standard into openvassd as well:

1 Like

Thanks, when can we expect gvm-10 release?

I’m trying to debug this problem where openvassd will drop dead. It seems to happen as a result of “openvasmd --rebuild”, but only occationally, openvassd log is numb and openvasmd.log will only complain with:

md main:WARNING:2018-10-22 22h13.25 utc:24248: openvas_scanner_connect_unix: Failed to connect to scanner (/usr/local/var/run/openvassd.sock): Connection refused

More complete peace of openvasmd.log:

md manage: INFO:2018-10-22 22h13.24 utc:24245: Checking alerts.
md main:MESSAGE:2018-10-22 22h13.25 utc:24247: OpenVAS Manager version 7.0.4 (GIT revision a3356c98-openvas-manager-7.0) (DB revision 184)
md main: INFO:2018-10-22 22h13.25 utc:24247: rebuild_nvt_cache_retry: Reloading NVT cache
md main: INFO:2018-10-22 22h13.25 utc:24248: update_or_rebuild_nvt_cache: Rebuilding NVT cache
base gpgme:MESSAGE:2018-10-22 22h13.25 utc:24248: Setting GnuPG dir to ‘/usr/local/var/lib/openvas/openvasmd/gnupg’
base gpgme:MESSAGE:2018-10-22 22h13.25 utc:24248: Using OpenPGP engine version ‘2.2.4’
md main: INFO:2018-10-22 22h13.25 utc:24248: Updating NVT cache.
md main:WARNING:2018-10-22 22h13.25 utc:24248: openvas_scanner_connect_unix: Failed to connect to scanner (/usr/local/var/run/openvassd.sock): Connection refused

@asmaack As it seems the initial question (how to increase log level) was answered and the debugging question with the current available methods is a separate topic i would suggest to open a new thread.

This helps to avoid mixing several different topics within the same thread.

For completeness i’m linking the related logging documentation for each main module below (scanner available in 6.0 beta1+)