#----------------------------------------------------------------------------- # /etc/check.d/slims.exp - expressions for check table of configuration params # # Copyright (c) 2001-2024 The Eisfair Team, team(at)eisfair(dot)org # # Creation: 2006-06-05 jed # Last Update: $Id$ # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. #----------------------------------------------------------------------------- SLIMS_REL_PATH = '(([[:alnum:]]|[-_.])+)(/([[:alnum:]]|[-_.*])+)*/?' : 'no valid relative path, only numbers, letters, "-" and "_" divided by "/" are allowed' SLIMS_ABS_PATH = '/(RE:SLIMS_REL_PATH)?' : 'no valid absolute path (must start with a slash and only numbers, letters, "-" and "_" divided by "/" are allowed)' SLIMS_IPADDR = '(RE:IPADDR)( *, *(RE:IPADDR))*' : 'no valid ip address(es) given, should be one or more ip address(es) separated by comma' SLIMS_IP_1 = '((RE:OCTET)\.\*)' : 'no valid ip address format, should be in the following format: 192.*' SLIMS_IP_2 = '((RE:OCTET)\.(RE:OCTET)\.\*)' : 'no valid ip address format, should be in the following format: 192.168.*' SLIMS_IP_3 = '((RE:OCTET)\.){3}((RE:OCTET)|(RE:OCTET)-(RE:OCTET)|\*)' : 'no valid ip address format, should be in the following format: 192.168.6.1, 192.168.6.2-50 or 192.168.6.*' SLIMS_IPADDR_1 = '(RE:SLIMS_IP_1)|(RE:SLIMS_IP_2)|(RE:SLIMS_IP_3)' : 'no valid ip address(es) given, should be in the following format and separated by comma: 127.0.0.1 or 192.168.6.2-20 or 192.168.6.*' SLIMS_IPADDR_2 = '(RE:SLIMS_IPADDR_1)( *, *(RE:SLIMS_IPADDR_1))*' : 'no valid ip address(es) given, should be in the following format and separated by comma: 127.0.0.1 or 192.168.6.2-20 or 192.168.6.*' SLIMS_LOG_INTERVAL = 'daily|weekly|monthly' : 'no valid interval, should be daily, weekly or monthly' SLIMS_PROXY_ADDR = '((RE:IPADDR)|(RE:HOSTNAME))( *: *(RE:NUMERIC))' : 'no valid proxy address, should be an ip-address or hostnames followed by a port number e.g. "192.168.6.1:8080"' SLIMS_EPROXY_ADDR = '()|((RE:IPADDR)|(RE:HOSTNAME))( *: *(RE:NUMERIC))' : 'no valid proxy address, should be an empty string or an ip-address or hostname followed by a port number e.g. "192.168.6.1:8080"' SLIMS_USER = '([-._[:lower:]0-9])+' : 'no valid user name, because only the following characters are allowed: a-z, 0-9, ., _ and -' SLIMS_EUSER = '()|(RE:SLIMS_USER)' : 'no valid user name, should be an empty string or contain only the following characters: a-z, 0-9, ., _ and -' SLIMS_GROUP = '(RE:SLIMS_USER)' : 'no valid group name, because only the following characters are allowed: a-z, 0-9, ., _ and -' SLIMS_EGROUP = '()|(RE:SLIMS_GROUP)' : 'no valid group name, should be an empty string or contain only the following characters: a-z, 0-9, ., _ and -'