Page 1 of 4

Webinject Error

Posted: Mon Dec 21, 2015 9:40 am
by sutenag
Running Nagios XI 5.2.3 on CentOS 6.7. Have import all cfg files from an old Nagios XI server. Import job was done like Nagios pdf

Nagios XI – Importing Config Files From NagiosCore into Nagios XI.pdf

Problem i have now is with webinject, error is (No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_webinject, ...) failed. errno is 2: No such file or directory.
Error is on a Windows server runing Windows 2008 R2 these errors has come after OS have been upgraded from Win 2003.

Another Webinject error from another Windows 2008 R2 server is: ERROR: Failed to open servicename.xml file

All xml files and above file is located in /usr/local/nagios/libexec/

Windows servers are runing NSClient++ version 0.3 downloaded from the local server.

Im new on Nagios and Centos. Please help me to add right log files and cfg you need to troubleshoot this.

Re: Webinject Error

Posted: Mon Dec 21, 2015 11:12 am
by rkennedy
Can you post the output of ls -l /usr/local/nagios/libexec?

Also, can you post the service definitions for the services that aren't working?

Re: Webinject Error

Posted: Tue Dec 22, 2015 3:27 am
by sutenag
Hi.

Thanks the respons, im waiting for ok to post the output you want, do you mean the definitions for the webinject services that dont work?

Re: Webinject Error

Posted: Tue Dec 22, 2015 5:03 am
by sutenag
slsv65acc_webinject.PNG
output_libexec.txt
I made an screenshot of webinject services that dont work and the output you requested.

Re: Webinject Error

Posted: Tue Dec 22, 2015 11:38 am
by rkennedy
Thanks for that information.

It looks like the file is there -

Code: Select all

-rwxrwxr-x. 1 apache nagios    307 Dec  4 11:17 check_webinject.sh
However, I think it's referencing the wrong command. Can you navigate to Configure -> Core Config Manager -> ### Commands -> Search for 'check_xi_service_webinject' -> Click 'check_xi_service_webinject'.

From there, what is under your 'Command Line' field?
If it's -

Code: Select all

$USER1$/check_webinject $ARG1$
Let us know the result!

Change it to -

Code: Select all

$USER1$/check_webinject.sh $ARG1$

Re: Webinject Error

Posted: Wed Dec 23, 2015 3:51 am
by sutenag
There is 2 check_xi_service_webinject.

1st
Name
check_xi_service_webinject

CommandLine
$USER1$/check_webinject $ARG1$

This one was used for the error trigger service.

2nd
Name
check_xi_service_webinject_sh
CommandLine
$USER1$/check_webinject.sh $ARG1$

I change to this one but now i get a new error "ERROR: Failed to open SLSV65ACC_Test_BOI.xml file".

Re: Webinject Error

Posted: Wed Dec 23, 2015 12:03 pm
by rkennedy
I change to this one but now i get a new error "ERROR: Failed to open SLSV65ACC_Test_BOI.xml file".
This is the file that you are referencing in $ARG1$ for your webinject check. Have you migrated it over to your new XI machine?

Re: Webinject Error

Posted: Mon Jan 04, 2016 3:12 am
by sutenag
Hi. Sorry for late reply, it have been weekends here.

Do you mean if the file is in /usr/local/nagios/libexec/ ?
Yes it is is the same file list as in the output file i attached before.

Re: Webinject Error

Posted: Mon Jan 04, 2016 10:20 am
by rkennedy
What happens if you run the check_webinject.sh script over the CLI?

Re: Webinject Error

Posted: Tue Jan 05, 2016 3:17 am
by sutenag
I run the check_webinject.sh from putty cli on the nagios server from /usr/local/nagios/libexec/ path. no different in the services status. (still same error,ERROR: Failed to open SLRKXBOI_Test_BOI.xml file)