diff options
author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-08-26 10:43:15 +0000 |
---|---|---|
committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2005-08-26 10:43:15 +0000 |
commit | e2128fb24527ba8f591e54633be0daf9a7636146 (patch) | |
tree | 833f575c343620caef23b9eedbc9d4e26c124d8c /src/libs/zbxsysinfo | |
parent | dd14d03d12241a2b76b58ef1e035fc9c6d7740f1 (diff) | |
download | zabbix-e2128fb24527ba8f591e54633be0daf9a7636146.tar.gz zabbix-e2128fb24527ba8f591e54633be0daf9a7636146.tar.xz zabbix-e2128fb24527ba8f591e54633be0daf9a7636146.zip |
- updated system.uname, system.uptime, system.users.num (Alexei)
git-svn-id: svn://svn.zabbix.com/trunk@1996 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'src/libs/zbxsysinfo')
-rw-r--r-- | src/libs/zbxsysinfo/sysinfo.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libs/zbxsysinfo/sysinfo.c b/src/libs/zbxsysinfo/sysinfo.c index 16dde2a1..7782d4bc 100644 --- a/src/libs/zbxsysinfo/sysinfo.c +++ b/src/libs/zbxsysinfo/sysinfo.c @@ -256,11 +256,14 @@ COMMAND agent_commands[]= {"system[procrunning]" ,EXECUTE, 0, "cat /proc/loadavg|cut -f1 -d'/'|cut -f4 -d' '"}, #endif {"system[hostname]" ,0, EXECUTE_STR, "hostname"}, + {"system.hostname" ,0, EXECUTE_STR, "hostname"}, {"system.localtime" ,SYSTEM_LOCALTIME, 0, 0}, {"system[uname]" ,0, EXECUTE_STR, "uname -a"}, + {"system.uname" ,0, EXECUTE_STR, "uname -a"}, {"system[uptime]" ,SYSTEM_UPTIME, 0, 0}, {"system.uptime" ,SYSTEM_UPTIME, 0, 0}, {"system[users]" ,EXECUTE, 0,"who|wc -l"}, + {"system.users.num" ,EXECUTE, 0,"who|wc -l"}, {"ping" ,PING, 0, 0}, /* {"tcp_count" ,EXECUTE, 0, "netstat -tn|grep EST|wc -l"}, */ |