I have recently installed nagios on Debian 9 and don't know how to define States.
I have a shellscript which determines if a process is running if true it echoes out '1' if false it echoes out '0'
Nagios does process the information and shows the 1 or 0 in the 'Status Information', but whether its 0 or 1 Nagios will state OK.
How can i define Nagios to state critical if 0 and OK if 1?