Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

logfile: Multiple checks on the same file produce undesired results #698

Open
6 of 8 tasks
drapiti opened this issue Aug 1, 2023 · 0 comments
Open
6 of 8 tasks
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@drapiti
Copy link

drapiti commented Aug 1, 2023

This issue respects the following points:

Which variant of the Monitoring Plugins do you use?

  • .rpm/.deb package from repo.linuxfabrik.ch
  • Compiled for Linux (.tar/.zip from download.linuxfabrik.ch)
  • Compiled for Windows (from download.linuxfabrik.ch)
  • Source Code from GitHub

Bug description

The logfile plugin (latest version) uses the filename as a key when checking previous occurrences, however this invalidates the check if for example I need to check two seperate conditions for two seperate instances in time using the same filename.
The ideal solution would be to include the condition or a hash of each condition so that it tracks multiple bookmarks for each condition.

Steps to reproduce - Plugin call

.\logfile.exe --alarm-duration 120 --critical 1 --critical-regex '^(?:(?!Inizio del Processing).)*$' --filename 'C:\Users\test\Desktop\NEW_TEST\pluto.log'

Steps to reproduce - Data

Environment

currently working on windows server 2019 but os is irrelevant.

Plugin Version

logfile: v2023051201 by Linuxfabrik GmbH, Zurich/Switzerland

Python version

No response

List of Python modules

Additional Information

@drapiti drapiti added the bug Something isn't working label Aug 1, 2023
@markuslf markuslf added enhancement New feature or request and removed bug Something isn't working labels Aug 7, 2023
@markuslf markuslf self-assigned this Aug 7, 2023
@markuslf markuslf added this to the M004 milestone Aug 7, 2023
@markuslf markuslf modified the milestones: M004, M005 Nov 29, 2023
@markuslf markuslf modified the milestones: M005, M006 May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants