Opened 4 years ago

Closed 3 years ago

#335 closed defect (fixed)

Powershell scripts NRPE

Reported by: garethf Owned by: MickeM
Priority: 1 Milestone: 0.3.8
Component: NRPEListener Version: 0.3.7
Severity: Patches Keywords:
Cc:

Description

Not a biggie

Rather than checking powershell scripts like this:

check_something=cmd /c echo scripts\bla.ps1 | powershell.exe -command -

Maybe should check like this:

check_something=powershell.exe -Command "& {scripts\bla.ps1; exit $LASTEXITCODE}"

So the exit states are returned correctly.

Change History (2)

comment:1 Changed 4 years ago by garethf

Actually that doesn't work either...

comment:2 Changed 3 years ago by mickem

  • Milestone set to 0.3.8
  • Resolution set to fixed
  • Status changed from new to closed

Fixed in next release

Note: See TracTickets for help on using tickets.