Page 2 of 2
Re: Observing "returned an invalid return code: 255" for win
Posted: Fri Dec 11, 2020 11:33 pm
by Amit_Alone
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
Re: Observing "returned an invalid return code: 255" for win
Posted: Mon Dec 14, 2020 10:22 am
by cdienger
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.
Re: Observing "returned an invalid return code: 255" for win
Posted: Mon Dec 14, 2020 11:44 am
by Amit_Alone
Hi,
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-filename
Code: 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
Posted: Tue Dec 15, 2020 2:18 pm
by cdienger
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++.
Re: Observing "returned an invalid return code: 255" for win
Posted: Thu Dec 17, 2020 5:55 am
by Amit_Alone
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
Re: Observing "returned an invalid return code: 255" for win
Posted: Thu Dec 17, 2020 8:07 am
by scottwilkerson
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
Great!
Locking thread