Knowledge is Power. He who gets wisdom loves his own soul; he who cherishes understanding prospers. (Proverbs 19:8)



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

Newton Linux User Group Graphing SNMP with Cacti and RRDtool

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

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

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

Configuration des pré-requis Linux. Référence : Version N : 1 Créé le : 9 Janvier Créé par : Thibault Cuisy Téléphone :

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

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

Advanced Server Monitoring Setup Guide

Monitoring Cisco IOS Firewall Inspection Activity with Multi- Router Traffic Grapher (MRTG)

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

MRTG used for Basic Server Monitoring

Helsinki University of Technology Department of Electrical and Communications Engineering Networking Laboratory

How To Monitor A Network With Snmp (Network Monitoring)

Maintaining Non-Stop Services with Multi Layer Monitoring

KretchmarBook 2003/8/29 19:05 page 39 #51

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

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

Using MRTG to Monitor I/O

Configuring Simple Network Management Protocol (SNMP)

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

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

S /3133 Networking Technology, laboratory course A/B

SNMP, RMON, and Alarm Configuration

System Management Software User s Manual

MRTG / RRDTool. Network Management Workshop. June 2009 Papeete, French Polynesia

Network Monitoring Tools

SVNManager Installation. Documentation. Department of Public Health Erasmus MC University Medical Center

Tue Apr 19 11:03:19 PDT 2005 by Andrew Gristina thanks to Luca Deri and the ntop team

Simple Network Management Protocol

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

Simple Network Management Protocol

Configuring SNMP Cisco and/or its affiliates. All rights reserved. 1

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

Multi-Router Traffic Grapher (MRTG)

Monitoring disk stats with Cacti

Configuring SNMP and using the NetFlow MIB to Monitor NetFlow Data

Using SNMP with Content Gateway (not V-Series)

Network Monitoring Systems / Nagios. 2/19/08 Michael Miller e mail: mike.mikemiller@gmail.com

A Guide to Understanding SNMP

CC ICT-SUD. Setting up and integrate Apache, MySQL and PHP on a Linux system

Rancid Server Build and Operation Overview (v0.3) (This is being done from memory so expect some errors)

How To Run Nrpe On Nagios On Windows 7.5 (Windows) On A Linux Computer On A Windows 7 (Windows 7) On An Ubuntu Computer On An Ipad Or Ipad (Windows 8) On Your Pc

TEIN2 Measurement and Monitoring Workshop Passive Measurements.

Installation and User Guide. for. Intel Server Management (ISM) Ver

Dell SupportAssist Version 2.0 for Dell OpenManage Essentials Quick Start Guide

Apache & Virtual Hosts & mod_rewrite

Setup Local Mail Server Using Postfix, Dovecot And Squirrelmail On CentOS 6.5/6.4

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

Network Monitoring & Management Introduction to SNMP

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

Oracle, the Oracle logo, Java, and MySQL are registered trademarks of the Oracle Corporation and/or its affiliates.

A SURVEY ON AUTOMATED SERVER MONITORING

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

The current version installed on your server is el6.x86_64 and it's the latest available.

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

Management, Logging and Troubleshooting

Details. Some details on the core concepts:


Install and configure the Net- SNMP agent for Windows

Setting Up A Nagios Monitoring System Warren Block, May 2005

Oracle Enterprise Manager. Description. Versions Supported. Prerequisites

Red Hat Linux Administration II Installation, Configuration, Software and Troubleshooting

Network Monitoring and Management Recommendations Best Practice Document

Network Management & Monitoring Introduction to SNMP

Monitoring Clearswift Gateways with SCOM

Technical Notes P/N Rev 01

GestióIP IPAM v3.0 IP address management software Installation Guide v0.1

Administering the Network Analysis Module. Cisco IOS Software. Logging In to the NAM with Cisco IOS Software CHAPTER

While are you still in Nagios working directory, create a new file for DNS servers monitoring

Web Server using Apache. Heng Sovannarith

Network Management & Monitoring

Wordpress Security. A guide on how to not get hacked when using wordpress. David Kennedy (ReL1K) Twitter: Dave_ReL1K

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

GroundWork Monitor Community Edition Install Guide VMware Virtual Appliance

NRPE Documentation CONTENTS. 1. Introduction... a) Purpose... b) Design Overview Example Uses... a) Direct Checks... b) Indirect Checks...

SyAM Software Management Utilities. Creating Templates

SNMP in Cisco IOS. The minimum you should know

Managing and Monitoring Network Management Features

CloudLinux is a proven solution for shared hosting providers that:

The Subversion move/migrate from one server to another, shall be divided into 3 steps: Backup Create Import

Monitoring a Linux Mail Server

Installing Apache Software

Linux System Administration on Red Hat

CRMS SNMP Software Overview

Single sign-on websites with Apache httpd: Integrating with Active Directory for authentication and authorization

It should be noted that the installer will delete any existing partitions on your disk in order to install the software required to use BLËSK.

