Lines Matching refs:ARGV0

20 #ifndef ARGV0
21 #define ARGV0 "ossec-agent" macro
38 printf("\n%s %s %s .\n", __ossec_name, ARGV0, __version); in agent_help()
52 verbose("%s: Starting syscheckd thread.", ARGV0); in skthread()
67 OS_SetName(ARGV0); in main()
105 merror("%s: Unknown option: %s", ARGV0, argv[1]); in main()
112 ErrorExit("%s: Unable to start WinMain.", ARGV0); in main()
131 ErrorExit(MEM_ERROR, ARGV0, errno, strerror(errno)); in local_start()
148 ErrorExit("%s: Configuration file '%s' not found", ARGV0, cfg); in local_start()
153 ErrorExit("%s: WSAStartup() failed", ARGV0); in local_start()
157 debug1("%s: DEBUG: Reading agent configuration.", ARGV0); in local_start()
159 ErrorExit(CLIENT_ERROR, ARGV0); in local_start()
169 … reconnect can't be less than notify_time(%d), using notify_time*3 (%d)", ARGV0, agt->notify_time,… in local_start()
171 …verbose("%s: Using notify time: %d and max time to reconnect: %d", ARGV0, agt->notify_time, agt->m… in local_start()
174 debug1("%s: DEBUG: Reading logcollector configuration.", ARGV0); in local_start()
176 ErrorExit(CONFIG_ERROR, ARGV0, cfg); in local_start()
181 ErrorExit(AG_NOKEYS_EXIT, ARGV0); in local_start()
196 merror(NO_FILE, ARGV0); in local_start()
205 verbose(ENC_READ, ARGV0); in local_start()
220 debug1("%s: DEBUG: Creating thread mutex.", ARGV0); in local_start()
223 ErrorExit("%s: Error creating mutex.", ARGV0); in local_start()
233 merror(THREAD_ERROR, ARGV0); in local_start()
252 merror(THREAD_ERROR, ARGV0); in local_start()
278 debug2("%s: DEBUG: Attempting to send message to server.", ARGV0); in SendMSG()
287 merror("%s: Error waiting mutex (timeout).", ARGV0); in SendMSG()
291 merror("%s: Error waiting mutex (abandoned).", ARGV0); in SendMSG()
294 merror("%s: Error waiting mutex.", ARGV0); in SendMSG()
308 debug1("%s: DEBUG: Sending info to server (c1)...", ARGV0); in SendMSG()
309 …verbose("%s: More than %d seconds without server response...sending win32info", ARGV0, agt->notify… in SendMSG()
327 …nds without server response...is server alive? and Is there connection?", ARGV0, agt->max_time_rec… in SendMSG()
330 debug1("%s: DEBUG: Sending info to server (c3)...", ARGV0); in SendMSG()
346 verbose(SERVER_UNAV, ARGV0); in SendMSG()
369 ARGV0, in SendMSG()
394 verbose(AG_CONNECTED, ARGV0, agt->rip[agt->rip_id], in SendMSG()
396 verbose(SERVER_UP, ARGV0); in SendMSG()
407 debug1("%s: DEBUG: Sending info to server (ctime2)...", ARGV0); in SendMSG()
421 debug2("%s: DEBUG: Sending message to server: '%s'", ARGV0, message); in SendMSG()
428 merror(SEC_ERROR, ARGV0); in SendMSG()
430 merror("%s: Error releasing mutex.", ARGV0); in SendMSG()
438 merror(SEND_ERROR, ARGV0, "server"); in SendMSG()
443 merror("%s: Error releasing mutex.", ARGV0); in SendMSG()
471 debug1("%s: DEBUG: Sending keep alive message.", ARGV0); in send_win32_info()
480 merror("%s: Error generating system information.", ARGV0); in send_win32_info()
501 merror(MEM_ERROR, ARGV0, errno, strerror(errno)); in send_win32_info()
520 debug1("%s: DEBUG: Sending keep alive: %s", ARGV0, tmp_msg); in send_win32_info()
525 merror(SEC_ERROR, ARGV0); in send_win32_info()
531 merror(SEND_ERROR, ARGV0, "server"); in send_win32_info()