User Tools

Site Tools


monitoring:nagios_tips

This is an old revision of the document!


Check_nrpe with parameter

Server:

Change check_nrpe!check_users!15!20 to check_nrpe!check_users!"15 20"

Multiple performance values

When you develop a custom check, 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.1650986142.txt.gz · Last modified: 2022/04/26 17:15 by manu