Introduction to Operating Systems

OPENPROJECT INSTALL ON CENTOS 7 RUNNING IN VMWARE PLAYER

Web Hosting for Fame and Fortune. A Guide to using Apache as your web-server solution

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

Using Cacti To Graph MySQL s Metrics

This section describes how to set up, find and delete community strings.

Linux Administrator (Advance)

Parallels Plesk Panel

MONITORING EMC GREENPLUM DCA WITH NAGIOS

Connecting to the Firewall Services Module and Managing the Configuration

Oracle Enterprise Manager. Description. Platforms Supported. Versions Supported

Monitoring Network Services with Linux. SHARE 107 Session 9270 Richard Smrcina VM Assist, Inc. August 14, 2006

Implementation of escan Live Events with SYSLOG (CACTI)

Transcription:

Knowledge is Power He who gets wisdom loves his own soul; he who cherishes understanding prospers. (Proverbs 19:8)

Monitoring Tool -MRTG on CentOS 6.4 Jeong Chul tland12.wordpress.com www.youtube.com/user/tland12 Computer Science ITC and RUPP in Cambodia

Monitoring Tool - MRTG on CentOS 6.4 Part 1 Managed Devices Chapter 1 Network Monitoring Structure Chapter 2 Basic Terminology Chapter 3 Testing Environment Chapter 4 Managed Devices Chapter 5 MRTG Configuration (1) Part 2 NMS MRTG Chapter 5 MRTG Configuration (2) Chapter 6 Email Notification Chapter 7 MRTG Authentication

Chapter 1 Network Monitoring Structure

Chapter 2 Basic Terminology 1.SNMP - Simple Network Management Protocol an application-layer protocol that facilitates the exchange of management information works between a network management system (NMS), agents, and managed devices. uses TCP/IP protocol suite. 2. Agent A network-management software module that resides in a managed device such as the Cisco IOS software has local knowledge of management information makes that information available by using SNMP. 3. NMS - Network Management System Run applications that monitor and control managed devices. provide resources required for network management. NMS applications such as MRTG, Cacti or Nagios. 4. Managed Device Contain an SNMP agent and reside on a managed network. Collect and store management information and make it available to NMS by using SNMP. Include Routers, Switches, Servers, Hosts, or Printers.

Chapter 3 Testing Environment 1.NMS MRTG (Multi Router Traffic Grapher) IP Address: 192.168.80.6 OS: CentOS 6.4 Hostname: client.chul.com Need to install and start MRTG service with Web server 2. Managed Devices 1)Linux Server 192.168.80.5 (CentOS 6.4) Need to install net-snmp package and start SNMPD 2)Windows Server 2008-192.168.80.48 Need to install snmp file and start SNMP service 3) Cisco Router - DHCP Configure snmp service and activate SNMP service

Chapter 4 Managed Devices 1. Linux Server a. Packages installation # yum install net-snmp-libs net-snmp net-snmp-utils b. File Configuration # vi /etc/snmp/snmpd.conf # sec.name source community com2sec local localhost jeong com2sec mynetwork 192.168.80.0/24 jeong # groupname securitymodel securityname group MyROGroup v1 mynetwork group MyROGroup v2c mynetwork # Make at least snmpwalk -v 1 localhost -c public system fast again. # name incl/excl subtree mask(optional) #view systemview included.1.3.6.1.2.1.25.1.1 view all included.1 80 # Finally, grant the group read-only access to the systemview view. # group context sec.model sec.level prefix read write notif access MyROGroup "" any noauth exact all none none access MyRWGroup "" any noauth exact all all none # Check the / partition and make sure it contains at least 10 megs. disk / 10000 c. Service checking # service snmpd start # chkconfig snmpd on # ps ef grep snmpd ; netstat nau grep 161

Chapter 4 Managed Devices 2. Windows Server 2008 Install snmp files Start -> Administrative Tools -> Services -> SNMP Service > 1 2 Properties -> Security Add Community : jeong Add Hosts : 192.168.80.6 (NMS IP) 3. Cisco Router and Switch router# config terminal router(config)# snmp-server contact tland12@gmail.com router(config)# access-list 5 permit 192.168.80.6 router(config)# snmp-server community jeong RO 5 router(config)# snmp-server host 192.168.80.6 jeong router(config)# int lo 0 router(config)# ip address 1.1.1.1 255.255.255.0 router(config)# exit router(config)# snmp-server trap-source lo0 router(config)# snmp-server enable traps

