CheckMK Local Checks - Multiple Files In Local Folder

Good Day Everyone,

CheckMK local checks appear to work on a Windows agent when there is one script (bat, ps1, etc) in the local folder at the following location: C:\ProgramData\checkmk\agent\local. However, when I place two or more separate files in the local folder on a windows agent, I don’t see separate local checks in CheckMK. Is that by design or can many local checks run in the local folder location?

Thanks
Steve

Hi Steve,

there is no built-in limit on local checks, you just have to make sure, that each local check returns a unique name.

You can check the agent output to see if any of the other scripts are called at all, or your local windows agent log at C:\ProgramData\checkmk\agent\log/check_mk.log

Hi GSTolz. It appears that in the Powershell script, I had a line that had a string of, -NoNewLine, that was causing the issue:

For Example - Write-Host $statuscodecrit “Check_FortiEDRDump” - “Please Check Folder Size At Location C - ProgramData - FortiEDR - Dumps - Collector.” -NoNewline

By removing the “- NoNewline”, this fixed everything

Thanks
Steve

1 Like

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed. Contact an admin if you think this should be re-opened.