summaryrefslogtreecommitdiff
path: root/agent/mibgroup/hardware/memory/memory_null.c
diff options
context:
space:
mode:
Diffstat (limited to 'agent/mibgroup/hardware/memory/memory_null.c')
-rw-r--r--agent/mibgroup/hardware/memory/memory_null.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/agent/mibgroup/hardware/memory/memory_null.c b/agent/mibgroup/hardware/memory/memory_null.c
new file mode 100644
index 0000000..54ca6df
--- /dev/null
+++ b/agent/mibgroup/hardware/memory/memory_null.c
@@ -0,0 +1,18 @@
+/*
+ * dummy HAL memory module
+ * for systems not using any of the supported interfaces
+ */
+#include <net-snmp/net-snmp-config.h>
+#include <net-snmp/net-snmp-includes.h>
+#include <net-snmp/agent/net-snmp-agent-includes.h>
+#include <net-snmp/agent/hardware/memory.h>
+
+
+ /*
+ * We can't load the memory usage statistics
+ * because we don't know how to do this!
+ */
+int netsnmp_mem_arch_load( netsnmp_cache *cache, void *magic ) {
+
+ return 0; /* or -1 ? */
+}