From 89e0b9fa5319bc325ed43057ea49bd2cfde30e5f Mon Sep 17 00:00:00 2001 From: Sven Velt Date: Wed, 11 Dec 2019 12:43:59 +0100 Subject: [PATCH] Fix for awk/os-release with different OS --- ssh-wrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssh-wrapper.py b/ssh-wrapper.py index 6de02c4..a3cc4f0 100755 --- a/ssh-wrapper.py +++ b/ssh-wrapper.py @@ -10,7 +10,7 @@ allowed = [ ##### System informations r'^/usr/bin/lsb_release\s+-d$', # Linux r'^/(usr/)?bin/uname\s+-mrs$', # Linux, BSD & others - r'''^/(usr/)?s?bin/awk -F'"' -e '/PRETTY_NAME/{ print \$2; }' /etc/os-release''', # Linux: /etc/os-release via awk for get_os.py + r'''^/(usr/)?s?bin/awk -F'"' (-e\s*)?'/PRETTY_NAME/{ print \$2; }' /etc/os-release''', # Linux: /etc/os-release via awk for get_os.py ##### Complete command lines (Monitoring-Plugins on Debian) r'^/usr/lib/nagios/plugins/check_disk -w \d+% -c \d+% -p /[/a-z]*$',