Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
scheppa
byscheppa, March 20, 2018
Replaced:
$warningPercent = 95
$criticalPercent = 99
with:
param(
[parameter(Mandatory=$true)]
[alias("w")]
$warningPercent,
[parameter(Mandatory=$true)]
[alias("c")]
$criticalPercent
)
$warningPercent = 95
$criticalPercent = 99
with:
param(
[parameter(Mandatory=$true)]
[alias("w")]
$warningPercent,
[parameter(Mandatory=$true)]
[alias("c")]
$criticalPercent
)
I've added Perfdata to the check:
section "Calcul des taux de Broadcast des Switch" Line 205 insert:
PERF="$PERF Interface$((num + 1))=$nb_NUnicastPackets;$NB_WARNING;$NB_CRITICAL;;"
and in section "Envoi des codes retour et du message"
change following lines:
306: echo "Etat broadcast : $STATE|&PERF"
310: echo "Etat broadcast : $STATE|&PERF"
314: echo "Etat broadcast : $STATE|&PERF"
320: echo "Etat broadcast OK: Pas de communication ou broadcast sur la ou les interfaces surveillée(s)|$PERF"
322: echo "Etat broadcast : toutes interfaces OK|$PERF"
section "Calcul des taux de Broadcast des Switch" Line 205 insert:
PERF="$PERF Interface$((num + 1))=$nb_NUnicastPackets;$NB_WARNING;$NB_CRITICAL;;"
and in section "Envoi des codes retour et du message"
change following lines:
306: echo "Etat broadcast : $STATE|&PERF"
310: echo "Etat broadcast : $STATE|&PERF"
314: echo "Etat broadcast : $STATE|&PERF"
320: echo "Etat broadcast OK: Pas de communication ou broadcast sur la ou les interfaces surveillée(s)|$PERF"
322: echo "Etat broadcast : toutes interfaces OK|$PERF"
Owner's reply
Yes cool, thanks