Configuring Cacti 1. Install Cacti as per slides. This may have been done for you. [ you may need to add "innodb_use_native_aio = 0" to the end of /etc/mysql/my.cnf ] Go to http://10.X.2.1/cacti Login is "admin" and your workshop password 2. Setup Cacti to SNMP query the class router by following Managment->Devices->Add 3. Then fill in the fields with Description: Gateway Router Hostname: 10.192.0.254 Host Template: Cisco Router Downed Device Detection: Ping and SNMP Uptime SNMP Version 2 SNMP Community: public then click "Create" You should see a large number next to the small green circle at the bottom right. This along with no errors at the top of the page indicates that Cacti was successful in querying the router. 4. Next click "Create Graphs for this host" Choose eth0, eth1, eth2, eth0.307, eth0.303, and eth1.XXX1, eth1.XXX2 where XXX=your group number 200-230, e.g. eth1.2001 and eth1.2002 for group 200 corresponding to your AUTH1/DNS and NOC machines. Then click Create, Next, Create as needed until all done. 5. In the left navigation bar look for "Managment" and click "Graph Trees" -> "Default Tree" -> "Add". 6. Click on pull down box labeled Header and select Host. Then select the device you just configured ("Gateway Router") and click Create. 7. Click on the Graphs tab on the top of the web page, expand "Default Tree", and click on the Gateway Router in the left navigation panel. In a a few minutes, graphs for every interface of the router should become visible and in a short tme start showing a plot. You may want to click Thumbnails to get more graphs on a single screen. 8. Now lets setup SNMP on our DNS server so that we can monitor it as well. Log into your DNS server (10.X.1.1) and edit /etc/snmp/snmpd.conf 9. Comment out agentAddress udp:127.0.0.1:161 by adding a # at the begining of the line. Similarly uncomment #agentAddress udp:161,udp6:[::1]:161 and add under "ACCESS CONTROL" section rocommunity public default and comment out rocommunity public default -V systemonly 10. Restart snmpd $ sudo service snmpd restart You may want to check any firewall rules in iptables to make sure port 161 for SNMP is able to accept packets from 10.X.2.1. 11. Goto back to your NOC's Cacti web page (10.X.2.1/cacti) and add another device by clicking o the Console tab and clicking on Devices -> Add. This time enter auth1.grpX for Description, your DNS's IP address 10.X.1.1 for Hostname and "ucd/net SNMP Host" for Host Template. Other entries as before then Create. 12. Click on "Create Graphs for this Host" and check CPU Usage eth0 / Then cick Create 13. Finally add the device to the default tree as before (Graph Trees -> Default Tree -> Add -> Host -> auth1.grpX -> Create) Click on the Graphs Tab to see the new plots for your DNS server.