Monitoring disk stats with Cacti



Similar documents
Newton Linux User Group Graphing SNMP with Cacti and RRDtool

Using SNMP with Content Gateway (not V-Series)

SNMP Monitoring. The Sequel by Manuel Deschambault. Support Tool Architect Symbiotic System Design

Install and configure the Net- SNMP agent for Windows

SNMP exercises. 2 Installing client (manager) tools 2. 3 Configure SNMP on Your Router 3

Network Management & Monitoring Introduction to SNMP

Using Cacti To Graph MySQL s Metrics

How to simulate network devices using the Verax SNMP Simulator (Linux/Windows)

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

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

Solr Bridge Search Installation Guide

Network Monitoring & Management Introduction to SNMP

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

Network Management & Monitoring Introduction to SNMP

White Paper. Fabasoft on Linux Performance Monitoring via SNMP. Fabasoft Folio 2015 Update Rollup 2

Network and Server Statistics Using Cacti

AXIGEN Mail Server Reporting Service

Demystifying SNMP. TruePath Technologies Inc 10/5/2015 2:11:14 PM Version 1.db. p.1

How To Name A Snip On Linux (M500) On A Usb Modem Or Ipa (M5) On An Ipa Or Ipb (M50) On Linux On A Microsoft M500 Modem On A 2C Or Ip

This configuration guide describes the installation process of SNMP on Windows and Linux with the NetBorder Express Gateway.

Oracle Enterprise Manager. Description. Versions Supported. Prerequisites

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

網 路 品 質 管 理 工 具 The Dude 簡 介

HP LeftHand SAN Solutions

Install Cacti Network Monitoring Tool on CentOS 6.4 / RHEL 6.4 / Scientific Linux 6.4

SNMP Adapter Installation and Configuration Guide

Maintaining Non-Stop Services with Multi Layer Monitoring

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

How To Monitor A Network With Snmp (Network Monitoring)

Using MRTG to Monitor I/O

This watermark does not appear in the registered version - SNMP and OpenNMS. Part 1 SNMP.

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

Network and Server Statistics Using Cacti

QStar SNMP installation, configuration and testing. Contents. Introduction. Change History

IBM. IBM Cloud Automated Modular Managed (AMM) - monitoring services User Guide

Table of Contents. Overview...2. System Requirements...3. Hardware...3. Software...3. Loading and Unloading MIB's...3. Settings...

About This Document 3. About the Migration Process 4. Requirements and Prerequisites 5. Requirements... 5 Prerequisites... 5

Oracle Enterprise Manager. Description. Platforms Supported. Versions Supported

Intel Simple Network Management Protocol (SNMP) Subagent v6.0

Creating Cacti FortiGate SNMP Graphs

HP LeftHand SAN Solutions

Network Monitoring. Dhruba Raj Bhandari (CCNA) Manager Systems Soaltee Crowne Plaza Kathmandu NEPAL

PANDORA FMS NETWORK DEVICE MONITORING

Integration Guide. LogicNow MAXfocus

TrueSight Operations Management Monitoring Studio

PANDORA FMS NETWORK DEVICES MONITORING

VERSION 9.02 INSTALLATION GUIDE.

Network Management. Jaakko Kotimäki. Department of Computer Science Aalto University, School of Science. 21. maaliskuuta 2016

Introduction. Installation of SE S AM E BARCODE virtual machine distribution. (Windows / Mac / Linux)

MONITORING EMC GREENPLUM DCA WITH NAGIOS

Network and Server Statistics using Cacti

Management, Logging and Troubleshooting

There are numerous ways to access monitors:

Simple Network Management Protocol

The Cacti HowTo Section

TPAf KTl Pen source. System Monitoring. Zenoss Core 3.x Network and

Zenoss Discovery and Classification

Dude Workshop. MUM Prague 2009 by Patrik Schaub. FMS

Quick Installation Guide For Sensors with Cacti

Deploying BitDefender Client Security and BitDefender Windows Server Solutions

RedvsGreen Documentation

Accessing VirtualBox Guests from Host using SSH, WinSCP and Tunnelling

EVault for Data Protection Manager. Course 361 Protecting Linux and UNIX with EVault

Network Monitoring with SNMP

White Paper. Quo Vadis, SNMP? White Paper Part 2: Putting SNMP into practice

LICENSE4J FLOATING LICENSE SERVER USER GUIDE

securitymodel who securityname com2sec secname ipsource community default group groupname model secname v1 v2c usm

The Cacti Manual. Ian Berry Tony Roman Larry Adams

Hadoop Installation MapReduce Examples Jake Karnes

CLOUD INFRASTRUCTURE VIRTUAL SERVER (SHARED) USER GUIDE

