Skip to content

On any Solace message broker, find queues, that are unused for a long time

License

Notifications You must be signed in to change notification settings

uherbst/zombiequeuetool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zombiequeuetool - list unused queues on Solace brokers

Disclaimer

zombiequeuetool is not developed and maintained by Solace.
It is currently only tested against PubSub+ software brokers (VMRs), not appliances. But most probably, it will works with appliances without any issues.

Features

zombiequeuetool is written in go, based on the Solace Legacy SEMP protocol.

Every second, get a list of queues, that have no consumer bound to them. Repeat that for the given duration.

All queues, that have never bound a consumer to them in that time, are meant as "unused" and are listed at STDOUT, one queue per line.

Usage

zombiequeuetool  -h
Usage of ./zombiequeuetool:
  -debug
        Enable debug mode
  -delete
        delete unused queues
  -duration int
        how long to wait for queues without binding ? (default 10)
 -filter string
        Regex-filter for msg-vpn/queue-names
  -insecure
        do not verify TLS server certificate
  -password string
        password for the SEMP access
  -url string
        URL to the SEMP service
  -user string
        username for the SEMP access

Output formt

To uniqly identify a queue, you need also the name of the message-vpn - yes, you can have the same queue name in multiple message-vpns.

The output format is: msg-vpn-name@queue-name

Filtering the output

All regexes supported from the go-regexp-package can be used to filter the output - for both parts: msg-vpn-name and queue name.

To be short: have a look at

go doc regexp/syntax

to see a full description on supported regexes.

Regex examples

zombiequeuetool -filter 'q.2'

Outputs:
testvpn@q12
testvpn@q72

but not:
testvpn2@q1


About

On any Solace message broker, find queues, that are unused for a long time

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages