Home Directory Plugins Others plugin_command_wrapper

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

Login

Remember Me

Directory Tree

plugin_command_wrapper

Rating
0 votes
Favoured:
0
Hits
94261
Files:
FileDescription
plugin_command_wrapper.shThe plugin wrapper v.0.1
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
This script is a Nagios (3.xx) plugin that runs another Nagios plugin, and then, depending on the plugin returned status, run a custom command. The status of the Nagios plugin is returned at the end of the script.
===Examples===



To get MRTG information only if the host is pingable:


$ plugin_command_wrapper.sh --command "my_mrtg_command -H remoteh1"
--plugin "/usr/lib/nagios/plugins/check_ping -H remoteh1 ..."
--states "o"



The same, but getting commands and plugins from files:

$ plugin_command_wrapper.sh -c "mrtg_cmd_file" -p "check_ping_plugfile" -s "o"