Hi.
I think you used the code from
http://www.linuxquestions.org/questi...=1#post2717100 too literally -- at least the messages are a bit odd -- you check for keyword
running, but provide messages for
shell.
As I noted in the other thread, please use CODE blocks to display scripts and fragments -- select the text, then click the
# symbol just above the editing window.
I cannot help you with the
nagios aspect, but someone will likely stop by to advise you ... cheers, makyo