Commit 5a1e625
committed
Fix result fetching in monthly-report script
The result fetching in the monthly-report script is adjusted in the
following ways:
- The selected hosts now also include ones that were last updated
after the requested month. Otherwise they would be missing
even if they were also updated in the requested month.
- The number of results for a host is no longer limited by the
"Rows per page" setting.
- Instead of counting all results, only the distinct vulnerabilities
(VTs) are counted. The new counting method also considers only the
latest occurrence of a vulnerability in case the severity level
has changed in the meantime.
Overall, this should make the script behave more as expected.
The new result counts by distinct VT should be more informative than the
previous number that could be influenced by how many times a host was
scanned.1 parent 1f27f64 commit 5a1e625
1 file changed
Lines changed: 27 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
66 | 71 | | |
67 | 72 | | |
68 | | - | |
69 | | - | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
70 | 80 | | |
71 | | - | |
72 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
73 | 92 | | |
74 | | - | |
| 93 | + | |
| 94 | + | |
75 | 95 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | 96 | | |
81 | 97 | | |
82 | 98 | | |
| |||
0 commit comments