Home Directory Addons Monitoring Agents check_nrpe_multiplexor

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 2.x
  • Nagios 3.x
  • Nagios XI
  • Nagios Fusion

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

Simple N way multiplexor for executing one or conditionally two nrpe plugins over a number of hosts.

The result is the best case of all the hosts results. This is on the assumption that if the test works for at least one of the hosts that is an overall OK state.
This plugin is intended for use with clusters of servers where it is OK if at least one of them is in an OK state, in fact if in a hot standby situation there should only ever be one actualy providing a service in some situations. Rather than just checking pairs of hosts this is generalised to run a provided nrpe test over N hosts and report the 'best' result of doing so.

As an aditional twist a second nrpe script can be provided as a 'conditional and'. This script is only run against those servers which are an OK state for the first test. Writing a smarter plugin would be a better solution but this is available for when combining two existing proven commands is easier than getting a new one rolled out to hosts.

The nrpe commands and their arguments is up to you, this is only a multiplexor. The command is executed the same on each host (i.e. exact same args). If you have the need for meta-data subsitutions (e.g. name of host passed), then be my guest - fix it :)

How to sensibly present a compound result is a bit up in the air. You may need to tailor that to your needs. At the moment if there is a secondary command the results of that are reported, throwing away any results from the primary.