Page 1 of 1

[Solved]Webinject : No output returned from plugin

Posted: Tue Jan 17, 2012 4:18 am
by halsk
Hi, i'm trying to configure webinject plugin but i get this error on my nagios :"UNKNOWN : No output returned from plugin".

When i run manually the plugin, it looks OK :

Code: Select all

# su - nagios -c "/usr/lib/nagios/plugins/webinject.pl -c gsm.xml"
# WebInject OK - All tests passed successfully in 1.28 seconds |time=1.28;6;;0


I modified the reporttype to get more informations but it looks ok too :

Code: Select all

# su - nagios -c "/usr/lib/nagios/plugins/webinject.pl -c gsm.xml"

Starting WebInject Engine...

-------------------------------------------------------
Test:  gsm_test.xml - 1
GSM / Initialisation
Passed HTTP Response Code Verification (not in error range)
TEST CASE PASSED
Response Time = 0.208 sec
-------------------------------------------------------
Test:  gsm_test.xml - 2
GSM 2 / Authentification
Passed HTTP Response Code Verification (not in error range)
TEST CASE PASSED
Response Time = 0.026 sec
-------------------------------------------------------
Test:  gsm_test.xml - 3
GSM 3 / Test de retour de valeur
Verify : "My Account"
Passed Positive Verification
Passed HTTP Response Code Verification (not in error range)
TEST CASE PASSED
Response Time = 0.742 sec
-------------------------------------------------------
Test:  gsm_test.xml - 4
GSM 4 / Logout
Passed HTTP Response Code Verification (not in error range)
TEST CASE PASSED
Response Time = 0.027 sec
-------------------------------------------------------

Start Time: Tue Jan 17 09:53:55 2012
Total Run Time: 1.205 seconds

Test Cases Run: 4
Test Cases Passed: 4
Test Cases Failed: 0
Verifications Passed: 5
Verifications Failed: 0 
Thanks for your help and sorry for my poor english !

Re: Webinject : No output returned from plugin

Posted: Wed Jan 18, 2012 10:15 am
by halsk
Up!

Re: Webinject : No output returned from plugin

Posted: Thu Jan 19, 2012 3:38 am
by halsk
Solved !
I has an error in my command.cfg, i forgot the perl path before my command :

define command{
command_name webinject
command_line /usr/bin/perl5.10.1 /usr/lib/nagios/plugins/webinject.p$
}

Thanks.