summaryrefslogtreecommitdiffstats
path: root/src/libs/zbxsysinfo
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-03-28 13:32:53 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2007-03-28 13:32:53 +0000
commitc7fa9fac400f621009d138fe43ac26e0c80ecf75 (patch)
treec35cb42333e1b14a667d4545f14170971d62cafe /src/libs/zbxsysinfo
parentf2aeddc8d732b11fe848ed4bd14a786b28b4d066 (diff)
downloadzabbix-c7fa9fac400f621009d138fe43ac26e0c80ecf75.tar.gz
zabbix-c7fa9fac400f621009d138fe43ac26e0c80ecf75.tar.xz
zabbix-c7fa9fac400f621009d138fe43ac26e0c80ecf75.zip
- added filering of log items by regexp on agentside (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@3949 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'src/libs/zbxsysinfo')
-rw-r--r--src/libs/zbxsysinfo/common/common.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/libs/zbxsysinfo/common/common.c b/src/libs/zbxsysinfo/common/common.c
index 379d891c..13658a3d 100644
--- a/src/libs/zbxsysinfo/common/common.c
+++ b/src/libs/zbxsysinfo/common/common.c
@@ -38,6 +38,7 @@
static int AGENT_PING(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result);
static int AGENT_VERSION(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result);
+static int ONLY_ACTIVE(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result);
ZBX_METRIC parameters_common[]=
/* KEY FLAG FUNCTION ADD_PARAM TEST_PARAM */
@@ -67,10 +68,21 @@ ZBX_METRIC parameters_common[]=
{"system.uname", 0, SYSTEM_UNAME, 0, 0},
{"system.users.num", 0, SYSTEM_UNUM, 0, 0},
+ {"log", CF_USEUPARAM, ONLY_ACTIVE, 0, "logfile"},
+ {"eventlog", CF_USEUPARAM, ONLY_ACTIVE, 0, "system"},
{0}
};
+static int ONLY_ACTIVE(const char *cmd, const char *param, unsigned flags, AGENT_RESULT *result)
+{
+ assert(result);
+
+ init_result(result);
+ SET_MSG_RESULT(result, strdup("Accessible only as active check!"));
+ return SYSINFO_RET_FAIL;
+}
+
int getPROC(char *file, int lineno, int fieldno, unsigned flags, AGENT_RESULT *result)
{
#ifdef HAVE_PROC