Cacti 0.8 Network Monitoring

MarkLogic Server. Installation Guide for All Platforms. MarkLogic 8 February, Copyright 2015 MarkLogic Corporation. All rights reserved.

You can create configurations using the following modes:

M7 Modem SNMP Guide. M7 Modem Technical Note

GeBro-BACKUP. Die Online-Datensicherung. Manual Pro Backup Client on a NAS

Cacti The ULTIMATE Management Solution

WLAN TRAFFIC GRAPHING APPLICATION USING SIMPLE NETWORK MANAGEMENT PROTOCOL *

Contents 1. Introduction 2. Security Considerations 3. Installation 4. Configuration 5. Uninstallation 6. Automated Bulk Enrollment 7.

Installing an open source version of MateCat

1. Installation Overview

Methods of monitoring processes with Zenoss

SonicWALL CDP 5.0 Microsoft Exchange InfoStore Backup and Restore

AKIPS Network Monitor Installation, Configuration & Upgrade Guide Version 15. AKIPS Pty Ltd

Compuprint 4247 Serial Matrix Printers

Monitor TemPageR 4E With PageR Enterprise

CYCLOPE let s talk productivity

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

NeuralStar Installation Guide

How to Install Multicraft on a VPS or Dedicated Server (Ubuntu bit)

Mirtrak 6 Powered by Cyclope

Installation Overview

Attix5 Pro Server Edition

TransNav Management System Documentation. Management Server Guide

User Manual - Help Utility Download MMPCT. (Mission Mode Project Commercial Taxes) User Manual Help-Utility

Editing Locally and Using SFTP: the FileZilla-Sublime-Terminal Flow

EVault Software. Course 361 Protecting Linux and UNIX with EVault

Section 1: Preface Introduction... 1 Users... 1 Other Resources... 2 Conventions... 2 Icons... 2 Text... 2

Nagios Web Service Checker

Transcription:

Monitoring disk stats with Cacti February 13, 2013 Contents 1 Disk space utilisation 1 1.1 hrstoragetable (.1.3.6.1.2.1.25.2.3)................. 2 1.2 dsktable (.1.3.6.1.4.1.2021.9).................... 2 2 Cacti configuration 3 2.1 How to collect hrstoragetable from a device............ 3 2.2 Create graphs............................. 3 3 Monitoring disk I/O operations 4 3.1 Download the configuration..................... 4 3.2 Install the configuration files.................... 4 3.3 Switch to 64-bit counters...................... 5 3.4 Start monitoring........................... 5 3.5 Interpreting the results........................ 6 1 Disk space utilisation You need to be aware of two MIBs which can be used for monitoring disk space. 1

1.1 hrstoragetable (.1.3.6.1.2.1.25.2.3) This comes from HOST-RESOURCES-MIB and is the standard way of returning disk space utilisation. It is supported by many vendors, including Windows SNMP Agent, and enabled by default in Linux net-snmp as well. It is limited to returning 2ˆ31 filesystem blocks, which means you can have problems when monitoring large filesystems (e.g. an 8TB filesystem with 4KB blocks) Use snmpwalk to look at it. You will see entries for various things including RAM utilisation, but the mounted partition(s) will be included as members of type hrstoragefixeddisk. $ snmpwalk -v2c -c NetManage localhost hrstoragetable HOST-RESOURCES-MIB::hrStorageIndex.31 = INTEGER: 31 HOST-RESOURCES-MIB::hrStorageType.31 = OID: HOST-RESOURCES-TYPES::hrStorageFixedDisk HOST-RESOURCES-MIB::hrStorageDescr.31 = STRING: / HOST-RESOURCES-MIB::hrStorageAllocationUnits.31 = INTEGER: 4096 Bytes HOST-RESOURCES-MIB::hrStorageSize.31 = INTEGER: 4934317 HOST-RESOURCES-MIB::hrStorageUsed.31 = INTEGER: 232406 1.2 dsktable (.1.3.6.1.4.1.2021.9) This MIB is proprietary to the net-snmp daemon which runs under Linux/Unix. It is a convenient alternative when monitoring a Linux/Unix box if there are problems with hrstoragetable. It also can have problems with very large filesystems, except for very recent net-snmp versions. If you want to enable this MIB you need to list all the filesystem mount point(s) you want to monitor in snmpd.conf $ sudo editor /etc/snmp/snmpd.conf add this line somewhere disk / $ sudo service snmpd restart $ snmpwalk -v2c -c NetManage localhost dsktable UCD-SNMP-MIB::dskIndex.1 = 1 UCD-SNMP-MIB::dskPath.1 = / etc 2

