1

https://www.rabbitmq.com/alarms.html

according to docs,

There are two circumstances under which RabbitMQ will stop reading from client network sockets, in order to prevent crashes. They are:

When memory use goes above the configured limit. When disk space drops below the configured limit.

I want to send mail to admin if any of condition is breached.

Thanks in advance for helping.

soumitra
  • 91
  • 2
  • 14
  • This question is tends to offtopic while it is about to recommend third-party tools. Anyway, check this link: http://www.rabbitmq.com/how.html#management – pinepain Nov 14 '15 at 12:56
  • thank you for reply, no i want to write code to mail, maybe a script, the tools that community provide are not alerting tools they are web based monitoring tools. What i am really looking is is there a way to know in my code that the alarm has fired for either memory or disk usage. – soumitra Nov 14 '15 at 13:19

1 Answers1

2

there are a lot of off-the-shelf tools that will do this for you. check out the management & monitoring section of the "How To" page on the RMQ website and find one that works with your existing monitoring tools.

Derick Bailey
  • 72,004
  • 22
  • 206
  • 219
  • Thanks @Derick, those are monitoring tools, i want to some how alert people and not stare at monitors, so i am looking for some kind of command or a way to actually know that some alarm is there so that i can send mails. Is that really possible ? – soumitra Nov 14 '15 at 20:34
  • that's what monitoring tools do. they don't just produce graphs on screens, they give you methods to notify people when things are outside of "normal" (as defined by you in the configuration) – Derick Bailey Nov 15 '15 at 02:17
  • I am already using the management plugins, but they don't provide alerts on memory and disk usage, it shows all stats, is there a direct way to leverage that info and build a alerting framework around it ? – soumitra Nov 15 '15 at 16:23
  • hey @Derick, thanks for pointing out, management tool of rabbit-mq had a rest api on top of which i wrote the wrapper to alert admin. Thanks, and accepting your answer. – soumitra Nov 16 '15 at 21:56