Observing "returned an invalid return code: 255" for windows
Posted: Thu Nov 26, 2020 9:55 am
Hi All,
I'm continuously observing The command (checklogfile_activemq) returned an invalid return code: 255 while trying to monitor the Log File on windows. However, rest of the alerts are working as expected. But whenever I tried to configure any of the log file it is showing 255 error.
I have followed the same process on different server for log file monitoring and on all that servers it is working as expected but on one of the server it is not working
.
I'm using check_log3.exe plugin to monitor the log file. I tried exciting the script on the same server and it is showing expected result.
But while communicating with the nagios xi server it is showing me the same error.
I tried different Nagios XI test but observed the same error. Below is the nsclient.ini file command for log file monitoring.
Do let me know if you want nsclient.ini file I will PM you.
I'm continuously observing The command (checklogfile_activemq) returned an invalid return code: 255 while trying to monitor the Log File on windows. However, rest of the alerts are working as expected. But whenever I tried to configure any of the log file it is showing 255 error.
I have followed the same process on different server for log file monitoring and on all that servers it is working as expected but on one of the server it is not working
I'm using check_log3.exe plugin to monitor the log file. I tried exciting the script on the same server and it is showing expected result.
Code: Select all
PS C:\Program Files\NSClient++\scripts> .\check_log3.exe -l "C:\***\Logs\AGTSG\JBoss\hibernate.log" -P "C:\Program Files\NSClient++\PatternFiles\PatternTraxTSG.txt" --show-filename
OK: Found 0 lines (limit=1/0): No matches found. [C:\***\Logs\AGTSG\JBoss\hibernate.log]|lines=0 Code: Select all
[e5613751@avgdlnxvp126 ~]$ /usr/local/nagios/libexec/check_nrpe -H 10.144.136.169 -t 90 -c CheckLogFile_Hibernate The command (checklogfile_hibernate) returned an invalid return code: 255
[e5613751@avgdlnxvp126 ~]$Code: Select all
CheckLogFile_Hibernate=scripts\check_log3.exe -l "C:\***\Logs\AGTSG\JBoss\hibernate.log" -P "C:\Program Files\NSClient++\PatternFiles\PatternTraxTSG.txt" --show-filename