User Tools

Site Tools


monitoring:nagios_tips

This is an old revision of the document!


Multiple performance values

it is possible to send more than one variable in a check. Simply seperated your variable definitions by a pipe symbol (do not use spaces). Here is an example output of a check sending three performance values:

0 Nagios_Status ok=33012|crit=17|warn=120|unkw=16 Services ok/cr/wa/un: 33012/17/120/16

Pour générer des graphs dans nagios à partir d'un script NRPE, il suffit de structurer l'output comme suit :

echo "OK: Memory 75% | memory=75%"

Cela affichera : “OK : Memory 75%” et ca passera la variable “memory” avec sa valeur dans nagios“

Syntaxe avec plusieurs valeurs :

echo “OK - memory = $memory%, paging = $paging%|memory=$memory,paging=$paging”

monitoring/nagios_tips.1609532713.txt.gz · Last modified: 2021/01/01 21:25 by 127.0.0.1