From e693353c396395cdbd5fe226b24f04466bba6c52 Mon Sep 17 00:00:00 2001 From: Sven Velt Date: Thu, 5 Sep 2019 18:09:38 +0200 Subject: [PATCH] Sys info: added awk line for /etc/os-release --- ssh-wrapper.py | 1 + 1 file changed, 1 insertion(+) diff --git a/ssh-wrapper.py b/ssh-wrapper.py index 75f541d..eaadfaf 100755 --- a/ssh-wrapper.py +++ b/ssh-wrapper.py @@ -10,6 +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 ##### Complete command lines (Monitoring-Plugins on Debian) r'^/usr/lib/nagios/plugins/check_disk -w \d+% -c \d+% -p /[/a-z]*$',