From 272e4013ed8ee17bf38f8ab9a1e5cd3d1e2313cb Mon Sep 17 00:00:00 2001 From: cohen Date: Thu, 5 Oct 2006 01:22:44 +0200 Subject: [PATCH] Un hack de plus pour tracer les machines concernes via un locate-mac darcs-hash:20061004232244-f6463-70a9fb87f5ebac9a1cc6be3ce4e8c01dea30a991.gz --- surveillance/arpwatch_sendmail.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/surveillance/arpwatch_sendmail.py b/surveillance/arpwatch_sendmail.py index 092c4f4a..cd60274d 100755 --- a/surveillance/arpwatch_sendmail.py +++ b/surveillance/arpwatch_sendmail.py @@ -28,6 +28,12 @@ Commande : %s """ % (r, commande, s) else: s = "\n" + s + "\n" + #on recupere le resultat d'un locate + locate_mac = "/usr/scripts/gestion/tools/locate-mac.py %s" % mac + r2, s2 = getstatusoutput(locate_mac) + # on l'ajoute a la sortie + s = s+ "\n" + s2 + return s if __name__ == "__main__":