Skip to content

Commit

Permalink
Add AV signature age to status detail
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-hendrikscholz authored Oct 5, 2021
1 parent f6990d8 commit fa89bb6
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ def check_win_defender(item,section):
age + 1
if rtprot_status == "False":
if age > 0:
yield Result(state=State.CRIT, summary="RealTime Protection: Disabled(!!), Anti-virus Database: Out-of-Date(!!), AMProductVersion:" + am_productversion + ", AMEngineVersion:" + am_engineversion)
yield Result(state=State.CRIT, summary="RealTime Protection: Disabled(!!), AV database age:" + av_age + " days(!!), AMProductVersion:" + am_productversion + ", AMEngineVersion:" + am_engineversion)
return
else:
yield Result(state=State.CRIT, summary="RealTime Protection: Disabled(!!), Anti-virus Database: Up-to-Date, AMProductVersion:" + am_productversion + ", AMEngineVersion:" + am_engineversion)
yield Result(state=State.CRIT, summary="RealTime Protection: Disabled(!!), AV database age:" + av_age + " days, AMProductVersion:" + am_productversion + ", AMEngineVersion:" + am_engineversion)
return
else:
if age > 0:
yield Result(state=State.CRIT, summary="RealTime Protection: Enabled, Anti-virus Database: Out-of-Date(!!), AMProductVersion:" + am_productversion + ", AMEngineVersion:" + am_engineversion)
yield Result(state=State.CRIT, summary="RealTime Protection: Enabled, AV database age: " + av_age + " days(!!), AMProductVersion:" + am_productversion + ", AMEngineVersion:" + am_engineversion)
return
else:
yield Result(state=State.OK, summary="RealTime Protection: Enabled, Anti-virus Database: Up-to-date, AMProductVersion:" + am_productversion + ", AMEngineVersion:" + am_engineversion)
yield Result(state=State.OK, summary="RealTime Protection: Enabled, AV database age:" + av_age + " days, AMProductVersion:" + am_productversion + ", AMEngineVersion:" + am_engineversion)
return


Expand Down

0 comments on commit fa89bb6

Please sign in to comment.