Webinject Error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Webinject Error

Post 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.
Former Nagios Employee.
me.
ohlssrog
Posts: 40
Joined: Tue Nov 24, 2015 6:44 am

Re: Webinject Error

Post by ohlssrog »

Ok i see.

result of the command is.

/usr/share/perl5/LWP.pm
sutenag
Posts: 59
Joined: Thu Dec 10, 2015 6:39 am
Location: Stockholm, Sweden

Re: Webinject Error

Post 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"
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Webinject Error

Post by rkennedy »

Sounds good. Let's continue with the second issue.

Can you run the command over the CLI and post the result?
Former Nagios Employee
sutenag
Posts: 59
Joined: Thu Dec 10, 2015 6:39 am
Location: Stockholm, Sweden

Re: Webinject Error

Post 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?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Webinject Error

Post 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*
Former Nagios Employee
sutenag
Posts: 59
Joined: Thu Dec 10, 2015 6:39 am
Location: Stockholm, Sweden

Re: Webinject Error

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Webinject Error

Post 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.
Former Nagios Employee
sutenag
Posts: 59
Joined: Thu Dec 10, 2015 6:39 am
Location: Stockholm, Sweden

Re: Webinject Error

Post 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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Webinject Error

Post 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?
Former Nagios Employee
Locked