Skip to content

Commit

Permalink
Convert int output of av_age to string
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-hendrikscholz authored Oct 5, 2021
1 parent fa89bb6 commit 2500f08
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(!!), AV database age:" + av_age + " days(!!), AMProductVersion:" + am_productversion + ", AMEngineVersion:" + am_engineversion)
yield Result(state=State.CRIT, summary="RealTime Protection: Disabled(!!), AV database age:" + str(av_age) + " days(!!), AMProductVersion:" + am_productversion + ", AMEngineVersion:" + am_engineversion)
return
else:
yield Result(state=State.CRIT, summary="RealTime Protection: Disabled(!!), AV database age:" + av_age + " days, AMProductVersion:" + am_productversion + ", AMEngineVersion:" + am_engineversion)
yield Result(state=State.CRIT, summary="RealTime Protection: Disabled(!!), AV database age:" + str(av_age) + " days, AMProductVersion:" + am_productversion + ", AMEngineVersion:" + am_engineversion)
return
else:
if age > 0:
yield Result(state=State.CRIT, summary="RealTime Protection: Enabled, AV database age: " + av_age + " days(!!), AMProductVersion:" + am_productversion + ", AMEngineVersion:" + am_engineversion)
yield Result(state=State.CRIT, summary="RealTime Protection: Enabled, AV database age: " + str(av_age) + " days(!!), AMProductVersion:" + am_productversion + ", AMEngineVersion:" + am_engineversion)
return
else:
yield Result(state=State.OK, summary="RealTime Protection: Enabled, AV database age:" + av_age + " days, AMProductVersion:" + am_productversion + ", AMEngineVersion:" + am_engineversion)
yield Result(state=State.OK, summary="RealTime Protection: Enabled, AV database age:" + str(av_age) + " days, AMProductVersion:" + am_productversion + ", AMEngineVersion:" + am_engineversion)
return


Expand Down

0 comments on commit 2500f08

Please sign in to comment.