Creating Cacti FortiGate SNMP Graphs



Similar documents
AXIGEN Mail Server Reporting Service

HA OVERVIEW. FortiGate FortiOS v3.0 MR5.

Supported Upgrade Paths for FortiOS Firmware VERSION

Deploying the BIG-IP LTM with the Cacti Open Source Network Monitoring System

TECHNICAL NOTE. FortiGate Support for SIP FortiOS v3.0 MR5.

DEPLOYMENT GUIDE Version 1.0. Deploying the BIG-IP LTM with the Nagios Open Source Network Monitoring System

Integration Guide. LogicNow MAXfocus

TECHNICAL NOTE. FortiGate Traffic Shaping Version

Spam Marshall SpamWall Step-by-Step Installation Guide for Exchange 5.5

QUESTION: 1 Which of the following are valid authentication user group types on a FortiGate unit? (Select all that apply.)

How To Program A Talkswitch Phone On A Cell Phone On An Ip Phone On Your Ip Phone (For A Sim Sim) On A Pc Or Ip Phone For A Sim Phone On Iphone Or Ipro (For An Ipro) On

FortiManager Centralized Device Management

SNMP Adapter Installation and Configuration Guide

Using MRTG to Monitor I/O

Network Monitoring with SNMP

FortiGate RADIUS Single Sign-On (RSSO) with Windows Server 2008 Network Policy Server (NPS) VERSION 5.2.3

Quick Installation Guide For Sensors with Cacti

This guide provides instructions on how to configure SNMP feature on Yealink IP phones and test SNMP feature using a free SNMP test tool.

FortiGate High Availability Overview Technical Note

FortiMail VM (Microsoft Hyper-V) Install Guide

Deploying the BIG-IP LTM system and Microsoft Windows Server 2003 Terminal Services

NovaBACKUP xsp Version 15.0 Upgrade Guide

Using SNMP to Obtain Port Counter Statistics During Live Migration of a Virtual Machine. Ronny L. Bull Project Writeup For: CS644 Clarkson University

Configuring CitectSCADA SNMP projects with MIB2CIT. A reference for CitectSCADA Customers

Management, Logging and Troubleshooting

WildFire Cloud File Analysis

Introducing the BIG-IP and SharePoint Portal Server 2003 configuration

FortiAnalyzer VM (VMware) Install Guide

Vital Security Web Appliances NG-1100/NG-5100/NG How to Use Simple Network Management Protocol (SNMP) Monitoring

FortiGate Multi-Threat Security Systems I

FortiOS Handbook - Hardening your FortiGate VERSION 5.2.3

How To Configure Fortigate For Free Software (For A Free Download) For A Password Protected Network (For Free) For An Ipad Or Ipad (For An Ipa) For Free (For Ipad) For Your Computer Or Ip

May PZ-0502A-WWEN Prepared by: Internet & E-Commerce Solutions

Importing data from Linux LDAP server to HA3969U

FortiAuthenticator v2.0 MR1 Release Notes

High Availability. FortiOS Handbook v3 for FortiOS 4.0 MR3

Remote Management. Vyatta System. REFERENCE GUIDE SSH Telnet Web GUI Access SNMP VYATTA, INC.

SNMP Agent. Functional Description and Specifications Version: 1.1 March 20, Simple Network Management Protocol Option S for IE and PM Modules

Novell ZENworks Asset Management 7.5

Scheduling Automated Outlet Control Using FineSNMPSet with Sentry Switched Power Distribution Units

Newton Linux User Group Graphing SNMP with Cacti and RRDtool

SNMP and MRTG Monitoring. SNMP and MRTG Monitoring. Introduction. Start. 1 de 9 07/06/ :33. Contents

Using Dedicated Servers from the game

FortiGate Troubleshooting Guide

Network Monitoring with SNMP

MRTG used for Basic Server Monitoring

MONITORING PERFORMANCE IN WINDOWS 7

StarWind iscsi SAN Software: Installing StarWind on Windows Server 2008 R2 Server Core

FortiManager - Secure DNS Guide VERSION 5.4.1

ilaw Server Migration Guide

FortiGate Multi-Threat Security Systems I Administration, Content Inspection and SSL VPN Course #201

