Skip to content

Commit 4fc9899

Browse files
committed
fix(procs): replace md5 with sha256 for filter hash key
1 parent 462e6a0 commit 4fc9899

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

check-plugins/procs/procs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ except ImportError:
3333

3434

3535
__author__ = 'Linuxfabrik GmbH, Zurich/Switzerland'
36-
__version__ = '2026040801'
36+
__version__ = '2026040802'
3737

3838
DESCRIPTION = """Prints the number of currently running processes and warns on metrics like process
3939
counts, process memory usage or CPU usage. You may filter the process list by
@@ -518,7 +518,7 @@ def main():
518518
args.USERNAME or '',
519519
args.STATUS or '',
520520
)
521-
filter_hash = hashlib.md5(filter_key.encode()).hexdigest()
521+
filter_hash = hashlib.sha256(filter_key.encode()).hexdigest()
522522

523523
conn = lib.base.coe(lib.db_sqlite.connect(
524524
filename='linuxfabrik-monitoring-plugins-procs.db',

0 commit comments

Comments
 (0)