PDA

View Full Version : modif check_snmp_load


titouille
08-20-2007, 06:33 PM
si on veut grapher avec ODS les résultats du check_snmp_load, il faut remplacer la virgule par un espace en fin de lignes 397 et 398 pour le type linux. Faire de même pour les autres types.

DonKiShoot
08-20-2007, 06:38 PM
Ca me parait étrange car le format des perfdata me semble bon :

print " | load_1_min=$load[0];$o_warnL[0];$o_critL[0],";
print "load_5_min=$load[1];$o_warnL[1];$o_critL[1],";
print "load_15_min=$load[2];$o_warnL[2];$o_critL[2]\n";

Correction, il semblerait en effet que le separateur entre 2 label=value soit l'espace (un ou plusieurs apparement) :

2.6. Performance data

Performance data is defined by Nagios as "everything after the | of the plugin output" - please refer to Nagios documentation for information on capturing this data to logfiles. However, it is the responsibility of the plugin writer to ensure the performance data is in a "Nagios plugins" format. This is the expected format:
'label'=value[UOM];[warn];[crit];[min];[max]

Notes:
space separated list of label/value pairs

DonKiShoot
08-22-2007, 03:33 PM
J'ai ouvert ce bug sur sourceforge pour que manubulon le corrige.

Wolfgang
09-13-2007, 05:19 PM
Malheureusement Centreon est distribue avec check_snmp_load.pl V1.2 BETA (Aug 27 2005). V1.32 (Revision 1.10 sur sourceforge, Jan 16 2007) est corrigé.