[Solved]Webinject : No output returned from plugin

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
halsk
Posts: 3
Joined: Mon Jan 16, 2012 9:25 am

[Solved]Webinject : No output returned from plugin

Post 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 !
Last edited by halsk on Fri Jan 20, 2012 4:29 am, edited 2 times in total.
halsk
Posts: 3
Joined: Mon Jan 16, 2012 9:25 am

Re: Webinject : No output returned from plugin

Post by halsk »

Up!
halsk
Posts: 3
Joined: Mon Jan 16, 2012 9:25 am

Re: Webinject : No output returned from plugin

Post 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.
Locked