Nagstamon

Nagstamon 0.9.9 fehlt die Anzeige der Site in den Meldungen. Dieser kleine Patch fügt /usr/share/nagstamon/Nagstamon/Server/Multisite.py für der Spalte „Satus Information“ die Site als Präfix hinzu.

--- Multisite.py.orig   2013-07-28 20:36:36.351485142 +0200
+++ Multisite.py        2013-07-28 20:37:58.547482569 +0200
@@ -260,7 +260,7 @@
                     self.new_hosts[new_host].last_check = n["last_check"]
                     self.new_hosts[new_host].duration = n["duration"]
                     self.new_hosts[new_host].attempt = n["attempt"]
-                    self.new_hosts[new_host].status_information= n["status_information"]
+                    self.new_hosts[new_host].status_information= n["site"]+": "+n["status_information"]
                     self.new_hosts[new_host].site    = n["site"]
                     self.new_hosts[new_host].address = n["address"]
                     # transisition to Check_MK 1.1.10p2
@@ -337,7 +337,7 @@
                     self.new_hosts[n["host"]].services[new_service].last_check = n["last_check"]
                     self.new_hosts[n["host"]].services[new_service].duration = n["duration"]
                     self.new_hosts[n["host"]].services[new_service].attempt = n["attempt"]
-                    self.new_hosts[n["host"]].services[new_service].status_information = n["status_information"]
+                    self.new_hosts[n["host"]].services[new_service].status_information = n["site"]+": "+n["status_information"]
                     self.new_hosts[n["host"]].services[new_service].passiveonly = n["passiveonly"]
                     self.new_hosts[n["host"]].services[new_service].flapping = n["flapping"]
                     self.new_hosts[n["host"]].services[new_service].site = n["site"]

cd /usr/share/nagstamon/Nagstamon/Server
cat Multisite.py.patch | patch