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.
Announcement
Collapse
No announcement yet.
modif check_snmp_load
Collapse
X
-
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
Last edited by DonKiShoot; 20 August 2007, 18:46.Intel(R) Xeon(TM) CPU 3.4GHz - MemTotal : 1034476 kB
Centreon 2.4.1 - Nagios 3.2.1 - Nagios Plugins 1.4.15 - Manubulon Plugins tuné
Fedora Core 5 - 2.6.20-1.2320
Comment