Download the script
# wget -O mk-agent-install.sh http://pastie.org/pastes/9233120/download
Make the script executable and run it. Important: you must be using CentOS 6 (64bit) and you must be root, otherwise this will not work.
# chmod u+x mk-agent-install.sh
# ./mk-agent-install.sh Enter the IP address(es) of your OMD/Nagios server(s) (separated by spaces):
Enter the IP address(es) of your OMD/Nagios server(s) separated by spaces.