diff --git a/conf/common/etc/profile.d/00_couleurs.sh b/conf/common/etc/profile.d/00_couleurs.sh new file mode 100644 index 0000000..af5ca25 --- /dev/null +++ b/conf/common/etc/profile.d/00_couleurs.sh @@ -0,0 +1,45 @@ +#!/usr/bin/env bash + +################################################################################ +# BSD 3-Clause License +# +# Copyright (c) 2020-2021, Alban Vidal +# Copyright (c) 2020-2021, Quentin Lejard +# All rights reserved. +# +# Please see license file on root of this directory +################################################################################ + +# !! GIT FILE !! +# https://framagit.org/zorval/scripts/check-nrpe + +################################################################################ + + NORMAL='\033[00m' + GRAS='\033[01m' + SSLIGNE='\033[04m' + + ROUGE='\033[31m' + LROUGE='\033[91m' + + VERT='\033[32m' + LVERT='\033[92m' + + JAUNE='\033[33m' + LJAUNE='\033[93m' + JAUNE2='\033[38;5;220m' + + BLEU='\033[34m' + LBLEU='\033[94m' + BLEU2='\033[38;5;69m' + + MAGENTA='\033[35m' +LMAGENTA='\033[95m' + + CYAN='\033[36m' + LCYAN='\033[96m' + + LGRIS='\033[37m' + GRIS='\033[90m' + + ORANGE='\033[38;5;208m' diff --git a/conf/common/usr/local/sbin/check_log b/conf/common/usr/local/sbin/check_log index 3902f27..0e2a420 100755 --- a/conf/common/usr/local/sbin/check_log +++ b/conf/common/usr/local/sbin/check_log @@ -35,7 +35,7 @@ if [ ! -z "$OPTION_1" ]; then fi fi -FIC_COLORS=/etc/profile.d/00_fonctions.sh +FIC_COLORS=/etc/profile.d/00_couleurs.sh # Récupération des couleurs (NORMAL GRAS SSLIGNE ROUGE VERT BLEU GRIS) if [ "$PRINT_MODE" = true ]; then