Module: check_mk
Branch: master
Commit: 6a6fbc34ff00e53ad78f18e22d5e79efbae4eb7d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=6a6fbc34ff00e5…
Author: Bastian Kuhn <bk(a)mathias-kettner.de>
Date: Mon Apr 7 10:01:45 2014 +0200
Added wato_geo_fields to treasures.
---
doc/treasures/wato_geo_fields.py | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/doc/treasures/wato_geo_fields.py b/doc/treasures/wato_geo_fields.py
new file mode 100644
index 0000000..4cb00e6
--- /dev/null
+++ b/doc/treasures/wato_geo_fields.py
@@ -0,0 +1,25 @@
+#!/usr/bin/python
+# place this file to ~/local/share/check_mk/web/plugins/wato to get two new fields in the
wato host properties.
+# this fields can be used to add Latiude and Longitude information. Usefull for the
Nagvis Geomap
+
+declare_host_attribute(
+ NagiosTextAttribute(
+ "lat",
+ "_LAT",
+ "Latitude",
+ "Latitude",
+ ),
+ show_in_table = False,
+ show_in_folder = False,
+)
+
+declare_host_attribute(
+ NagiosTextAttribute(
+ "long",
+ "_LONG",
+ "Longitude",
+ "Longitude",
+ ),
+ show_in_table = False,
+ show_in_folder = False,
+)