check_webinject
Description
check_webinject is a Nagios check plugin based on the Webinject Perl Module available on CPAN which is now part of the Webinject project.
It was completely reworked at ConSol including some bugfixes and enhancements for Nagios 3.
How does it work?
The plugin is written in Perl and uses LWP together with Crypt::SSLeay or IO::Socket::SSL. check_webinject sends requests to any configured webservice. You may then specify verification settings in your test cases.
Test Case Example
A sample testcase file structure:
<testcases>
<case
id = "1"
description1 = "Sample Test Case"
method = "get"
url = "{BASEURL}/test.jsp"
verifypositive = "All tests succeded"
warning = "5"
critical = "15"
label = "testpage"
/>
</testcases>
Usage Example
%>./check_webinject -s baseurl=http://yourwebserver.com:8080 testcase.xml
WebInject OK - All tests passed successfully in 0.027 seconds|time=0.027;0;0;0;0 testpage=0.024;5;15;0;0
Add check_webinject like a normal Nagios plugin.
Installation
Just unpack the tarball and make sure the required Perl modules exist:
- LWP
- XML::Simple
- HTTP::Request::Common
- HTTP::Cookies
- Crypt::SSLeay
- XML::Parser
- Error
Download
Go to Github, clone and build.
You can also download the prebuild version of the check_webinject nagios plugin.
Copyright
Sven Nierlein
Check_webinject is released under the GNU General Public License. GNU GPL
Author
Sven Nierlein