Webinject Error
Webinject Error
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.
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
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?
Also, can you post the service definitions for the services that aren't working?
Former Nagios Employee
Re: Webinject Error
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?
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
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.
Re: Webinject Error
Thanks for that information.
It looks like the file is there -
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 -
Let us know the result!
Change it to -
It looks like the file is there -
Code: Select all
-rwxrwxr-x. 1 apache nagios 307 Dec 4 11:17 check_webinject.sh
From there, what is under your 'Command Line' field?
If it's -
Code: Select all
$USER1$/check_webinject $ARG1$
Change it to -
Code: Select all
$USER1$/check_webinject.sh $ARG1$
Former Nagios Employee
Re: Webinject Error
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".
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
This is the file that you are referencing in $ARG1$ for your webinject check. Have you migrated it over to your new XI machine?I change to this one but now i get a new error "ERROR: Failed to open SLSV65ACC_Test_BOI.xml file".
Former Nagios Employee
Re: Webinject Error
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.
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
What happens if you run the check_webinject.sh script over the CLI?
Former Nagios Employee
Re: Webinject Error
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)