|Applies To||RSA Product Set: Netwitness Endpoint (formerly ECAT)|
RSA Product/Service Type: Netwitness Endpoint (formerly ECAT)
RSA Version/Condition: 4.1.2
|Issue||When commissioning a machine in the Netwitness Endpoint (formerly ECAT) UI, a unique numerical key is generated which is used to create both the exchange queue in rabbitmq and the queue's used by said exchange as part of their naming convention. When this doesn't match the expected value in the consoleserver, or when one or more queue's or the exchange are missing, errors are seen in both the ConsoleServerOutput as well as in the rabbitmq log.|
|Cause||The current causes of why this can happen are only speculative at this time. Possible causes though can include:|
- Manually deleting or modifying the existing exchange, or any of its bound queue's.
- Recommissioning a Roaming Agent Relay server. This can lead to the consoleserver generating a new numerical value, and no longer communicating with the Roaming Agent Relay due to having an exchange mismatch.
- Incorrect exchange and queue's being created following commissioning. It is believed this can possibly happen following initial creation of the exchange and its queue's where the system will fail to overwrite incorrect queue and exchange values causing a mismatch
- Missing any of the mandatory queue's or exchanges during commissioning will also cause these kinds of errors.
Confirming the Roaming Agent Relay Error
NOTE: The below mainly applies to single server environments. With multi-server, there may be differences not covered here.
It is important to first identify this error message by checking both the console server error messages, and the messages seen in the rabbitmq logfile. The rabbitmq log for the Roaming Agent Relay is typically found in:
This is the typical location but can be changed. The format of the log is usually rabbit@<name_of_server>, i.e. rabbit@W10x64. When checking the log, the following errors will be seen in this order. NOTE - Use a better application to open this than Notepad, like Notepad++ so it gets parsed in a more readable way:
06 10:49:25:1970 RabbitMQ connection established.
06 10:50:05:6502 ERROR: RabbitMQ.Client.Exceptions.OperationInterruptedException: The AMQP operation was interrupted: AMQP close-reason, ini
tiated by Peer, code=404, text="NOT_FOUND - no exchange 'cs_F492ABC8-B9E5-4687-A898-05CB16BBA3C3.exchange' in vhost 'ecat'", classId=60, met
UDP Beacon received from [::ffff:18.104.22.168]:2220!
06 10:50:05:6502 WARNING: RabbitMQ connection is down.
UDP Beacon received from [::ffff:22.214.171.124]:54395!
06 10:50:10:9313 ERROR: System.IO.EndOfStreamException: SharedQueue closed
Other errors may be listed such as all of the rabbitmq Queue's related to the exchange. By listing them all out, it becomes clear which are needed to be added or modified. Fixing this has two methods:
- Delete the cs_XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX.exchange and its associated queue's and recommission the server in the ConsoleServer UI to regenerate a new exchange and the queue bindings associated with it in the Roaming Agent Relay(currently this is untested to work but is technically harmless since it isn't functional under the listed queue's if the above error is being seen).
- Delete the old exchange and its queue's and then generate a new exchange and set of associated queue's with the appropriate settings and Queue bindings to direct rabbitmq traffic to the correct queue.(Tested) See the workaround steps below.
- Confirm the actual exchange being used by the consoleserver by grabbing the rabbit@<server_name> logfile from the RAR in C:\ECAT\RELAY\logs and confirm that the exchange is incorrect by comparing the number, i.e. cs_F492ABC8-B9E5-4687-A898-05CB16BBA3C3.exchange is in the error log as NOT FOUND but the actual cs queue in the rabbitmq web page (http://localhost:15672/#/exchanges) is a different number, i.e. cs_EE159188-903B-4957-ADF8-58B5E943E112.exchange
- Once confirmed, add the missing exchange as well as its missing associated queue's. The queue's are listed below for reference along with the associated exchange:
- cs_EE159188-903B-4957-ADF8-58B5E943E112.exchange (this is the exchange, and is not a queue)
- Create the exchange:
- Open the page in the listed link here: http://localhost:15672/#/exchanges. You may need the login user and password, which are default ecat for both user and pass
- Click Add new exchange
- Under Virtual host select the vhost user, typically this is ecat
- For name, you must give it the missing exchange name from the rabbit log output, i.e. cs_F492ABC8-B9E5-4687-A898-05CB16BBA3C3.exchange in this example
- Click the Add Exchange button
- Create the missing Queue's:
- Go to the Queue page: http://localhost:15672/#/queues
- Click Add a new queue
- For Virtual host, the default user is ecat, otherwise set it to the designated vhost user
- Under Name, insert the name of the designated queue starting with the first, which in our example from step 3 would look similar to our exchange created earlier: cs_F492ABC8-B9E5-4687-A898-05CB16BBA3C3.get_command_queue
- Leave the Durability setting as Durable, and click Add Queue
- Repeat this process for the first 5 queue's
- When you get to the 6th queue (udp_beacon_queue), there is an additional step; this queue must have the following argument added to the Arguments field. A screenshot is provided of the udp_beacon_queue below; this is the only queue that has arguments:
- In the first field enter x-message-ttl
- In the second field(after the equals sign) enter the value 10000
- Change the type from String to Number
- The exchanges and queue's exist, now the queue's must be bound to the respective exchange created in step 3 using rabbitmq's bindings:
- Open the Exchange page: http://localhost:15672/#/exchanges
- Select the cs_exchange created in step 3 to bring up its options
- Under Bindings there is a subsection called 'Add binding from this exchange'
- Insert the name of the first queue(the full name) into the field next to the dropdown listed as 'To queue'
- Under Routing key, add the listed queue's routing key. Below is a summary list of each queue and below that is the routing key:
- Once this is complete restart the Primary ConsoleServer and then observe if any errors related to incorrect configuration of the Relay server are gone. Additionally, the error messages logged to the Rabbitmq logfile should no longer be present. This will confirm that rabbit is running correctly. Testing should show that after a few minutes the agents are connecting in through the Roaming Agent Relay server's although you may have to connect them to the corporate network first to get an updated Roaming Agent Relay key if they have not connected for a long time. This can be checked under Agent Log for the agent if a Get Key command has been queued but not processed.