#----------------------------------------------------------------------------- # /etc/check.d/nut.exp - expressions for check table of configuration params # # Copyright (c) 2014-2024 The Eisfair Team, team(at)eisfair(dot)org # # Creation: 2014-04-20 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. #----------------------------------------------------------------------------- NUT_EUPSNAME = '()|([-_[:lower:][:digit:]])+' : 'invalid ups name given, because only the following characters are allowed: a-z, 0-9, _, -' NUT_PORT = '/dev/[[:alpha:]][[:alnum:]]+|auto' : 'no valid device port chosen, should be /dev/ttySxx, /dev/ttyUSBx or "auto".' NUT_DRIVER = 'al175|apcsmart|apcsmart-old|apcupsd-ups|bcmxcp|bcmxcp_usb|belkin|belkinunv|bestfcom|bestfortress|bestuferrups|bestups|blazer_ser|blazer_usb|clone|clone-outlet|dummy-ups|etapro|everups|gamatronic|genericups|isbmex|ivtscd|liebert|liebert-esp2|masterguard|metasys|mge-shut|mge-utalk|microdowell|netxml-ups|nutdrv_atcl_usb|nutdrv_qx|oldmge-shut|oneac|optiups|powercom|powerpanel|rhino|richcomm_usb|riello_ser|riello_usb|safenet|skel|solis|tripplite|tripplite_usb|tripplitesu|upscode2|usbhid-ups|victronups' : 'no valid ups driver chosen.' NUT_ORDER = 'exclude|[0-9]' : 'invalid value entered, should be "exclude" or a numeric value between 0-9.' NUT_SERIAL = '(RE:NONE)' : 'a valid USV serial number need to be entered.' NUT_IPADDR = '(RE:IPADDR)(:((RE:NUMERIC)|auto))?' : 'invalid ip address entered, should be an ip address, optionally followed by a port number or the word "auto".' NUT_EIPADDR = '()|(RE:NUT_IPADDR)' : 'invalid value entered, should be an empty string, an ip address, optionally followed by a port number or the word "auto".' NUT_EIPADDRESSES = '()|(RE:NUT_IPADDR)(,(RE:NUT_IPADDR))*' : 'invalid value entered, should be an empty string, one or more ip addresses, optionally followed by a port number or the word "auto", separated by a colon.'