Hi @cdienger
I didn't find any extra spaces in the pattern file. Could you please help me with the example.
If you are referring the spaces that are between the error strings then that is not possible because we are using the same error pattern file and path on every servers were log file monitoring is required and we have never observed the highlighted error.
Thanks,
Amit
Observing "returned an invalid return code: 255" for windows
-
Amit_Alone
- Posts: 89
- Joined: Fri May 08, 2020 11:47 am
Re: Observing "returned an invalid return code: 255" for win
Sorry, for not being clear - the space is in the directory name("Program Files"). Try saving the pattern file to a different location, updating the nsclient.ini file config so that it points to the new location, and testing again.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
Amit_Alone
- Posts: 89
- Joined: Fri May 08, 2020 11:47 am
Re: Observing "returned an invalid return code: 255" for win
Hi,
As per suggestion I have copied the Pattern file under different location but still I'm observing the same error.
As per suggestion I have copied the Pattern file under different location but still I'm observing the same error.
Code: Select all
CheckLogFile_Hibernate=scripts\check_log3.exe -l "C:\***\Logs\AGTSG\JBoss\hibernate.log" -P "C:\Users\PatternFiles\PatternTraxTSG.txt" --show-filenameCode: Select all
[e5613751@avgdlnxvp126 ~]$ /usr/local/nagios/libexec/check_nrpe -H 10.144.136.169 -t 30 -c CheckLogFile_Hibernate
The command (checklogfile_hibernate) returned an invalid return code: 255
Re: Observing "returned an invalid return code: 255" for win
First try replacing the check_log3.exe with the latest - https://github.com/pmcaulay/nagios-plug ... k_log3.exe.
Next I would try a newer version of nsclient++.
Next I would try a newer version of nsclient++.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
Amit_Alone
- Posts: 89
- Joined: Fri May 08, 2020 11:47 am
Re: Observing "returned an invalid return code: 255" for win
Thanks @cdienger finally problem get's resolved. Now I can see alerts are in OK state.
Below are the two changes I have made in-case any one going through the same issue.
1. I have changed the Pattern file location from the regular path i.e. removed from the 'Program file' directory to the C:/Users/ directory which doesn't contain any space.
2. I have copied the new version3.16.2 check_log3.exe which you have suggested.
Thanks,
Amit
Below are the two changes I have made in-case any one going through the same issue.
1. I have changed the Pattern file location from the regular path i.e. removed from the 'Program file' directory to the C:/Users/ directory which doesn't contain any space.
2. I have copied the new version3.16.2 check_log3.exe which you have suggested.
Thanks,
Amit
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Observing "returned an invalid return code: 255" for win
Great!Amit_Alone wrote:Thanks @cdienger finally problem get's resolved. Now I can see alerts are in OK state.
Below are the two changes I have made in-case any one going through the same issue.
1. I have changed the Pattern file location from the regular path i.e. removed from the 'Program file' directory to the C:/Users/ directory which doesn't contain any space.
2. I have copied the new version3.16.2 check_log3.exe which you have suggested.
Thanks,
Amit
Locking thread