Installing and Configuring Cacti for Network Traffic Graphing Conway, C
Total Page:16
File Type:pdf, Size:1020Kb
NRC Publications Archive Archives des publications du CNRC Installing and configuring Cacti for network traffic graphing Conway, C. For the publisher’s version, please access the DOI link below./ Pour consulter la version de l’éditeur, utilisez le lien DOI ci-dessous. Publisher’s version / Version de l'éditeur: https://doi.org/10.4224/8895659 Student Report (National Research Council of Canada. Institute for Ocean Technology); no. SR-2006-08, 2006 NRC Publications Archive Record / Notice des Archives des publications du CNRC : https://nrc-publications.canada.ca/eng/view/object/?id=83a07761-a283-4983-869d-902dbdf2812b https://publications-cnrc.canada.ca/fra/voir/objet/?id=83a07761-a283-4983-869d-902dbdf2812b Access and use of this website and the material on it are subject to the Terms and Conditions set forth at https://nrc-publications.canada.ca/eng/copyright READ THESE TERMS AND CONDITIONS CAREFULLY BEFORE USING THIS WEBSITE. L’accès à ce site Web et l’utilisation de son contenu sont assujettis aux conditions présentées dans le site https://publications-cnrc.canada.ca/fra/droits LISEZ CES CONDITIONS ATTENTIVEMENT AVANT D’UTILISER CE SITE WEB. Questions? Contact the NRC Publications Archive team at [email protected]. If you wish to email the authors directly, please see the first page of the publication for their contact information. Vous avez des questions? Nous pouvons vous aider. Pour communiquer directement avec un auteur, consultez la première page de la revue dans laquelle son article a été publié afin de trouver ses coordonnées. Si vous n’arrivez pas à les repérer, communiquez avec nous à [email protected]. DOCUMENTATION PAGE REPORT NUMBER NRC REPORT NUMBER DATE SR-2006-08 April 2006 REPORT SECURITY CLASSIFICATION DISTRIBUTION Unclassified Unlimited TITLE INSTALLING AND CONFIGURING CACTI FOR NETWORK TRAFFIC GRAPHING AUTHOR(S) Conway, C. CORPORATE AUTHOR(S)/PERFORMING AGENCY(S) Institute for Ocean Technology Memorial University of Newfoundland PUBLICATION SPONSORING AGENCY(S) IMD PROJECT NUMBER NRC FILE NUMBER KEY WORDS PAGES FIGS. TABLES 22 + 0 0 Networking, Cacti, Network Traffic Graphing app. SUMMARY This report presents an installation and configuration guide to setting up a Cacti network traffic graphing solution with particular reference to how to set up Cacti for use at the Institute for Ocean Technology. This is the final work report for Memorial University Electrical-Computer Work Term Two student Chris Conway. This represents the outcome of a term project that can be used as a guide for further system development and deployment. ADDRESS National Research Council Institute for Ocean Technology Arctic Avenue, P. O. Box 12093 St. John's, NL A1B 3T5 Tel.: (709) 772-5185, Fax: (709) 772-2462 National Research Council Conseil national de recherches Canada Canada Institute for Ocean Institut des technologies Technology océaniques INSTALLING AND CONFIGURING CACTI FOR NETWORK TRAFFIC GRAPHING SR-2006-08 Chris D. Conway April 2006 NRC-CNRC Installing and Configuring Cacti For Network Traffic Graphing TABLE OF CONTENTS 1.0 INTRODUCTION ............................................................................................1 1.1 Acknowledgements ....................................................................................2 2.0 INSTALLING AND SETTING UP CACTI .......................................................3 2.1 Install Required Programs..........................................................................3 2.2 Install Cacti.................................................................................................3 2.2.1 Installing via apt-get.............................................................................3 2.2.2 Installing via tarball ..............................................................................4 2.3 Setting Up The mySQL Database ..............................................................4 2.4 Starting Cacti..............................................................................................6 2.5 Getting add_tree.php..................................................................................6 2.6 PHP Modification........................................................................................7 2.7 Permissions................................................................................................7 3.0 BACKING UP, UPDATING AND PATCHING CACTI.....................................7 3.1 Backing Up.................................................................................................7 3.1.1 Introduction ..........................................................................................7 3.1.2 SQL dump............................................................................................8 3.2 Updating.....................................................................................................8 3.2.1 Back up................................................................................................8 3.2.2 Finding and extracting..........................................................................8 3.2.3 Fail safe backup...................................................................................9 3.2.4 Copying the new version......................................................................9 3.2.5 Editing the include file..........................................................................9 3.2.6 Copying round robin archives ..............................................................9 3.2.7 Permissions .........................................................................................9 3.2.8 Copying plug-ins ................................................................................10 3.2.9 Additional note ...................................................................................10 3.3 Patching ...................................................................................................10 4.0 USING CACTI..............................................................................................11 4.1 Reminder of Official Manual .....................................................................11 4.2 Overview Of Using Cacti ..........................................................................12 4.2.1 Creating devices ................................................................................12 4.2.2 Creating graphs .................................................................................13 4.2.3 Creating trees ....................................................................................13 4.2.4 Data sources......................................................................................14 4.2.5 Creating templates.............................................................................14 4.2.6 User management .............................................................................14 4.3 Data Input Methods ..................................................................................15 4.3.1 Introduction ........................................................................................15 4.3.2 Create new method ...........................................................................15 4.3.3 Create input field................................................................................16 4.3.4 Data templates...................................................................................16 4.3.5 Create data source ............................................................................16 4.3.6 Create graphs ....................................................................................16 Institute for Ocean Technology Chris Conway NRC-CNRC Installing and Configuring Cacti For Network Traffic Graphing 4.3.7 Notes .................................................................................................17 4.4 Templates.................................................................................................17 4.5 The UPS Scripts.......................................................................................17 4.6 Disabling Cacti .........................................................................................18 4.7 Speeding Up Cacti ...................................................................................18 5.0 COMMON PROBLEMS ...............................................................................18 5.1 Error Checklist..........................................................................................18 5.2 mySQL Connect Error ..............................................................................19 5.3 No Graph Production................................................................................20 5.4 Possible Permission Problems.................................................................20 5.5 Not a Number (nan) Errors.......................................................................20 5.6 IP Blocking ...............................................................................................21 6.0 ADD_TREE.PHP .........................................................................................21 6.1 Introduction...............................................................................................21 6.2 Using add_tree.php ..................................................................................21 6.2.1 Creating a new tree ...........................................................................22 6.2.2 Populating