Update nagioscore.sh

Fix permissions problem