Page 1 of 1

CheckExternalScripts exit code

Posted: Wed Sep 07, 2016 11:38 am
by anish
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?

Re: CheckExternalScripts exit code

Posted: Wed Sep 07, 2016 12:14 pm
by anish
Fixed. It should be exit 2.

Re: CheckExternalScripts exit code

Posted: Wed Sep 07, 2016 12:30 pm
by rkennedy
Ah, looks like you were able to get this solved before we had a chance to respond. For the record -

Code: Select all

Exit = 0 = OK
Exit = 1 = WARNING
Exit = 2 = CRITICAL
Exit = 3 = UNKNOWN
This link may be handy as well - https://nagios-plugins.org/doc/guidelines.html

Re: CheckExternalScripts exit code

Posted: Tue Sep 20, 2016 4:35 am
by anish
Thank you! Please close this case.