Hello,
I have a batch script which checks the job status. If the job fails he script will echo ERROR: JOB FAILED and exit /B 2
I am using nrpe to run this.
The check status = OK
Output : ERROR: JOB FAILED.
How should I turn it to critical?
CheckExternalScripts exit code
Re: CheckExternalScripts exit code
Fixed. It should be exit 2.
Re: CheckExternalScripts exit code
Ah, looks like you were able to get this solved before we had a chance to respond. For the record -
This link may be handy as well - https://nagios-plugins.org/doc/guidelines.html
Code: Select all
Exit = 0 = OK
Exit = 1 = WARNING
Exit = 2 = CRITICAL
Exit = 3 = UNKNOWN
Former Nagios Employee
Re: CheckExternalScripts exit code
Thank you! Please close this case.