Small improvements to nagios check

Corrected error with deafulting to nagis check if second nagios command not given. Previously would throw index error, now should skip the list entirely.
Corrected exit code bug, exit code 0 was erroneously defined as a string instead of a number.