src/daemon/module.c \
src/daemon/module.h \
src/daemon/modules.c \
- src/daemon/modules.h
+ src/daemon/modules.h \
+ src/daemon/modules/loadavg.c \
+ src/daemon/modules/loadavg.h
collectyd_CPPFLAGS = \
$(AM_CPPFLAGS)
#include "module.h"
#include "modules.h"
+// Load all modules
+#include "modules/loadavg.h"
+
// Register all modules
static collecty_module* modules[] = {
+ &loadavg_module,
NULL,
};
--- /dev/null
+/*#############################################################################
+# #
+# collecty - A system statistics collection daemon for IPFire #
+# Copyright (C) 2025 IPFire Development Team #
+# #
+# This program is free software: you can redistribute it and/or modify #
+# it under the terms of the GNU General Public License as published by #
+# the Free Software Foundation, either version 3 of the License, or #
+# (at your option) any later version. #
+# #
+# This program is distributed in the hope that it will be useful, #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
+# GNU General Public License for more details. #
+# #
+# You should have received a copy of the GNU General Public License #
+# along with this program. If not, see <http://www.gnu.org/licenses/>. #
+# #
+#############################################################################*/
+
+#include "../ctx.h"
+#include "loadavg.h"
+
+collecty_module loadavg_module = {
+ .name = "loadavg",
+};
--- /dev/null
+/*#############################################################################
+# #
+# collecty - A system statistics collection daemon for IPFire #
+# Copyright (C) 2025 IPFire Development Team #
+# #
+# This program is free software: you can redistribute it and/or modify #
+# it under the terms of the GNU General Public License as published by #
+# the Free Software Foundation, either version 3 of the License, or #
+# (at your option) any later version. #
+# #
+# This program is distributed in the hope that it will be useful, #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
+# GNU General Public License for more details. #
+# #
+# You should have received a copy of the GNU General Public License #
+# along with this program. If not, see <http://www.gnu.org/licenses/>. #
+# #
+#############################################################################*/
+
+#ifndef COLLECTY_MODULE_LOADAVG_H
+#define COLLECTY_MODULE_LOADAVG_H
+
+#include "../module.h"
+
+extern collecty_module loadavg_module;
+
+#endif /* COLLECTY_MODULE_LOADAVG_H */