URL: https://linuxfr.org/forums/programmation-shell/posts/probleme-script-pour-plugin-nagios Title: Probleme script pour plugin nagios Authors: frederic chassaing Date: 2007年07月19日T09:12:29+02:00 Tags: Score: 0 salut, voici mon soucis , le script ci-dessous fonctionne parfaitement en mode console par contre dans nagios j'ai pas de remontées d'infos je ne vois que " voici ci-dessous le script: ######### variables################################ STATE_OK=0 STATE_WARNING=1 STATE_CRITICAL=2 IP=1ドル ####################################################################### VOLTAGE=$(./check_snmp -H $IP -C XXXXXX -o .1.3.6.1.4.1.2021.278952101.1 | tr -s ' ' ':' | tr -s '"' ':' | cut -f 4 -d :) case $VOLTAGE in 1[0-9].[0-9]) echo $VOLTAGE ; exit $STATE_OK ;; [9].[0-9]) echo $VOLTAGE ; exit $STATE_WARNING ;; [0-8].[0-9]) echo $VOLTAGE ; exit $STATE_CRITICAL esac echo " fin du script" ################################################### voilà si quelqu'un pouvait m'expliquer comment faire pour le VOLTAGE remonte dans nagios je serais super content...

AltStyle によって変換されたページ (->オリジナル) /