From 39c1d34bbb837a116016b6491b04e1a931d5406c Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sat, 27 Mar 2021 12:07:49 +0100 Subject: [PATCH] bundles/sshmon: fix disk space usage limits --- bundles/sshmon/metadata.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bundles/sshmon/metadata.py b/bundles/sshmon/metadata.py index ec26919..0d8ee53 100644 --- a/bundles/sshmon/metadata.py +++ b/bundles/sshmon/metadata.py @@ -82,8 +82,8 @@ def default_checks(metadata): 'DISK SPACE': { 'command_on_monitored_host': str( '/usr/lib/nagios/plugins/check_disk -X nfs -X nfs4 -X squashfs ' - f'-w {disk_space_warning} -c {disk_space_critical} ' - f'-W {disk_space_warning_inodes} -K {disk_space_critical_inodes} ' + f'-w {disk_space_warning}% -c {disk_space_critical}% ' + f'-W {disk_space_warning_inodes}% -K {disk_space_critical_inodes}% ' '-A -I "^/dev$" -I "^/run" -I "^/sys" -i "/sys/kernel/debug/tracing" ' f'{disk_space_ignore_patterns_string}', ),