On ajoute la taille de la file d'attente.
darcs-hash:20070509194240-68412-3130765d5219b96eef684fa424ebaecfdfb38447.gz
This commit is contained in:
parent
59c38585ea
commit
1fa2b84b13
1 changed files with 5 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
#!/usr/bin/env python
|
||||
# -*- coding: iso-8859-15 -*
|
||||
|
||||
import sys
|
||||
import sys, os
|
||||
sys.path.append("/usr/scripts/gestion")
|
||||
|
||||
import hptools
|
||||
|
@ -58,10 +58,12 @@ if arg == "config":
|
|||
print 'host_name laserjet'
|
||||
print "graph_args --lower-limit 0 --upper-limit 10"
|
||||
print "graph_title Etat de l'imprimante"
|
||||
print "graph_vlabel 0: no problem, 40: ragnarok"
|
||||
print "etat.label Estimation des embrouilles"
|
||||
print "graph_vlabel nb"
|
||||
print "etat.label Estimation des embrouilles (>3=problemes)"
|
||||
print "etat.warning 4"
|
||||
print "etat.critical 8"
|
||||
print "lpq.label Taille de la file d'attente"
|
||||
else:
|
||||
# Ecrit les valeurs actuelles sur la sortie standard
|
||||
print "etat.value %s" % etat()
|
||||
print "lpq.value %d" % (int(os.popen("lpq|wc -l").read())-2)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue