#----------------------------------------------------------------------------- # /etc/check.d/telegram.exp - check of configuration parameters # # Copyright (c) 2016-2023 The Eisfair Team, team(at)eisfair(dot)org # # Creation: 2018-04-08 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. #----------------------------------------------------------------------------- TELEGRAM_EACTION = '()|(echo|printf|(RE:ABS_PATH))( *[^!]*)?' : 'no valid telegram action given, should be an absolute path to a command or script, optionally followed by addtional parameters etc.' TELEGRAM_ECMD = '()|[0-9a-z-]{1,10}' : 'no valid command given, should be an alpha-numeric string with a length of not more than 10 characters.' TELEGRAM_EID = '()|^\$[[:xdigit:]]+' : 'no valid telegram id given, it should start with a "$" and only contain the following characters: 0-9, a-z'