Sunteți pe pagina 1din 2

CONFIGURAO DE SNMPv3 1. Edite: vim /etc/snmp/snmpd.conf 2.

Adicione as linhas: rwuser inicial rwuser gerente createUser inicial MD5 senha123 DES 3. Reinicie o agente: [root@si3-noturno ~]# service snmpd restart Parando o snmpd: Iniciando o snmpd: [root@si3-noturno ~]# [ OK ] [ OK ]

4. Crie o usurio gerente baseado no usurio inicial: [root@si3-noturno ~]# /usr/bin/snmpusm -v3 -u inicial -n "" -l authNoPriv -a MD5 -A senha123 127.0.0.1 create gerente inicial User successfully created. 5. Altere a senha do usurio gerente: [root@si3-noturno ~]# /usr/bin/snmpusm -v3 -u gerente -n "" -l authNoPriv -a MD5 -A senha123 -x DES -X senha123 127.0.0.1 passwd senha123 novaSenha123 SNMPv3 Key(s) successfully changed. [root@si3-noturno ~]# 6. Teste de consulta: [root@si3-noturno ~]# /usr/bin/snmpget -v3 -u gerente -n "" -l authPriv -a MD5 -A novaSenha123 -x DES -X novaSenha123 127.0.0.1 .1.3.6.1.2.1.1.1.0 SNMPv2-MIB::sysDescr.0 = STRING: Linux si3-noturno 2.6.32-220.el6.x86_64 #1 SMP Tue Dec 6 19:48:22 GMT 2011 x86_64 [root@si3-noturno ~]#

Pr-requisitos para instalao do Cacti


less /etc/httpd/conf/httpd.conf cd /var/www/html/ vim index.php [root@si3-noturno html]# cat index.php <?php phpinfo(); ?> yum search php yum install php-mysql php-snmp php-xml php-gd service httpd restart

yum search php yum install mysql mysql-server service mysqld start [root@si3-noturno html]# mysql -u root Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 4 Server version: 5.1.61 Source distribution

Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | mysql | | test | +--------------------+ 3 rows in set (0.00 sec) mysql> create database cacti; Query OK, 1 row affected (0.00 sec) mysql> quit; Bye [root@si3-noturno html]#

S-ar putea să vă placă și