printer_watch: imprimante en fqdn

This commit is contained in:
Daniel STAN 2014-03-23 21:19:13 +01:00
parent 597861497f
commit 12fa9bfc39

View file

@ -25,7 +25,7 @@ except (IOError, ValueError, TypeError):
# On check le statut de l'imprimante # On check le statut de l'imprimante
status_id = netsnmp.Varbind("hrDeviceStatus.1") status_id = netsnmp.Varbind("hrDeviceStatus.1")
status = netsnmp.snmpget(status_id, Version=1, DestHost="imprimante.adm", Community="public") status = netsnmp.snmpget(status_id, Version=1, DestHost="imprimante.adm.crans.org", Community="public")
if status == ('5',) and (not successfuly_imported or successfuly_imported and (last_status == '2' or last_status == '3')): if status == ('5',) and (not successfuly_imported or successfuly_imported and (last_status == '2' or last_status == '3')):
""" """