Browse Source

Version 2

Sven Velt 7 years ago
parent
commit
51d9b33ef0
1 changed files with 1 additions and 1 deletions
  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: