acesse o diretorio:# cd /usr/ports/security/sudoConfigure as opcoes de compilacao do Sudo 1.7 com o comando: # make configMarque as opcoes apropriadas para sua necessidade no Sudo 1.7.4.4_1:[ ] LDAP With LDAP support[ ] INSULTS With all insults[ ] DISABLE_ROOT_SUDO Disable root sudo[ ] DISABLE_AUTH Disable authentication[ ] NOARGS_SHELL Enable no arguments shellExecute o comando de compilacao e instalacao do Sudo:# make batch=yes install clean7- Instalando o Net-SNMPPara instalar o Net-SNMP acesse o diretorio:# cd /usr/ports/net-mgmt/net-snmpConfigure as opcoes de compilacao do Net-SNMP 5 com o comando: # make configMarque as opcoes apropriadas para sua necessidade no net-snmp 5.5_4:[ ] IPV6 Build with IPv6 support [X] MFD_REWRITES Build with 64-bit Interface Counters [X] PERL Install additional perl modules [X] PERL_EMBEDDED Build embedded perl [X] DUMMY Enable dummy values as placeholders [ ] TKMIB Install graphical MIB browser[ ] DMALLOC Enable dmalloc debug memory allocatorExecute o comando de compilacao e instalacao do Net-SNMP:# make install cleanDepois de realizado a instalacao, vamos habilitar para o Net-SNMP 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.# Net-SNMP snmpd_enable="YES" snmpd_conffile="/usr/local/etc/snmp/snmpd.conf"Agora vamos configurar o Net-SNMP: # mkdir /usr/local/etc/snmp# cp /usr/local/share/snmp/snmpd.conf.example /usr/local/etc/snmp/snmpd.conf# perl -p -i -e 's/com2sec local localhost COMMUNITY/com2sec local localhost public/g' /usr/local/etc/snmp/snmpd.confFeito isso vamos iniciar o Net-SNMP com o seguinte comando:# /usr/local/etc/rc.d/snmpd start# rehash8- Instalando o PearPara instalar o Pear acesse o diretorio:# cd /usr/ports/devel/pearExecute o comando de compilacao e instalacao do Pear 1.9.1:# make install clean9- Instalando alguns pacotes do PearPara instalar os pacotes do Pear acesse os diretorios e execute os comandos de instalacao e compilacao::# cd /usr/ports/databases/pear-DB_DataObject# make BATCH=yes install clean# cd /usr/ports/databases/pear-DB_DataObject_FormBuilder# make BATCH=yes install clean# cd /usr/ports/databases/pear-MDB2# make install clean# cd /usr/ports/textproc/pear-Numbers_Roman# make install clean# cd /usr/ports/textproc/pear-Numbers_Words# make install clean# cd /usr/ports/devel/pear-HTML_QuickForm2# make install clean# cd /usr/ports/devel/pear-HTML_QuickForm_advmultiselect# make install clean# /usr/local/bin/pear uninstall HTML_QuickForm_advmultiselect# /usr/local/bin/pear install -f pear/HTML_QuickForm_advmultiselect-1.2.0# cd /usr/ports/net/pear-Net_Traceroute# make install clean# cd /usr/ports/net/pear-Net_Ping# make install clean# cd /usr/ports/devel/pear-Validate# make install clean# cd /usr/ports/net/pear-XML_RPC# make install clean# cd /usr/ports/mail/pear-Mail# make BATCH=yes install clean# cd /usr/ports/mail/pear-Mail_Mime# make install clean# cd /usr/ports/www/pear-HTTP# make install clean# cd /usr/ports/net/pear-SOAP# make BATCH="" install clean# cd /usr/ports/devel/pear-HTML_Table# make install clean# cd /usr/ports/security/pear-Auth_SASL# make BATCH=yes install clean# cd /usr/ports/graphics/pear-Image_Canvas# make install clean# cd /usr/ports/graphics/pear-Image_Graph# make BATCH=yes install clean# cd /usr/ports/graphics/pear-Image_GraphViz# make BATCH=yes install clean# cd /usr/ports/net/pear-Net_SMTP# make BATCH=yes install clean10- Instalando o RRDTOOLPara instalar o RRDTOOL acesse o diretorio:# cd /usr/ports/databases/rrdtoolExecute o comando de compilacao e instalacao do RRDTOOL 1.4.4:# make BATCH=yes install clean11- Instalando o NagiosPara instalar o Nagios acesse o diretorio:# cd /usr/ports/net-mgmt/nagios/Configure as opcoes de compilacao do Nagios 3.2.3 com o comando: # make configMarque as opcoes apropriadas para sua necessidade no Nagios 3.2.2_1:[X] EMBEDDED_PERL Enable embedded Perl [requires Perl 5.8.0+][X] NANOSLEEP Use nanosleep in event timing [X] EVENT_BROKER Enable event broker functionality [ ] UNHANDLED_HACK Display passive checks in unhandled queriesExecute o comando de compilacao e instalacao do Nagios:# make install cleanMarque as opcoes apropriadas para sua necessidade no nagios-plugins 1.4.15_1,1:[ ] QSTAT Game server query support (check_game) [X] FPING Support for non-flooding fast ping (check_fping) [X] NETSNMP SNMP support