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
92919
Files:
FileDescription
plugin_command_wrapper.shThe plugin wrapper v.0.1
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
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"