message queue

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?