Chapter 5 MRTG Configuration 1.MRTG Installation # yum install httpd php zlib libpng gd mrtg 2. Creating configuration files for each device # cfgmaker --global 'WorkDir: /var/www/mrtg' --output /etc/mrtg/mrtg.cfg jeong@192.168.80.5 // Linux Server # cfgmaker --global 'WorkDir: /var/www/mrtg' --output /etc/mrtg/windows.cfg jeong@192.168.80.48 // Windows Server #cfgmaker --global 'WorkDir: /var/www/mrtg' --output /etc/mrtg/router.cfg jeong@192.168.80.60 // Router # vi mrtg.sh //shell script to execute MRTG using cfg files #!/bin/bash LOCK=/var/lock/mrtg/mrtg_l CONFCACHE=/var/lib/mrtg/mrtg.ok env LANG=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file $LOCK --confcache-file $CONFCACHE env LANG=C /usr/bin/mrtg /etc/mrtg/windows.cfg --lock-file $LOCK --confcache-file $CONFCACHE env LANG=C /usr/bin/mrtg /etc/mrtg/router.cfg --lock-file $LOCK --confcache-file $CONFCACHE # chmod 700 mrtg.sh

Chapter 5 MRTG Configuration 3. Editing cfg files for each Devices a. Editing 3 files for managed devices # vi mrtg.cfg windows.cfg router.cfg Target[eth0]: \eth0:public@192.168.80.5: SetEnv[eth0]: MRTG_INT_IP="192.168.80.5" MRTG_INT_DESCR="eth0" MaxBytes[eth0]: 1250000 Title[eth0]: eth0 -- server.chul.com PageTop[eth0]: <h1>eth0 -- server.chul.com</h1> b. Executing shell script #./mrtg.sh # ls l /var/www/mrtg c. Creating index file # indexmaker output=/var/www/mrtg/index.html mrtg.cfg windows.cfg router.cfg d. Webserver reload # service httpd restart

Chapter 5 MRTG Configuration 4. Access Control for MRTG Access # vi /etc/httpd/conf.d/mrtg.conf Alias /mrtg /var/www/mrtg <Location /mrtg> Order deny,allow Deny from all Allow from 127.0.0.1 192.168.80.0/24 </Location> [root@centos ~]# service httpd reload 5. Crontab #vi /etc/cron.d/mrtg */5 * * * * root /root/mrtg.sh # service crond start # chkconfig crond on 6. Testing MRTG Graph http://localhost/mrtg/index.html

Chapter 6 Adding More Targets 1. CPU ## CPU Load Average ### Target[cpu]:.1.3.6.1.4.1.2021.10.1.5.1&.1.3.6.1.4.1.2021.10.1.5.2:jeong@192.168.80.5 MaxBytes[cpu]: 100 Unscaled[cpu]: dwmy Options[cpu]: gauge, absolute, growright, noinfo, nopercent YLegend[cpu]: CPU Load(%) ShortLegend[cpu]: (%) LegendI[cpu]: 1 minute average LegendO[cpu]: 5 minute average Legend1[cpu]: 1 minute average(%) Legend2[cpu]: 5 minute average(%) Title[cpu]: CPU usage PageTop[cpu]: <H1>CPUusage</H1> ThreshMaxI[cpu]: 85 ThreshProgI[cpu]: /usr/local/sbin/notify.sh 2. Memory ### Memory Free #### Target[mem]:.1.3.6.1.4.1.2021.4.6.0&.1.3.6.1.4.1.2021.4.4.0:jeong@192.168.80.5 MaxBytes1[mem]: 1030608 MaxBytes2[mem]: 2097144 LegendI[mem]: Real LegendO[mem]: Swap 3. Disk

Chapter 7 Email Notification 1. mrtg.cfg in /etc/mrtg a. Global section WorkDir: /var/www/mrtg ThreshDir: /var/run/mrtg b. Per each Target Target[cpu]: Options[cpu]: growright, nopercent, gauge ThreshMaxI[cpu]: 90 ThreshMinI[cpu]: 50 ThreshProgI[cpu]: /usr/local/sbin/notify.sh 2. Need to check SMTP working for email notification 3. /usr/local/sbin/notify.sh #!/bin/sh echo -e "Device: $1\\nThreshold Value : $2\\nCurrent Value: $3\\nDate/Time : `date`\\n" mail -s "Threshold Alert: '$1' Passed $2 Threshold" tland12@gmail.com

Chapter 8 MRTG Authentication 1.Web server configuration # vi /etc/httpd/conf/httpd.conf <Directory /var/www/mrtg> AllowOverride FileInfo AuthConfig Limit Options MultiViews Indexes IncludesNoExec </Directory> # service httpd reload 2. Creating htaccess and htpasswd # vi /var/www/mrtg/.htaccess AuthName Cambodia Network Administrator AuthType Basic AuthUserFile /var/www/.htpasswd requre valid-user # htpasswd c /var/www/.htpasswd tland Passwd: 3. Authentication Testing http://localhost/mrtg/index.html

Monitoring Tool MRTG on CentOS 6.4 Summary 1. Network Monitoring Structure 2. How to setup Managed Devices Linux server, Windows Server and Cisco Router 3. How to setup MRTG as a monitoring tool 4. How to use MRTG Adding more target, Email notification MRTG Authentication

Monitoring Tool - MRTG on CentOS 6.4 Thank you & God bless you!! tland12.wordpress.com www.youtube.com/user/tland12