(check_snmp) [ ] RADIUS Radius support (check_radius) [X] MYSQL MySQL support (check_mysql) [ ] PGSQL PostgreSQL support (check_pgsql) [ ] LDAP OpenLDAP support (check_ldap) [ ] IPV6 IPv6 support [ ] JAIL Compilation within jail(8) (see Makefile) [ ] DMALLOC Enable dmalloc debug memory allocatorMarque as opcoes apropriadas:# pw: unknown group `nagios'# You need a "nagios" group.# Would you like me to create it [YES]? Yes# Done.# pw: no such user `nagios'#You need a "nagios" user.# Would you like me to create it [YES]? YesDepois de realizado a instalacao, vamos habilitar para o Nagios inicializar quando o FreeBSD for reiniciado. Editar o arquivo rc.conf.# ee /etc/rc.confAdicionando ao final do arquivo as linhas abaixo, depois salve o arquivo e saia.# Nagios nagios_enable="YES"Agora vamos configurar o http.conf do Apache: # ee /usr/local/etc/apache22/httpd.confScriptAlias /nagios/cgi-bin /usr/local/www/nagios/cgi-bin <directory "/usr/local/www/nagios/cgi-bin"> AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all</Directory>Alias /nagios /usr/local/www/nagios <directory "/usr/local/www/nagios"> Options None AllowOverride AuthConfig Order allow,deny Allow from all</Directory>Feito isso vamos reiniciar o Apache com o seguinte comando:# /usr/local/etc/rc.d/apache22 restartVamos agora testar o Nagios. Use um browser para conectar a:# http://"ip_do_servidor"/nagiosSe tudo estiver certo sera mostrado a tela inicial do Nagios.12- Configurando o NagiosPrimeiramente vamos a pasta que contem os arquivos de configuracao do Nagios: # cd /usr/local/etc/nagios/Feito isso vamos criar um backup dos arquivos samples de configuracao:# mkdir samples# mv *.cfg-sample samplesAgora vamos criar os arquivos de configuracao: # cp samples/cgi.cfg-sample cgi.cfg# cp samples/nagios.cfg-sample nagios.cfg# cp samples/resource.cfg-sample resource.cfgDepois faca o mesmo para os objetos:# cd objects# mkdir samples# mv *.cfg-sample samplesAgora vamos criar os arquivos de configuracao: # cp samples/commands.cfg-sample commands.cfg# cp samples/contacts.cfg-sample contacts.cfg# cp samples/localhost.cfg-sample localhost.cfg# cp samples/printer.cfg-sample printer.cfg# cp samples/switch.cfg-sample switch.cfg# cp samples/templates.cfg-sample templates.cfg# cp samples/timeperiods.cfg-sample timeperiods.cfgFeito isso vamos iniciar o Nagios com o seguinte comando:# /usr/local/etc/rc.d/nagios start13- Instalando o pacote de figuras do Nagios Para instalar as figuras do Nagios acesse o diretorio:# cd /usr/ports/misc/nagios-base-logosExecute o comando de compilacao e instalacao do nagios-base-logos-1.0:# make install clean14- Instalando o NDO-Utils Para instalar as figuras do NDO-Utils acesse o diretorio:# cd /usr/ports/net-mgmt/ndoutils/Configure as opcoes de compilacao do NDO-Utils com o comando: # make configMarque as opcoes apropriadas para sua necessidade no ndoutils 1.4b8_3: [X] MYSQL MySQL Backend [ ] PGSQL Postgresql BackendExecute o comando de compilacao e instalacao do NDO-Utils:# make install clean15- Instalando o CentreonPara instalar o Centreon primeiramente vamos baixar o pacote de instalacao e descompacta-lo em um diretorio:# cd /usr/ports/distfiles# fetch http://download.centreon.com/centreon/centreon-2.1.10.tar.gz# tar zxf centreon-2.1.10.tar.gz# cd centreon-2.1.10Vamos realizar algums acertos no sistema: # perl -p -i -e 's/\/bin\/bash/\/usr\/local\/bin\/bash/g' install.sh# perl -p -i -e 's/\/bin\/bash/\/usr\/local\/bin\/bash/g' libinstall/*# mkdir /usr/local/etc/cron.d# cd /usr/ports/distfiles/centreon-2.1.10/tmpl/vardistribCrei o arquivo abaixo com o seguinte conteudo# ee freebsd# -*-Shell-script-*-## This file contain reconfigured variables used in install scripts# By default, when you use ./install.sh -f freebsd, you'll accept GPL licence.####################################################################### Begin: Install modules####################################################################### What do you want to install ? ## 0 = no, 1 = yes## CentWeb: Web front Centreon for NagiosPROCESS_CENTREON_WWW=1## CentStorage: Log and charts archiving.PROCESS_CENTSTORAGE=1## CentCore: Distributed Monitoring engine.PROCESS_CENTCORE=1## CentPlugins: Centreon Plugins for nagiosPROCESS_CENTREON_PLUGINS=1## CentTraps: Centreon Snmp traps process for nagiosPROCESS_CENTREON_SNMP_TRAPS=1####################################################################### End: Install modules############################################################################################################################################ Begin: Default variables####################################################################### Your default variables## $BASE_DIR is the centreon source directoryLOG_DIR="$BASE_DIR/log"LOG_FILE="$LOG_DIR/install_centreon.log"## Don't