Page 3 of 4

Re: Webinject Error

Posted: Wed Jan 13, 2016 6:18 pm
by hsmith
He was asking if you have the perl dependencies required for the plugin.

For example:

Code: Select all

perldoc -l LWP
returns:

Code: Select all

/usr/share/perl5/LWP.pm
This tells us that it is installed.

Try running this against all of the dependencies.

Re: Webinject Error

Posted: Thu Jan 14, 2016 3:06 am
by ohlssrog
Ok i see.

result of the command is.

/usr/share/perl5/LWP.pm

Re: Webinject Error

Posted: Thu Jan 14, 2016 3:08 am
by sutenag
We have solve the problem with Webinject error, the slsv65acc_testBoi.xml file was looking for another xml file that was missing in the path. After we copy it to the nagios server it starts to work.

Can we keep this case open and focus on another webinject error we have on the production server i wrote about earlier? See below


"And on our production server that running Nagios XI 2012 R1.7 on centos 6.5 we have another webinject problem.

(Return code of 127 is out of bounds - plugin may be missing)

COMMAND: /usr/local/nagios/libexec/check_webinject.sh SLSV65_Test_BOI.xml, both xml files are in this path and have also copy the xml files to ../webinject path

i have gone thru https://nebul4ck.files.wordpress.com/20 ... utions.pdf but this is about nrpe check and not webinject.sh
But in nrpe.cfg i cant find any webinject.sh on this server or the test server i we have this case problem on"

Re: Webinject Error

Posted: Thu Jan 14, 2016 10:46 am
by rkennedy
Sounds good. Let's continue with the second issue.

Can you run the command over the CLI and post the result?

Re: Webinject Error

Posted: Fri Jan 15, 2016 3:48 am
by sutenag
]# /usr/local/nagios/libexec/check_webinject.sh SLSV65_Test_BOI.xml
/usr/local/nagios/libexec/check_webinject.sh: line 18: ./check_webinject: No such file or directory

We look inte the check_webinject.sh on line 18 and it wants a check_webinject file that was missing in the path. After we copy over the file we get other error.

WebInject CRITICAL - case #0: Failed HTTP Response Code Verification (received 501, expecting 200)

And from command line

Test: SLSV65_Test_BOI_testdata.xml - 0
Desc: Check BOI Login Page
GET Request: boi.sl.se:8080/boi
Verify Response Code: "200"
Failed HTTP Response Code Verification (received 501, expecting 200)
TEST CASE FAILED : case #0: Failed HTTP Response Code Verification (received 501, expecting 200) - Unable to open BOI webp age
Response Time = 0.001 sec
-------------------------------------------------------

Test Cases Run: 1
Test Cases Passed: 0
Test Cases Failed: 1
Verifications Passed: 0
Verifications Failed: 1

|time=1.14;0;45;0;0 case0=0.001;0;0;0;0 case1=0;0;0;0;0 case2=0;0;0;0;0 case3=0;0;0;0;0 case4=0;0;0;0;0 case5=0;0;0;0;0 ca se6=0;0;0;0;0 case7=0;0;0;0;0 case8=0;0;0;0;0


Think this is more application/perl code issue. Or do you see any obvious reason to this error?

Re: Webinject Error

Posted: Fri Jan 15, 2016 11:51 am
by rkennedy
This is an odd error and sometimes related to an unsupported protocol. Can you check the perl dependencies on this new machine with perldoc -l?

Code: Select all

    LWP
    HTTP::Cookies
    HTTP::Request::Common
    Time::HiRes
    Getopt::Long;
    Error
    XML::Parser
    XML::Simple
    Crypt::SSLeay*

Re: Webinject Error

Posted: Mon Jan 18, 2016 7:41 am
by sutenag
Hi there,
it seems that nothing is missing from the perl installation, according to output below:

[root@searnantmon01 libexec]# perldoc -l LWP
/usr/share/perl5/LWP.pm
[root@searnantmon01 libexec]# perldoc -l HTTP::Cookies
/usr/share/perl5/HTTP/Cookies.pm
[root@searnantmon01 libexec]# perldoc -l HTTP::Request::Common
/usr/share/perl5/HTTP/Request/Common.pm
[root@searnantmon01 libexec]# perldoc -l Time::HiRes
/usr/lib64/perl5/Time/HiRes.pm
[root@searnantmon01 libexec]# perldoc -l Getopt::Long
/usr/share/perl5/Getopt/Long.pm
[root@searnantmon01 libexec]# perldoc -l Error
/usr/share/perl5/Error.pm
[root@searnantmon01 libexec]# perldoc -l XML::Parser
/usr/lib64/perl5/XML/Parser.pm
[root@searnantmon01 libexec]# perldoc -l XML::Simple
/usr/share/perl5/XML/Simple.pm
[root@searnantmon01 libexec]# perldoc -l Crypt::SSLeay
/usr/lib64/perl5/vendor_perl/Crypt/SSLeay.pm

Re: Webinject Error

Posted: Mon Jan 18, 2016 2:17 pm
by rkennedy
This is odd. Can you post or PM me the testdata file (SLSV65ACC_Test_BOI_testdata.xml) as well? I'd like to try and replicate this on my end.

EDIT: File received.

Re: Webinject Error

Posted: Tue Jan 19, 2016 3:42 am
by sutenag
Want to inform you that this webinject is monitoring a Windows 2008 running a Jboss 3.2.7 J2EE appserver.

have pm the file to you.

Re: Webinject Error

Posted: Tue Jan 19, 2016 5:35 pm
by rkennedy
After looking around your config I see multiple issues relating to SSL and Webinject, does your application support HTTP?

Can you try changing all of your https:// links to http:// and let me know the result?