Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Ihr Befehl sollte wie dieser Beispielbefehl aussehen.

Code Block
languagepowershell
titleBeispiel Powershell Skript
Write-Host "Hallo customcheck"
exit 2
Code Block
titleIn C:\Program Files\it-novum\openitcockpit-agent\customchecks.cnf
[check_xyz]
command = powershell.exe -File "C:\Users\test\Documents\testexample.ps1"
interval = 60
timeout = 510
enabled = true


Öffne eine CMD als Administrator.

...

Den Agent neu starten, um die angepasste Konfiguration anzuwenden.

Code Block
titleCMD ass als Administrator
powershell Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine
sc.exe stop oitcAgentSvc
sc.exe start oitcAgentSvc

...