Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add aligned summary to log at scan end #496

Merged
merged 6 commits into from May 7, 2020

Conversation

janowagner
Copy link
Member

Add a summary about duration and number of alive and total hosts to the log when the scan finishes. Have one for each, the alive scanner and the vulnerability scanner.
Also add the scan id to allow to distinguish when there are many concurrent scans.

@janowagner janowagner marked this pull request as ready for review May 5, 2020 07:06
src/attack.c Outdated Show resolved Hide resolved
src/attack.c Show resolved Hide resolved
src/alivedetection.c Show resolved Hide resolved
For the dead hosts count, extend send_dead_hosts_to_ospd_openvas()
to return the number of dead hosts.

In function scan() collect the dead hosts count, the scan id
and start and end time and send all information to the log
at the end of the scan.
This adds the scan id and the number of hosts
to the log summary. Use the same scheme as for the alive
scanner.
This helps for the case with 0 alive hosts.
@ArnoStiefvater ArnoStiefvater merged commit caaf779 into greenbone:master May 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants