Version 3

    Feb 2018 - Added keyword to arguments field for easier re-use.


    I had need to check a text file for keywords and did this via Powershell. I share here the script in it's most basic form:



    • Enter the path to the file and the keyword to search separated by a comma for in the script arguments (eg. \\${IP}\c$\Program Files\example\audit.log,error).
    • Set the execution mode to 'remote host'
    • Tick the box 'count statistic as difference'
    • Once you run a test you will then get the script output options for 'linecount', set the warning or critical to 'greater than 0'