From afbe5e9bcad4bd3a0d777e76306d484a36b58a6d Mon Sep 17 00:00:00 2001 From: glondu Date: Fri, 2 Feb 2007 11:21:51 +0100 Subject: [PATCH] Rvision des limites. darcs-hash:20070202102151-68412-28772d3f8f07af81ba0dc552527c0616488103f1.gz --- munin/laserjet_ | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/munin/laserjet_ b/munin/laserjet_ index 22788272..3efd8ee0 100755 --- a/munin/laserjet_ +++ b/munin/laserjet_ @@ -11,6 +11,8 @@ dico_courbes_gen = { 'vlabel' : "nb de pages restantes", 'lower-limit' : 0, 'upper-limit' : 30000, + 'warning' : "2000:", + 'critical' : "500:", 'dico' : { 'car_bla' : ("enterprises.11.2.3.9.4.2.1.4.1.10.5.1.1.1.0","Cartouche noir","000000"), 'car_cya' : ("enterprises.11.2.3.9.4.2.1.4.1.10.5.1.1.2.0","Cartouche cyan","00ffff"), @@ -21,8 +23,6 @@ dico_courbes_gen = { 'vlabel' : "pourcentage restant", 'lower-limit' : 0, 'upper-limit' : 100, - 'warning' : 15, - 'critical' : 2, 'dico' : { 'car_p_bla' : ("enterprises.11.2.3.9.4.2.1.4.1.10.1.1.18.1.0","Cartouche noir","000000"), 'car_p_cya' : ("enterprises.11.2.3.9.4.2.1.4.1.10.1.1.18.2.0","Cartouche cyan","00ffff"), @@ -33,6 +33,8 @@ dico_courbes_gen = { 'vlabel' : "nb de pages restantes", 'lower-limit' : 0, 'upper-limit' : 40000, + 'warning' : "2000:", + 'critical' : "500:", 'dico' : { 'tam_bla' : ("enterprises.11.2.3.9.4.2.1.4.1.10.5.1.1.5.0","Tambour d'imagerie noir","000000"), 'tam_cya' : ("enterprises.11.2.3.9.4.2.1.4.1.10.5.1.1.6.0","Tambour d'imagerie cyan","00ffff"), @@ -43,8 +45,6 @@ dico_courbes_gen = { 'vlabel' : "Pourcentage restant", 'lower-limit' : 0, 'upper-limit' : 100, - 'warning' : 15, - 'critical' : 2, 'dico' : { 'tam_p_bla' : ("enterprises.11.2.3.9.4.2.1.4.1.10.1.1.37.5.0","Tambour d'imagerie noir","000000"), 'tam_p_cya' : ("enterprises.11.2.3.9.4.2.1.4.1.10.1.1.37.6.0","Tambour d'imagerie cyan","00ffff"), @@ -55,8 +55,8 @@ dico_courbes_gen = { 'vlabel' : "nb de pages restantes", 'lower-limit' : 0, 'upper-limit' : 150000, - 'warning' : 5000, - 'critical' : 500, + 'warning' : "2000:", + 'critical' : "500:", 'dico' : { 'kit_tra' : ("enterprises.11.2.3.9.4.2.1.4.1.10.5.1.1.9.0","Kit de transfert image"), 'kit_net' : ("enterprises.11.2.3.9.4.2.1.4.1.10.5.1.1.10.0","Kit de nettoyage image"), @@ -90,9 +90,9 @@ if arg == "config" : #print "%s.draw LINE2" % fieldname print "%s.label %s" % (fieldname,dico_courbes[fieldname][1]) if warning: - print "%s.warning %d" % (fieldname, warning) + print "%s.warning %s" % (fieldname, warning) if critical: - print "%s.critical %d" % (fieldname, critical) + print "%s.critical %s" % (fieldname, critical) # En attendant que l'option arrive... if False and len(dico_courbes[fieldname])>2: print "%s.colour %s" % (fieldname,dico_courbes[fieldname][2])