Commit 5c2f4ba1 authored by Hamza Dely's avatar Hamza Dely
Browse files

[Icinga] Plugin imprimante HP : Stapler --> Agrafeuse

parent afa7ab71
......@@ -105,7 +105,7 @@ class Supplies(nagiosplugin.Resource):
curr_levels = self.get_current_levels()
for desc, curr_level, uom, max_cap in zip(descs, curr_levels, uoms, max_capacities):
if "Stapler" in desc:
if "Agrafeuse" in desc:
if args.staplers:
pass
else:
......@@ -117,7 +117,7 @@ class Supplies(nagiosplugin.Resource):
else:
continue
if "Stapler" in desc:
if "Agrafeuse" in desc:
yield nagiosplugin.Metric(desc, curr_level, uom=uom, min=0, max=max_cap, context="staplers")
else:
if int(curr_level) < 0:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment