chmod the nagios.cmd file as well.