Skip to content

Commit 52cdc9f

Browse files
committed
Add agent name to disconnected event
closes issue ossec#165 Signed-off-by: Scott R. Shinn <scott@atomicorp.com>
1 parent 7caaa78 commit 52cdc9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/monitord/monitor_agents.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ void monitor_agents()
4646

4747
/* Send disconnected message */
4848
snprintf(str, OS_SIZE_1024 - 1, OS_AG_DISCON, *cr_agents);
49-
if (SendMSG(mond.a_queue, str, ARGV0,
49+
if (SendMSG(mond.a_queue, str, *cr_agents,
5050
LOCALFILE_MQ) < 0) {
5151
merror(QUEUE_SEND, ARGV0);
5252
}

0 commit comments

Comments
 (0)