Install the RabbitMQ Management Plugin
https://www.rabbitmq.com/management.html
In the nxagentd.conf of the node I want to monitor RabbitMQ I put:
ExternalParametersProvider = "C:\Windows\system32\WindowsPowerShell\v1.0\powershell.exe" "C:\NetXMS\var\rabbit.ps1":60
Restart the agent
This gives you a Rabbit parameter. You need to poll the node for the config first to see the parameter. Right click the node and see attached screen shots on how to poll and verify parameter is available
I used the attached powershell script. Make changes to $username, $password, $rabbithost, $vhost (if not using default of / (%2F)), $queue
$workingfile gives back a table of all the statistics for the queue
The issue was that the default vhost in rabbit is a '/' which needs coded as %2F. It runs fine in the powershell ISE and was even writing out a debug text file with the correct value. However, when run from the command line, it fails with a "not found" error because the '/' is not interpreted correctly. The function at the top (which is not my own) cleans up the URI correctly and now I get the value back in NetXMS.
rabbit.ps1
[image: agent_poll_configuration.PNG]
[image: agent_supported_parameters.PNG]