#----------------------------------------------------------------------------- # /etc/check.d/nfsserver.exp - expressions for check table of configuration params # # Copyright (c) 2001-2024 The Eisfair Team, team(at)eisfair(dot)org # # Creation: 2004-07-28 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. #----------------------------------------------------------------------------- NFSSERVER_NUMERIC = '[1-9]([0-9]+)?' : 'should be numeric, a value of 0 is not allowed (decimal)' NFSSERVER_USER = '([-._[:lower:]0-9])+' : 'no valid user name, because only the following characters are allowed: a-z, 0-9, ., _ and -' NFSSERVER_EUSER = '()|(RE:NFSSERVER_USER)' : 'no valid user name, should be an empty string or contain only the following characters: a-z, 0-9, ., _ and -' NFSSERVER_EGROUP = '()|(RE:NFSSERVER_USER)' : 'no valid group name, should be an empty string or contain only the following characters: a-z, 0-9, ., _ and -' NFSSERVER_HOST = '((RE:IPADDR)|(RE:NETWORK)|(RE:HOSTNAME))' : 'no valid host given, should be an ip address, a hostname or a network (incl. netmask)' NFSSERVER_EOPTION = '()|(RE:NOTEMPTY)(,(RE:NOTEMPTY))*' : 'no valid option(s) given, should contain one or more parameters separated by commata.' NFSSERVER_PATH = 'nfs4|(RE:ABS_PATH)' : 'no valid value given, should be "nfs4" or an absolute path (must start with a slash and only numbers, letters, "-" and "_" divided by "/" are allowed)' NFSSERVER_ENAME = '()|([[:alnum:]]|[-_.])+' : 'no valid NFSv4 share name, should be an empty string or contain only the following characters: A-Z, a-z, 0-9, ., _ and -'