Custom check plug-in


I have created a check plug-in using bash shell…

I don’t know how to process the return_code thus nagios can recognize warning and critical status.


Ok. Eventually i found the answer to this problem.
Just write the exit 0 , 1 or 2 at the end of IF


Or, if you source $NAGIOS-HOME/libexec/ you can use the following variables as your exit codes:

Reading through other people’s plugins can be really educational :slight_smile:

Oh! Be sure to upload your check script to Other people might appreciate your script as well! :slight_smile: