Skip to content
Upcoming Events

Invoke-IcingaCheckCheckSum

Description

Checks hash against filehash of a file

Invoke-IcingaCheckCheckSum returns either ‘OK’ or ‘CRITICAL’, whether the check matches or not.

More Information on https://github.com/Icinga/icinga-powershell-plugins

Arguments

Argument Type Required Default Description
Path String false
Algorithm String false SHA256 Used to specify a string, which contains the algorithm to be used. Allowed algorithms: ‘SHA1’, ‘SHA256’, ‘SHA384’, ‘SHA512’, ‘MD5’
Hash String false
NoPerfData SwitchParameter false False
Verbosity Int32 false 0

Examples

Example Command 1

Invoke-IcingaCheckCheckSum -Path "C:\Users\Icinga\Downloads\test.txt"

Example Output 1

[OK] CheckSum C:\Users\Icinga\Downloads\test.txt is 008FB84A017F5DFDAF038DB2FDD6934E6E5D9CD3C7AACE2F2168D7D93AF51E4B

Example Command 2

Invoke-IcingaCheckCheckSum -Path "C:\Users\Icinga\Downloads\test.txt" -Hash 008FB84A017F5DFDAF038DB2FDD6934E6E5D9CD3C7AACE2F2168D7D93AF51E4B

Example Output 2

[OK] CheckSum C:\Users\Icinga\Downloads\test.txt is 008FB84A017F5DFDAF038DB2FDD6934E6E5D9CD3C7AACE2F2168D7D93AF51E4B|

Example Command 3

Invoke-IcingaCheckCheckSum -Path "C:\Users\Icinga\Downloads\test.txt" -Hash 008FB84A017F5DFDAF038DB2FDD6934E6E5D

Example Output 3

[CRITICAL] CheckSum C:\Users\Icinga\Downloads\test.txt 008FB84A017F5DFDAF038DB2FDD6934E6E5D9CD3C7AACE2F2168D7D93AF51E4B is not matching 008FB84A017F5DFDAF038DB2FDD6934E6E5D