Module: check_mk
Branch: master
Commit: c6e44d89728cfdf1531a2922727fe7764d5a23a3
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c6e44d89728cfd…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Thu Feb 10 12:34:37 2011 +0100
Fixed loading errors with the latest df_netapp32 check changes
---
checks/df_netapp32 | 11 ++++++++++-
1 files changed, 10 insertions(+), 1 deletions(-)
diff --git a/checks/df_netapp32 b/checks/df_netapp32
index 72a8e52..451ef2e 100644
--- a/checks/df_netapp32
+++ b/checks/df_netapp32
@@ -26,5 +26,14 @@
check_includes['df_netapp32'] = [ "df.include",
"df_netapp.include" ]
-check_info['df_netapp32'] = (check_df_netapp, "fs_%s", 1,
inventory_df_netapp)
+# These dummy functions prevent 'name 'inventory_df_netapp' is not
defined'
+# errors on loading this file before loading the check_includes
+def check_df_netapp_local(*args):
+ check_df_netapp(*args)
+
+def inventory_df_netapp_local(*args):
+ inventory_df_netapp(*args)
+
+
+check_info['df_netapp32'] = (check_df_netapp_local, "fs_%s", 1,
inventory_df_netapp_local)
snmp_info['df_netapp32'] = ("1.3.6.1.4.1.789.1.5.4.1", [ 2, 3, 4 ] )