summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2003-08-15 19:09:53 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2003-08-15 19:09:53 +0000
commitc8a9bbeef8c4daff678aae52fecae8536ed9787d (patch)
tree2bc6e15968e0e4b84edfebdc3125368a223f6e38
parent000d0cc2dc89dd14dd6e39fdd7d80a516d4874f2 (diff)
Minor changes.
git-svn-id: svn://svn.zabbix.com/trunk@925 97f52cf1-0a1b-0410-bd0e-c28be96e8082
-rw-r--r--TODO1
-rw-r--r--src/zabbix_trapper/zabbix_trapperd.c6
2 files changed, 7 insertions, 0 deletions
diff --git a/TODO b/TODO
index e29f5da5..439be3af 100644
--- a/TODO
+++ b/TODO
@@ -22,6 +22,7 @@ suckerd and agentd)
- agents to execute command
- add alerts to host templates
- add complete support for SNMP trapping
+ - zabbix_trapperd does not start if PostgreSQL and DBConnectOnEach=1
- monitoring of log files
- [10] Refresh stop ability. At least for graphs and triggers being selected.
diff --git a/src/zabbix_trapper/zabbix_trapperd.c b/src/zabbix_trapper/zabbix_trapperd.c
index 6a7a0224..8f4a2cba 100644
--- a/src/zabbix_trapper/zabbix_trapperd.c
+++ b/src/zabbix_trapper/zabbix_trapperd.c
@@ -350,11 +350,15 @@ void child_main(int i,int listenfd, int addrlen)
socklen_t clilen;
struct sockaddr cliaddr;
+ zabbix_log( LOG_LEVEL_DEBUG, "In child_main()");
+
zabbix_log( LOG_LEVEL_WARNING, "zabbix_trapperd %ld started",(long)getpid());
if(0 == CONFIG_CONNECTONEACH)
{
+ zabbix_log( LOG_LEVEL_DEBUG, "Before DBconnect()");
DBconnect(CONFIG_DBHOST, CONFIG_DBNAME, CONFIG_DBUSER, CONFIG_DBPASSWORD, CONFIG_DBSOCKET);
+ zabbix_log( LOG_LEVEL_DEBUG, "After DBconnect()");
}
for(;;)
@@ -363,7 +367,9 @@ void child_main(int i,int listenfd, int addrlen)
#ifdef HAVE_FUNCTION_SETPROCTITLE
setproctitle("waiting for connection");
#endif
+ zabbix_log( LOG_LEVEL_DEBUG, "Before accept()");
connfd=accept(listenfd,&cliaddr, &clilen);
+ zabbix_log( LOG_LEVEL_DEBUG, "After accept()");
#ifdef HAVE_FUNCTION_SETPROCTITLE
setproctitle("processing data");
#endif