From 1c576c1356dcd540ceb6f726942373c50aedd095 Mon Sep 17 00:00:00 2001 From: Alban Vidal Date: Tue, 27 Dec 2022 06:51:38 +0100 Subject: [PATCH] =?UTF-8?q?M=C3=A0j=20check=5Fconf?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- conf/common/etc/profile.d/00_couleurs.sh | 45 ++++++++++++++++++++++++ conf/common/usr/local/sbin/check_log | 2 +- 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 conf/common/etc/profile.d/00_couleurs.sh 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