Home Directory Plugins Operating Systems Linux box293_check_message_queue

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com


Remember Me


Current Version
Last Release Date
Compatible With
  • Nagios 3.x
  • Nagios 4.x
  • Nagios XI
box293_check_message_queueThe plugin
box293_check_message_queue.zipThe plugin in a zip file

Help Support Ethan Galstad's New Project:

Help Support Ethan

A Message From The Founder...

As the founder of Nagios, I'm asking for your help in a cause that's dear to my heart.

I'm launching a new project to help better the world by providing the information, ideas, and inspiration that I believe can improve the lives of people everywhere.

I know you're busy managing networks, but I would appreciate it if you would consider liking my Facebook page and showing your support for the content and messages I produce by sharing them with your friends and family.

You can learn more about my project by visiting ethangalstad.me/nagios. Thank you for your time. I wish you all the best in your endeavors, whatever they may be.

- Ethan

This Plugin is for checking the kernel message queues.

Will return a critical result if more than 1 queue of the same owner exists.
WARNING and/or CRITICAL thresholds can be defined on the number of message found in the queue. These need to be the second and/or third arguments of the plugin in the format w_nm:integer for warning and c_nm:integer for critical. Critical does not require warning and vice versa however critical value must be larger than warning value.

Example: w_nm:1000 c_nm:5000

The plugin is just a bash script.

box293_check_message_queue [owner_name] [w_nm:integer] [c_nm:integer]

box293_check_message_queue nagios w_nm:1000 c_nm:5000

CRITICAL: 3 message queues for the user nagios detected (CRITICAL > 1), Number Of Messages (Total) = 0, Used Bytes (Total) = 0B|Queues=3;;2 Queue_Messages_Total=0 Queue_Used_Bytes_Total=0B;;;0;131072000

If you don't know what a kernel message queue is or if you use them, this command will show you:

ipcs -q

------ Message Queues --------
key msqid owner perms used-bytes messages
0xbd000002 1736704 nagios 600 0 0

Also, if you want to rely on being alerted when there is more than 1 queue for the owner then you will need to run this plugin from another Nagios instance (like via NPRE or check_by_ssh).
Version Notes:
* This is the first official release of the plugin
Reviews (2)
byrtsupport, September 18, 2018
using this plugin we are able to monitor the message queue and number of message queues only if we are running this plugin from Nagios server where the queue is exist but as we have integrated gearmand server where we have workers server to execute the plugins so is there any way we can integrate -H (hostname) in command to fetch the result from server ipcs queue is running?
bybanditbbs, August 26, 2015
Working as expected and monitoring my ndo2db issue very reliably now!