Build precise queries to find exactly what you need
Press ESC to close
Your review has been submitted and is pending approval.
This plugin executes a given command and greps for spedified patterns in the output. It uses perl regex for matching.
Current Version
1.1
Last Release Date
2011-11-04
Owner
Daniel Werdermann
License
MPL
Compatible With
Usage: check_execgrep.pl --help check_execgrep.pl [--contains YES|NO] --warning REGEX --critical REGEX --command Sring [--parameter String]
Options: --help Print detailed this screen --version Print version information --contains YES|NO Defines if the command output must or must not contain the patterns defined in warning and critical (Default: YES) --warning REGEX Regex to search for in command output for warning. --critical REGEX Regex to search for in command output for critical. --command STRING Command to be executed. --parameter STRING Parameter for the command.
Examples: check_execgrep.pl --contains YES --warning "d{2}" --critical 333 --command /bin/bla
This returns a warning if the output of /bin/bla contains two digist (e.g. 23 or 01) and a critical if 333 was found.
check_execgrep.pl --contains NO --warning 22 --critical b --command /bin/cat --parameter /etc/services
Execute `/bin/cat /etc/services` and send warning if NO "22" was found and critical if NO "b" was found in output.
This plugin is NOT developped by the Nagios Plugin group. Please do not e-mail them for support on this plugin, since they won't know what you're talking about.
For contact info, read the plugin itself...
You must be logged in to submit a review.
To:
From:
We’ve completely redesigned the world’s largest repository of Nagios plugins and monitoring tools. Join thousands of users sharing monitoring solutions for servers, applications, and everything in between.
Due to our redesign, all existing accounts require a password reset to access your account again.
Ready to explore 6,100+ projects and contribute to the community?
Reset Password Create Account
Happy Monitoring!