From f2509c31a84a1461cb59b309c318fc3ceec63ff2 Mon Sep 17 00:00:00 2001 From: hugetoad Date: Sun, 17 Jun 2001 18:44:59 +0000 Subject: Zabbix_sucker will fork N (default=10) copies of himself to ensure getting of monitored parameters just in time. git-svn-id: svn://svn.zabbix.com/trunk@82 97f52cf1-0a1b-0410-bd0e-c28be96e8082 --- src/zabbix_agent/zabbix_agent.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/zabbix_agent/zabbix_agent.c') diff --git a/src/zabbix_agent/zabbix_agent.c b/src/zabbix_agent/zabbix_agent.c index a64f187d..043480a8 100644 --- a/src/zabbix_agent/zabbix_agent.c +++ b/src/zabbix_agent/zabbix_agent.c @@ -72,13 +72,13 @@ COMMAND commands[]= {"ping" ,PING, 0}, {"tcp_count" ,EXECUTE, "netstat -tn|grep EST|wc -l"}, - {"net[listen_21]" ,EXECUTE, "netstat -ln|grep tcp|grep -v grep|grep ':21 '|wc -l"}, - {"net[listen_22]" ,EXECUTE, "netstat -ln|grep tcp|grep -v grep|grep ':22 '|wc -l"}, - {"net[listen_23]" ,EXECUTE, "netstat -ln|grep tcp|grep -v grep|grep ':23 '|wc -l"}, - {"net[listen_25]" ,EXECUTE, "netstat -ln|grep tcp|grep -v grep|grep ':25 '|wc -l"}, - {"net[listen_80]" ,EXECUTE, "netstat -ln|grep tcp|grep -v grep|grep ':80 '|wc -l"}, - {"net[listen_110]" ,EXECUTE, "netstat -ln|grep tcp|grep -v grep|grep ':110 '|wc -l"}, - {"net[listen_143]" ,EXECUTE, "netstat -ln|grep tcp|grep -v grep|grep ':143 '|wc -l"}, + {"net[listen_21]" ,EXECUTE, "netstat -lnt|grep -v grep|grep ':21 '|wc -l"}, + {"net[listen_22]" ,EXECUTE, "netstat -lnt|grep -v grep|grep ':22 '|wc -l"}, + {"net[listen_23]" ,EXECUTE, "netstat -lnt|grep -v grep|grep ':23 '|wc -l"}, + {"net[listen_25]" ,EXECUTE, "netstat -lnt|grep -v grep|grep ':25 '|wc -l"}, + {"net[listen_80]" ,EXECUTE, "netstat -lnt|grep -v grep|grep ':80 '|wc -l"}, + {"net[listen_110]" ,EXECUTE, "netstat -lnt|grep -v grep|grep ':110 '|wc -l"}, + {"net[listen_143]" ,EXECUTE, "netstat -lnt|grep -v grep|grep ':143 '|wc -l"}, {0 ,0} }; -- cgit