Install nagios:

  - Add dependency configuration.
  - Deploy the nginx setting file for nagios.
  - Link the installed nginx configuration file to the actual loading directory.
  - Install prerequisite packages for Nagios.
  - Add user for nagios.
  - Download the nagios core and nagios plugins.
  - Install nagios.
  - Install php5-fpm and configure it.