瀏覽代碼

Version 2

Sven Velt 7 年之前
父節點
當前提交
51d9b33ef0
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ssh-wrapper.py

+ 1 - 1
ssh-wrapper.py

@@ -12,9 +12,9 @@ allowed = [
 		r'^/usr/lib/nagios/plugins/check_load -w \d+(,\d+,\d+)? -c \d+(,\d+,\d+)?$',
 		r'^/usr/lib/nagios/plugins/check_mysql -u [a-z]+ -p [0-9a-zA-Z]+',
 		r'^/usr/lib/nagios/plugins/check_mysql_health --user(name)?=[a-z]+ --pass(word)?=[0-9a-zA-Z]+ --mode=[a-z-]+$',
+		# r'^/usr/lib/nagios/plugins/check_',
 	]
 
-#cmdline = ' '.join(sys.argv[1:])
 cmdline = os.getenv('SSH_ORIGINAL_COMMAND')
 
 for maybe in allowed: