Originally posted by dwarf007
This happen when i am trying to restart a service name call "nagios"
Anyone knows, please help
probably the file /etc/rc.d/init/nagios has no execute permissions.
bash /etc/rc.d/init/nagios restart
. /etc/rc.d/init/nagios restart
or give execute permission to the file:
chmod +x /etc/rc.d/init/nagios
and try your command again.
I would recomment the first 2 options.
ls -l /etc/rc.d/init/nagios
to see the file permissions.