Webinject Error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
sutenag
Posts: 59
Joined: Thu Dec 10, 2015 6:39 am
Location: Stockholm, Sweden

Webinject Error

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

Re: Webinject Error

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

Re: Webinject Error

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

Re: Webinject Error

Post by sutenag »

slsv65acc_webinject.PNG
output_libexec.txt
I made an screenshot of webinject services that dont work and the output you requested.
You do not have the required permissions to view the files attached to this post.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Webinject Error

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

Re: Webinject Error

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

Re: Webinject Error

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

Re: Webinject Error

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

Re: Webinject Error

Post by rkennedy »

What happens if you run the check_webinject.sh script over the CLI?
Former Nagios Employee
sutenag
Posts: 59
Joined: Thu Dec 10, 2015 6:39 am
Location: Stockholm, Sweden

Re: Webinject Error

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