Icinga / Icinga/icinga-powershell-plugins
Feature/Enhancement: Invoke-IcingaCheckDirectory - add possibility to check for pattern in file
Nobody has claimed this yet.
- Dominant language
- PowerShell
- Stars
- 55
- Forks
- 30
- PR merge metrics
- No merged PRs in 30d
Description
Sometimes it's not enough only for check for file size, creation/modify date etc. from files in a directory. Therefore it is sometimes necessary to additionally search for a file content (pattern). It would be great to have such a possibility with an additional parameter.
Because I forked the check already for us with such a new param, I will create a PR with this change.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the Invoke-IcingaCheckDirectory implementation and inspect how its existing file size and creation/modify-date checks accept parameters. Confirm the intended pattern-matching semantics and add coverage for matching and non-matching file content; done means content-pattern matching works alongside the existing directory checks.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- powershell
- Domain
- observability-sre
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100