Deploying the BIG-IP System v10 with Oracle Application Server 10g R2

ActivIdentity 4TRESS AAA Web Tokens and SSL VPN Fortinet Secure Access. Integration Handbook

Resonate Central Dispatch

How to Obtain an OPC License--5. Creating a System Code 5 Entering an Authorization Code 6. Getting Started with SNMP Editor--7

NMS300 Network Management System

User Manual. Onsight Management Suite Version 5.1. Another Innovation by Librestream

Installation Guide. (You can get these files from

Connecting an Android to a FortiGate with SSL VPN

Monitoring disk stats with Cacti

Please report errors or omissions in this or any Fortinet technical document to

CIDR Range Subnet Mask /

Configuring Security for FTP Traffic

CA Nimsoft Monitor. snmptd Guide. v3.0 series

alternative solutions, including: STRONG SECURITY for managing these security concerns. PLATFORM CHOICE LOW TOTAL COST OF OWNERSHIP

NexentaConnect for VMware Virtual SAN

DiskPulse DISK CHANGE MONITOR

Installation and Deployment

School of Information Technology and Engineering (SITE) CEG 4395: Computer Network Management

Network Management & Monitoring Introduction to SNMP

FortiOS Handbook VM Installation for FortiOS 5.0

Integrating CoroSoft Datacenter Automation Suite with F5 Networks BIG-IP

Monitoring Your Network

Deploying the BIG-IP System with Oracle E-Business Suite 11i

Secure Web Appliance. Reverse Proxy

DEPLOYMENT GUIDE. Deploying F5 for High Availability and Scalability of Microsoft Dynamics 4.0

FortiOS Handbook - VM Installation VERSION 5.2.0

External Device Management - Using SNMP - Enabling the Next Wave of Connectivity

AXT JOBS GUI Users Guide

Cisco UCS Director Payment Gateway Integration Guide, Release 4.1

Use FortiWeb to Publish Applications

Monitor TemPageR 4E With PageR Enterprise

Task Manager. Tasks. Starting Task Manager CHAPTER

Orientation Course - Lab Manual

Install MS SQL Server 2012 Express Edition

HP LeftHand SAN Solutions

Setting up Citrix XenServer for 2X VirtualDesktopServer Manual

14.1. bs^ir^qfkd=obcib`qflk= Ñçê=emI=rkfuI=~åÇ=léÉåsjp=eçëíë

Application Note. Cacti monitoring. Document version: v1.0 Last update: 8th November 2013

HP CloudSystem Enterprise

SNMP Monitoring Guide

Parallels Plesk Panel

DLink-655 Router Configuration Guide for VoIP

FortiOS Handbook - Getting Started VERSION 5.2.2

JAMF Software Server Installation Guide for Linux. Version 8.6

Configuring Multiple ACE Management Servers VMware ACE 2.0

DEPLOYMENT GUIDE Version 1.2. Deploying F5 with Oracle E-Business Suite 12

There are numerous ways to access monitors:

Transcription:

Creating Cacti FortiGate SNMP Graphs Cacti 0.8.7.b Release 1.0 High Performance Multi-Threat Security Solutions Corporate Headquarters 1090 Kifer Road, Sunnyvale, Ca 94086 USA http://www.fortinet.com Tel: +1 408 235 7700 Fax: +1 408 235 7737

2006 Fortinet, Inc. All rights reserved. Fortinet, FortiGate, FortiOS, FortiAnalyzer, FortiASIC, FortiLog, FortiCare, FortiManager, FortiWiFi, FortiGuard, FortiClient, and FortiReporter are registered trademarks of the Fortinet Corporation in the United States and/or other countries. The names of actual companies and products mentioned herein may be the trademarks of their respective owners. Licensed under U.S. Patent No. 5,623,600

Acknowledgement Documentation Written By: Minh Ly (Consulting Systems Engineer) Some elements of the FortiGate configuration section were borrowed from an unknown writer on the Fortinet Knowledge Base.

Contents About This Guide... xxi Objectives... xxi Related Publications... xxi Intended Audience... xxi Organization... xxii Part 1: Introduction... Chapter 1: Overview... 1-1 Enabling SNMP on the FortiGate... 1-3 Installing Cacti in Ubuntu... 1-6 Part 2: SNMP Data... Chapter 2: Gathering SNMP Data... 2-1 Installing the MIB File... 2-2 Obtaining OIDs... 2-3 Using a MIB Browser... 2-4 Chapter 3: Generating Graphs... 3-1 Graphing Interface Traffic... 3-2 Creating Data Templates... 3-2 Creating Graph Templates... 3-6 Creating Host Templates... 3-9 Applying Host Templates to Devices... 3-10 Graphing Quick and Easy... 3-15

About This Guide This preface includes the following sections: Objectives Related Publications Intended Audiences Organization Objectives This document describes the tasks and commands used to install Cacti, obtain SNMP data and create graphs on Ubuntu 7.10 for the purpose of monitoring FortiGate firewalls. Related Publications Refer to http://www.cacti.net and http://www.ubuntu.com for additional Cacti and Ubuntu resources. This document will not go into Cacti details. Of course as always, use Google for research as if you have the plague and your life depended on the answers. Intended Audience This publication is intended for engineering, SEs, support and training personnel experienced in Linux type OS administration and Fortinet FortiGate firewalls. About This Guide xxi

Organization This guide is organized as follows: Part 1, Cacti Installation Describes how to install Cacti in the simplest form Part 2, Generating Graphs Describes all the necessary steps to generating SNMP graphs About This Guide xxii

About This Guide xxii

Part 1 Introduction This part provides an overview of installing Cacti and enabling SNMP on for a FortiGate firewall. This part consists of the following chapters: Chapter 1, Overview

Chapter 1 Overview In the context of this document, SNMP graphs are created to show various historical usage statistics for a FortiGate firewall running at least the MR6 firmware build. Older versions may be used, but not all SNMP data shown in this document will be retrievable. It is the intention of this document to simplify the process of installing Cacti and generating SNMP graphs on an Ubuntu 7.10 operating system. Please refer to the applications website for a more manual approach of installation. Some example graphs that can be generated after reading this document are shown below. Overview 1-1

Overview 1-2

Enabling SNMP on the FortiGate You must first configure the FortiGate unit to allow SNMP polling. There are three steps to enabling SNMP polling: Enable the SNMP agent Create a new Community Activate SNMP on the interface. Enable the SNMP agent To configure the FortiGate unit 1. Go to System > Config > SNMP v1/v2c. 2. Select Enable for the SNMP Agent. 3. Enter a Description, Location and Contact information. 4. Select Apply. Figure 1: Enabling the SNMP Agent Overview 1-3

Creating a new Community To create a new Community 1. Go to System > Config > SNMP v1/v2c. 2. Select Create New. 3. Enter a Community Name. Leave the remainder of the settings as the default. To make a secure community, specify IP addresses that will be allowed to pool the FortiGate unit with SNMP. You can also define which interface the IP addresses will be allowed to communicate with the FortiGate unit. 4. To do this, enter the IP addresses, select the Interface and select Add. 5. Select OK. Figure 2: Creating a Community Overview 1-4

Activating SNMP on the Interface If SNMP is allowed from only one Interface, you need to enable SNMP for the interface. To activate SNMP 1. Go to System > Network > Interface. 2. For the interface allowing SNMP traffic, select Edit. 3. Select SNMP for Administrative Access. 4. Select OK. Figure 3: Activating SNMP for the Internal Interface Overview 1-5

Installing Cacti in Ubuntu In general, there s only one command needed to install Cacti unless customization is required. Accept all the default values. Please refer to the Cacti website to verify hardware and additional software requirements. Cacti requires the Apache web server to already be installed. root@monitor:/# sudo aptitude install cacti This is it, a whole chapter dedicated to one line! Overview 1-6

Part 2 SNMP Data This part provides information on MIB files and the commands used to gather data from them. This part consists of the following chapters: Chapter 2, Gathering SNMP Data Chapter 3, Generating Graphs

Chapter 2 Gathering SNMP Data This chapter describes the tasks and commands used to gather SNMP data so that Cacti can successfully generate graphs for a particular object identifier within the MIB. It is expected that the reader has some knowledge of MIB files. A free book that explains SNMP and MIB files can be downloaded at http://www.dpstele.com/whitepapers/snmp-tutorial/index.php. Gathering SNMP Data 2-1

Installing the MIB File FortiGate MIB files are available from the Fortinet Technical Support web site at http://support.fortinet.com found under firmware images. The MIB file used in this documentation is within the MR6 firmware branch. Download the MIB file and place it in the /usr/share/snmp/mibs directory. This is the default directory where all MIB files are stored. Look inside the MIB file and keep the file name the same as the ::= BEGIN line. The line is usually located within the first few lines of the MIB file. Matching the file name and the module name is not a must but it is a good idea to avoid confusion later. Add.txt to the end of the file name to maintain commonality with the rest of the MIBs in the same directory. Some people rename the MIB files to something completely different and run SNMP commands against the file name instead of the ::= BEGIN module name. This will cause errors. For example, my MIB file name is FORTINET-300-MIB-20080414.txt however looking inside the MIB the name loaded is FORTINET-300-MIB. root@monitor:/usr/share/snmp/mibs# more FORTINET-300-MIB-20080414.txt FORTINET-300-MIB DEFINITIONS ::= BEGIN An error will occur if the snmptranslate command is run against the file name FORTINET-300-MIB- 20080414.txt for a particular object. root@monitor:/usr/share/snmp/mibs# snmptranslate -m FORTINET-300-MIB-20080414.txt -IR -On fnsysmodel No log handling enabled - turning on stderr logging Cannot find module (FORTINET-300-MIB-20080414): At line 0 in (none) Unknown object identifier: fnsysmodel The message above indicates that there is no such module loaded. This is because the MIB is really named FORTINET-300-MIB. A successful result as shown below would have produced an OID number. For this reason, it makes sense to keep the file name the same as the module name. root@monitor:/usr/share/snmp/mibs# snmptranslate -m FORTINET-300-MIB -IR -On fnsysmodel.1.3.6.1.4.1.12356.1.1 To see the actual name of the MIB module that is loaded into the system, look inside the.index file located under /usr/share/snmp/mibs. It will show the module name corresponding to the file name. root@monitor:/usr/share/snmp/mibs# more.index FORTINET-300-MIB FORTINET-300-MIB.txt Gathering SNMP Data 2-2

Obtaining OIDs There are two commands commonly used in SNMP: snmptranslate and snmpwalk. Looking inside the MIB there are different objects that can be queried in the FortiGate to produce an understandable value. For example fnsysversion displays the firmware version information. fnsysversion OBJECT-TYPE SYNTAX DisplayString ( SIZE ( 0.. 128 ) ) MAX-ACCESS read-only STATUS current DESCRIPTION "Firmware version of the device" ::= { fnsystem 3 } The snmptranslate command can be run against the MIB file to produce an Object Identifier number that can then be used to query the FortiGate. root@monitor:/usr/share/snmp/mibs# snmptranslate -m FORTINET-300-MIB -IR -On fnsysversion.1.3.6.1.4.1.12356.1.3 The -m attribute specifies the MIB module name to use for the translation to get the OID. Now that the OID is found, it can be used against a FortiGate to produce an understandable value. To do so use the snmpwalk command. root@monitor:/usr/share/snmp/mibs# snmpwalk -v 2c -c public 10.69.69.1.1.3.6.1.4.1.12356.1.3 SNMPv2-SMI::enterprises.12356.1.3.0 = STRING: "FortiWiFi-60B 3.00,build0668,080514" The -v attribute specifics the SNMP version and -c attribute specifies the community name to be used. Querying the FortiGate interface resulted in a model name and firmware version number. The snmptranslate command can be used against other objects to obtain their OIDs. Gathering SNMP Data 2-3

Using a MIB Browser A MIB browser generally contains the same information as using the commands snmptranslate and snmpwalk. However, a MIB browser organizes the data into an easy to understand GUI structure. Opening the FortiGate MIB file and selecting fnsysversion immediately displays the OID. Search for OIDs is made easier through the use of a MIB browser. Gathering SNMP Data 2-4

Chapter 3 Generating Graphs This chapter describes the tasks and commands used to navigate Cacti in order to generate SNMP graphs. Generating Graphs 3-1

Graphing Interface Traffic As a note, by default Cacti natively contains the ability to poll FortiGate interface statistics. No additional work has to be done except to place the SNMP Interface Statistics Data Query into a Host Template. This process will be shown in the following sections. Creating Data Templates Data templates are used to query the FortiGate to retrieve information relating to a particular OID. Be sure to have the OID information for objects ready during data template creation. The following example illustrates how to create two data templates. One to show how many POP3 messages are being processed and another to show how many of the processed messages were flagged as SPAM. This will give an idea of the percentage of junk mail being downloaded. To create Data Templates for each OID, log into cacti click on Data Templates located in the template section and click Add. Fill in the values as shown below and create. Generating Graphs 3-2

Once the create button is pressed, the Custom Data section will appear. Input the OID for the number of POP3 messages processed. Looking at the MIB browser, the OID can be found under the fnapplications/fnappproxypop3/fnappop3statsentry. The OIDs we are looking for are the ones for fnappop3reqprocessed and fnappop3spamdetected. To verify the OID references the correct data, perform a snmpwalk on FortiGate to retrieve the value. snmpwalk -v 2c -c public 10.69.69.1.1.3.6.1.4.1.12356.17.102.3.1.2 SNMPv2-SMI::enterprises.12356.17.102.3.1.2.1 = Counter32: 1229 Notice that the snmpwalk came back with an OID of 12356.17.102.3.1.2.1. The extra trailing 1 would be the OID that should be put into the Data Template Custom Data section. Generating Graphs 3-3

Save and click on Add again to create a POP3 SPAM data template. Follow the preceding procedures to retrieve the OID. Repeat the data template creation process for other types of queries such as CPU and sessions. Generating Graphs 3-4

Creating Graph Templates Graph Templates generate historical data relating to a particular OID. The following example illustrates how to create a graph that charts two Data Templates into one graph. Click on Graph Templates located in the template section then click Add. Fill in the values as shown below and click create. Generating Graphs 3-5

The Graph Template Items and Graph Item Inputs section will appear. Click Add in the Graph Template Items section. Select the previously created Data Template that queries the number of POP3 messages processed and fill in the data as shown below. This section sets the type of graph and labels. For more information refer to the Cacti documentation. Generating Graphs 3-6

Add a second Graph Template item to complete the graph settings of POP3 messages processed. Add a third and fourth Graph Template item to complete the graph settings for the number of SPAM messages. Generating Graphs 3-7

Generating Graphs 3-8

Creating Host Templates Graph templates contain data templates and hosts templates contain graph templates. Once created, hosts templates can be applied to similar types of devices. This makes the process of adding multiple devices easy. Click on Host Templates located in the template section and click Add. The following illustration shows that there are a number of Graph Templates already created. One of the graph templates shown is FortiGate POP3. Associate all of the FortiGate graph templates to this host template. Previously, I spoke about Cacti having a native ability to graph interface statistics without creating a data template. This is done by adding SNMP Interface Statistics to the Associated Data Queries section. Click save to complete the host template. Generating Graphs 3-9

Applying Host Templates to Devices Host templates are applied devices by selecting the proper host template and inputting the SNMP Community string. To add a device, click on Devices in the Management section and click Add. Generating Graphs 3-10

Once the create button is pressed, Cacti will query the FortiGate. A successful query will display the System name and Uptime, a bad query will display SNMP error. Should an error occur, verify that the IP address and SNMP Community is correct. Make sure that SNMP is enabled on the FortiGate and that the IP address of the Cacti server has access to the FortiGate. Generating Graphs 3-11

Notice that each one of the Associated Graph Templates Status is shown as not being graphed. Click on Create Graphs for this Host and select the graphs to be created. Once the graphs are created click on the graphs tab to see the data being charted. Note that you must wait for two polling cycles before the graphs are generated and charted. This will take 10 minutes as polling takes place every 5 minutes. Generating Graphs 3-12

Here are more graph examples. Generating Graphs 3-13

Generating Graphs 3-14

Graphing Quick and Easy Of course there s a quick way to create all those nice graphs since I ve done all the work for you. Look for the Cacti-Fortinet-MR6-Template.xml on the FortiTech server, install Cacti and import the template then apply it to a device. Generating Graphs 3-15