2 Cacti configuration To make things complicated, Cacti has several different data queries pre-defined. SNMP - Get Mounted Partitions fetches hrstoragetable using a PHP script /usr/share/cacti/site/scripts/ss host disk.php ucd/net - Get Monitored Partitions fetches dsktable using a direct SNMP query Unix - Get Mounted Partitions should be ignored. It doesn t use SNMP at all, but looks directly at the local host. You may get one or other of these data queries automatically added for you based on which Host Template you chose when creating a host. You can always add another query if you wish, and/or remove the one you don t want. 2.1 How to collect hrstoragetable from a device From the left panel select Devices If you are creating a new device, enter the name/hostname and SNMP settings as usual, and click Create Under Associated Data Queries, next to Add Data Query select SNMP - Get Mounted Partitions, and click Add. Click on verbose query next to query you just added, to test the execution of the SNMP query. If you see Success [0 Items, 0 Rows] then there is a problem. Find it and fix it, and click on verbose query again until you see something like Success [24 Items, 8 Rows] 2.2 Create graphs Now go to Create Graphs for this Host. Under Data Query [SNMP - Get Mounted Partitions], check the box(es) next to the partitions you want to graph, and then click Create at the bottom of the page. If this is a new host, add it into a graph tree. 3

3 Monitoring disk I/O operations You can use Cacti to monitor disk I/O (that is, read/write transactions per second and bytes per second). This MIB is available in recent versions of Linux snmpd. However, out-of-the-box Cacti does not have the data query for this, so you need to install a new data query and graph templates. This can be done on a standard Cacti installation - it does not require the Cacti Plugin Architecture. 3.1 Download the configuration Firstly, go to http://docs.cacti.net/usertemplate:data:host mib:diskio and download the file with a name like diskio087d.tar.gz, and extract the two XML files it contains. You could do this under Linux like this: $ wget http://docs.cacti.net/_media/usertemplate:data:host_mib:diskio087d.tar.gz $ gzip -dc usertemplate:data:host_mib:diskio087d.tar.gz tar -xvf - This should give you two files: disk io.xml cacti087d data query snmp-get disk io.xml 3.2 Install the configuration files disk io.xml needs to be installed in the Linux box in the correct directory: $ sudo cp disk_io.xml /usr/share/cacti/resource/snmp_queries/disk_io.xml The other file needs to be installed via the web interface. Login to Cacti via the web browser, click Import Templates. Next to Import Template from Local File click Choose ; select the file; then click Save Note: this means that you ll have to have the file cacti087d data query snmp - get disk io.xml on your PC or laptop. You can copy it to your laptop using something like Putty PSFTP (or another Windows scp or sftp client). Alternatively, just download the original.tar.gz file to your laptop and unpack it again there. You should see Cacti has imported the following items... Go to Data Queries and you should see SNMP - Get Disk IO as a new entry. 4

3.3 Switch to 64-bit counters Unfortunately, using 32-bit counters for disk I/O means that with 5-minute polling, you graphs will break if you exceed about 14MB/sec of disk activity. Modern versions of net-snmp support 64-bit counters. You can check this by doing: snmpwalk -v2c -c <community> <target> UCD-DISKIO-MIB::diskIOTable If you see diskionreadx and diskionwrittenx (note the final X ) then you have extended or 64-bit counters. To use them, edit /usr/share/cacti/resource/snmp queries/disk io.xml and change the OIDs as follows: <hrdiskionread> <name>number of Bytes Read</name> <method>walk</method> <source>value</source> <direction>output</direction> <oid>.1.3.6.1.4.1.2021.13.15.1.1.3</oid> ## change final.3 to.12 </hrdiskionread> <hrdiskionwrite> <name>number of Bytes Written</name> <method>walk</method> <source>value</source> <direction>output</direction> <oid>.1.3.6.1.4.1.2021.13.15.1.1.4</oid> ## change final.4 to.13 </hrdiskionwrite> 3.4 Start monitoring From the left pane select Devices, then from the main screen click on a device Under Associated Data Queries, next to Add Data Query select SNMP - Get Disk IO and click Add Go to Create Graphs for this host Under Data Query [SNMP - Get Disk IO] check the disks and/or partitions you want to monitor Select one of the graph types from the dropdown below: 5

Host MIB - Disk IO - Bytes per second Host MIB - Disk IO - Transactions At the bottom of the screen click on Create If you want to monitor both Bytes per second and Transactions per second, then repeat the process to create graphs of the other type. 3.5 Interpreting the results It is helpful to have a good idea how many operations per second you can expect your drives to be able to handle. There is a good background article here: http://www.symantec.com/connect/articles/getting-hang-iops 6