Troubleshoot the Error 404 and Error 99 for RabbitMQ

Troubleshoot the Error 404 and Error 99 for RabbitMQ

When installing the RabbitMQ plugin, you may encounter the following errors:
HTTP Error 404: Not Found: This error usually occurs when Site24x7's RabbitMQ monitoring plugin attempts to access the /api/overview page of RabbitMQ, but the resource cannot be found.
urlopen error [Errno 99] Cannot assign requested address: This error occurs when trying to access the /api/overview page of RabbitMQ and typically indicates a network-related issue. This issue is frequently linked to the IP address or port that you are attempting to utilize or connect to on the server where you have installed the Site24x7 server agent.

Here are some steps to troubleshoot the issues.
  1. Verify RabbitMQ Management Plugin: Ensure that the RabbitMQ Management Plugin is enabled as it provides the /api/overview endpoint. You can enable it with the following command:
    rabbitmq-plugins enable rabbitmq_management

  2. Check URL: Ensure that you're using the correct URL. The default URL for the RabbitMQ management interface is http://localhost:15672/. If you're accessing the API, the URL should be http://localhost:15672/api/overview.

  3. Verify RabbitMQ version: Confirm that your RabbitMQ version supports the management plugin and the specific API endpoint you're trying to access.

  4. Check firewall/security groups: If you're running RabbitMQ on a remote server, ensure that the port 15672 (default for the management interface) is open and accessible from the server where Site24x7 server agent is installed.

  5. Review RabbitMQ logs: Review the RabbitMQ logs for any errors or warnings that indicate potential issues. The default log location is typically /var/log/rabbitmq/, but this can vary depending on your setup.

  6. Verify RabbitMQ configuration: Ensure that there's no custom configuration in your RabbitMQ setup that may cause the management interface to behave unexpectedly. Check the RabbitMQ configuration file for any settings related to the management plugin.

  7. Restart RabbitMQ: In some cases, simply restarting the RabbitMQ service can resolve transient issues. To restart, execute the following code:
    sudo service rabbitmq-server restart

  8. Check the URL: Double-check the URL in your web browser to ensure that it matches the expected path:
    http://localhost:15672/api/overview

  9. Reinstall the management plugin: As a last resort, you can try disabling and then re-enabling the management plugin:
    rabbitmq-plugins disable rabbitmq_management
    rabbitmq-plugins enable rabbitmq_management

Once you've made changes based on the checks above, restart the Site24x7 server monitoring agent or re-register the plugin. Within five minutes, you should be able to view performance metrics in Site24x7.

If the issue persists, reach out to support@site24x7.com with the plugin details.