Monitor Windows Private Message Queue

Hi,

I have been reading and trying to see how we go about monitoring and alerting on the Windows Private Message Queues if they reach and get above a certain level. From what i have found it looks like you may need to create a local check in order to make this work. The problem is i am, frankly useless at scripting and to make a local check work, you need a script of some sort that gets the relevant data don’t you?

Does anyone have any tips, hints etc on how i can go about getting that done? Or even better has anyone actually done this and got it working so it could be set to alert if the queue got above a certain level and would not mind sharing how they did that?

Any assistance would be greatly appreciated.

Thanks

1 Like

Referenz:

Local checks

and with more info`s we will guide you

other way is to use the spool

The spool directory - Adding file contents to agent outputs

Hi,

I have looked at the local checks section, but where i am stuck is the initial step of creating a script to produce the state output in the required format.

This is an example of the message queues and we want to be able to monitor each queue individually and alert if the message count exceeds a value of 50 for example. I am struggling with how to create a Powershell script for example that would produce a state line with the 4 fields for each queue as detailed in section 2.1 one of the Local Checks section

QueueName                                                MessageCount




private$\ahsl.ice.datafeeders.ares.telepath.outbound                0
private$\ahsl.ice.datafeeders.copath.inbound                        0
private$\ahsl.ice.datafeeders.copath.order.inbound                  0
private$\ahsl.ice.datafeeders.copath.outbound                       0
private$\ahsl.ice.datafeeders.copath.reports                        0
private$\ahsl.ice.datafeeders.cris.inbound                          0
private$\ahsl.ice.datafeeders.cris.outbound                        16
private$\ahsl.ice.datafeeders.cris.reports                          0
private$\ahsl.ice.datafeeders.hl7.inboundpas                        0
private$\ahsl.ice.datafeeders.icerequestingoutput                   0
private$\ahsl.ice.datafeeders.icerequestingoutput.ares              0
private$\ahsl.ice.datafeeders.icerequestingoutput.copath            0
private$\ahsl.ice.datafeeders.icerequestingoutput.cris            141

I will keep looking but if you and anyone has any quick ideas that would be great.

Try using chatgpt and ask it to generate a checkmk localcheck plugin to retrieve that. I`ve used for one similar use case. It will not work in the first attempt but you can refine it easily.

Ah good idea. I shall give that a go. thanks

1 Like