How to monitor messages queue(used-bytes)

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rtsupport
Posts: 188
Joined: Mon Jan 08, 2018 4:30 am

How to monitor messages queue(used-bytes)

Post by rtsupport »

Version = Nagios XI 2014R2.7
OS = Unix

Requirement: To monitor ipcs –q (Messages queue) of the server.

------ Message Queues --------
Key msqid owner perms used-bytes messages
0xbe020061 2195456 nagios 600 0 0


We’ve a particular requirement to check the used-bytes and if it reaches to some count(Say – 500000), it needs to send an alert.

are there any plugins to monitor it? Can you help us with how to setup monitoring for it?
lvaillant
Posts: 57
Joined: Mon Jun 06, 2016 2:47 am
Location: Paris, France

Re: How to monitor messages queue(used-bytes)

Post by lvaillant »

Hello,

You should have a look at this plugin: https://exchange.nagios.org/directory/P ... ue/details

Regards.
Loïc VAILLANT
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: How to monitor messages queue(used-bytes)

Post by cdienger »

Thanks for the assist, @lvaillant!

@rtsupport, let us know if you have any questions about setting this plugin up.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
rtsupport
Posts: 188
Joined: Mon Jan 08, 2018 4:30 am

Re: How to monitor messages queue(used-bytes)

Post by rtsupport »

Sorry for the late response and thanks @lvaillant for the plugin suggestion.

But the thing is we've Prod, Test and DR servers where ipcs -q needs to be monitored on NAGIOS XI. With the above given plugin we are able to monitor ipcs -q for Prod server from NAGIOS XI which belongs to a particular collector server, but when it comes to Test and DR(and other servers as well) which are on different collector servers this plugin doesn't give the required output on NAGIOS XI. As checked from CLI with the message queue plugin on Test and DR Servers it shows the desired output, but when monitoring the ipcs -q of these servers from NAGIOS XI the output is not as required. Is there any way to connect the host from one collector server to host from the another collector server(with -H --options ?) that can be used with plugin suggested?
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: How to monitor messages queue(used-bytes)

Post by ssax »

The plugin doesn't support remote KMQ checking so it will only show the local KMQ where the plugin is run from.

There are multiple ways to do this:

1. Install NRPE or NCPA agent on the systems, put the plugin on all machines, and run the plugin through a NRPE/NCPA check.

OR

2. Put the plugin on all the systems and run the SSH Proxy wizard and have it run the plugins on the systems through SSH.

See here for more information:

https://assets.nagios.com/downloads/nag ... ng_SSH.pdf


Let us know if you have any questions.

Thank you
Locked