SlideShare a Scribd company logo
Network Monitoring & Management
Using Cacti
Network Startup Resource Center
www.nsrc.org
These materials are licensed under the Creative Commons Attribution-NonCommercial 4.0 International license
(http://creativecommons.org/licenses/by-nc/4.0/)
Network Monitoring Tools
Availability
Reliability
Performance
Cacti monitors the performance and usage of
devices.
Introduction
Cacti: Uses RRDtool, PHP and stores
data in MySQL. It supports the use
of SNMP and graphics with RRDtool.
“Cacti is a complete frontend to RRDTool, it stores all of the necessary
information to create graphs and populate them with data in a MySQL
database. The frontend is completely PHP driven. Along with being able to
maintain Graphs, Data Sources, and Round Robin Archives in a database,
cacti handles the data gathering. There is also SNMP support for those
used to creating traffic graphs with MRTG.”
Introduction
• A tool to monitor, store and present
network and system/server statistics
• Designed around RRDTool with a special
emphasis on the graphical interface
• Almost all of Cacti's functionality can be
configured via the Web.
• You can find Cacti here:
http://www.cacti.net/
Introduction
• Round Robin Database for time series data storage
• Command line based
• From the author of MRTG
• Made to be faster and more flexible
• Includes CGI and Graphing tools, plus APIs
• Solves the Historical Trends and Simple Interface problems as
well as storage issues
Find RRDtool here: http://oss.oetiker.ch/rrdtool/
Getting RRDtool
RRDtool Database Format
1. Cacti is written as a group of PHP scripts.
2. The key script is “poller.php”, which runs every 5 minutes
(by default). It resides in /usr/share/cacti/site.
3. To work poller.php needs to be in /etc/cron.d/cacti like this:
MAILTO=root
*/5 * * * * www-data php /usr/share/cacti/site/poller.php >/dev/null 2>/var/log/cacti/poller-error.log
4. Cacti uses RRDtool to create graphs for each device and
data that is collected about that device. You can adjust all
of this from within the Cacti web interface.
5. The RRD files are located in /var/lib/cacti/rra when cacti is
installed from packages.
General Description
You can measure Availability, Load, Errors and more all
with history.
– Cacti can display your router and switch interfaces and their traffic,
including all error traffic as well.
– Cacti can measure drive capacity, CPU load (network h/w and servers) and
much more. It can react to conditions and send notifications based on
specified ranges.
Graphics
– Allows you to use all the functionality of rrdgraph to define graphics and
automate how they are displayed.
– Allows you to organize information in hierarchical tree structures.
Data Sources
– Permits you to utilize all the functions of rrdcreate and rrdupdate including
defining several sources of information for each RRD file.
Advantages
Data Collection
– Supports SNMP including the use of php-snmp or net-snmp
– Update data sources via SNMP or define scripts to capture required data
– cactid implements SNMP routines in C with multi-threading
Templates
– Create templates to reutilize graphics definitions, data and device sources
Cacti Plugin Architecture
– Extends Cacti functionality. Many, many plugins are available. Part of the
default Cacti installation in Ubuntu version 12 and above.
User Management
– Manage users locally or via LDAP
– Assign granular levels of authorization by user or groups of users.
Advantages (continued)
• Configuring Interfaces via the web interface is tedious
• Use provided command-line scripts instead
• Upgrading versions difficult if installed from source.
Advice:
For continuous use or large installations it is likely that
you will be using scripts and tools to automate the
configuration of Cacti.
Disadvantages
PART II
Before we install Cacti we demonstrate how to use the
interface to add and monitor some devices…
Steps to Add and Monitor Devices
Management -> Devices -> Add
Specify device attributes
– We’ll add an entry for our gateway router, gw.ws.nsrc.org*
*Actual device name may be different.
Adding a Device via the Web Interface
Add Devices (2)
• Host Template: ucd/net SNMP Host is recommended for
servers to include disk definitions.
• Choose SNMP version 2 for this workshop.
• For “Downed Device Detection” we recommend either
using Ping and SNMP, or just Ping.
• Use “NetManage” for the “SNMP Community” string.
SNMP access is a security issue:
- Version 2 is not encrypted
- Watch out for globally readable “public” communities
- Be careful about who can access r/w communities.
- Replace “xxxxxxx” with your local public r/o string
Add Devices (3)
For a router you may see a lot of potential network
interfaces that are detected by SNMP.
Your decision is to create graphs for all of these
are not. Generally the answer is, “Yes” – Why?
Add Devices (4)
• Chose the “Create graphs for this host”
• Under Graph Templates generally check the
top box that chooses all the available graphs to
be displayed.
• Press Create.
• You can change the default colors, but the
predefined definitions generally work well.
Create Graphics
Create Graphics (2)
Create Graphics (3)
You’ll see this screen later when you are creating graphics for hosts vs. routers
Create Graphics (4)
• Place the new device in its proper location in
your tree hierarchy.
• Building your display hierarchy is your decision.
Try drawing this out on paper first.
–Under Management  Graph Trees
select the Default Tree hierarchy (or, create
one of your own).
View the Graphics
First, press “Add” if you want a new graphing tree:
Second, name your tree, choose the sorting order (the author likes
Natural Sorting and press “create”:
Graphics Tree
Third, add devices to your new tree:
Once you click “Add” you can add “Headers” (separators), graphs or hosts.
Now we'll add Hosts to our newly created graph tree:
Graphics Tree
• Our graphics tree just after the first two devices were added.
• So far, graphics are empty – the first data can
take up to 5 minutes to display.
• Cacti graphs are stored on disk and updated using RRDTool
via the poller.php script, which, by default, is run every five
minutes using cron.
Graphics Tree with Two Devices
Initial Graphs
See Tendencies Over Time
• There are a number of popular Cacti plugins, such as:
- Settings
- thold
- PHP Weathermap
• A good place to start is http://cactiusers.net/ and Google.
• To send email to RT from Cacti via rt-mailgate you can
use the Cacti “settings” plugin:
http://docs.cacti.net/plugin:settings
• Automate device and graph creation using available
command-line scripts in /usr/share/cacti/cli, such as:
- add_devices.php
- add_graphs.php
- add_tree.php
Next Steps
• Cacti is very flexible due to its use of templates.
• Once you understand the concepts behind RRDTool,
then how Cacti works should be (more or less) intuitive.
• The visualization hierarchy of devices helps to organize
and locate new devices quickly.
• It is not easy to do a rediscover of devices.
• To add lots of devices requires automation. Software
such as Netdot, Netdisco, IPPlan, TIPP can help – as
well as local scripts that update the Cacti back-end
MySQL database directly.
Conclusions
• Cacti Web Site:
http://www.cacti.net/
• Plugin Documentation
http://docs.cacti.net/plugins
• Cacti Discussion Group:
http://forums.cacti.net/
• Cacti Users – Plugin Architecture Home
http://cactiusers.org/
References
Cacti Installation and Configuration
Workshop Labs
Ad

More Related Content

Similar to Cacti Network Monitoring Networking Tools (20)

26.1.7 lab snort and firewall rules
26.1.7 lab   snort and firewall rules26.1.7 lab   snort and firewall rules
26.1.7 lab snort and firewall rules
Freddy Buenaño
 
Building a Gateway Server
Building a Gateway ServerBuilding a Gateway Server
Building a Gateway Server
Dashamir Hoxha
 
System monitoring
System monitoringSystem monitoring
System monitoring
HardikBadola
 
Monitoring federation open stack infrastructure
Monitoring federation open stack infrastructureMonitoring federation open stack infrastructure
Monitoring federation open stack infrastructure
Fernando Lopez Aguilar
 
Server monitoring using grafana and prometheus
Server monitoring using grafana and prometheusServer monitoring using grafana and prometheus
Server monitoring using grafana and prometheus
Celine George
 
Wireshark Inroduction Li In
Wireshark Inroduction  Li InWireshark Inroduction  Li In
Wireshark Inroduction Li In
mhaviv
 
Laporan Praktikum Keamanan Siber - Tugas 4 -Kelas C - Kelompok 3.pdf
Laporan Praktikum Keamanan Siber - Tugas 4 -Kelas C - Kelompok 3.pdfLaporan Praktikum Keamanan Siber - Tugas 4 -Kelas C - Kelompok 3.pdf
Laporan Praktikum Keamanan Siber - Tugas 4 -Kelas C - Kelompok 3.pdf
IGedeArieYogantaraSu
 
Cloud init and cloud provisioning [openstack summit vancouver]
Cloud init and cloud provisioning [openstack summit vancouver]Cloud init and cloud provisioning [openstack summit vancouver]
Cloud init and cloud provisioning [openstack summit vancouver]
Joshua Harlow
 
Network_Forenic_Training_for_beginner.pdf
Network_Forenic_Training_for_beginner.pdfNetwork_Forenic_Training_for_beginner.pdf
Network_Forenic_Training_for_beginner.pdf
TngPhanThanh8
 
PCIC Data Portal 2.0
PCIC Data Portal 2.0PCIC Data Portal 2.0
PCIC Data Portal 2.0
James Hiebert
 
Docker Application to Scientific Computing
Docker Application to Scientific ComputingDocker Application to Scientific Computing
Docker Application to Scientific Computing
Peter Bryzgalov
 
GCF
GCFGCF
GCF
Gaurav Menghani
 
An Express Guide ~ Cacti for IT Infrastructure Monitoring & Graphing
An Express Guide ~ Cacti for IT Infrastructure Monitoring & GraphingAn Express Guide ~ Cacti for IT Infrastructure Monitoring & Graphing
An Express Guide ~ Cacti for IT Infrastructure Monitoring & Graphing
Abhishek Kumar
 
Distributed Database practicals
Distributed Database practicals Distributed Database practicals
Distributed Database practicals
Vrushali Lanjewar
 
Chep04 Talk
Chep04 TalkChep04 Talk
Chep04 Talk
FNian
 
Monitoring_with_Prometheus_Grafana_Tutorial
Monitoring_with_Prometheus_Grafana_TutorialMonitoring_with_Prometheus_Grafana_Tutorial
Monitoring_with_Prometheus_Grafana_Tutorial
Tim Vaillancourt
 
WS-VLAM workflow
WS-VLAM workflowWS-VLAM workflow
WS-VLAM workflow
guest6295d0
 
Developing Real-Time Data Pipelines with Apache Kafka
Developing Real-Time Data Pipelines with Apache KafkaDeveloping Real-Time Data Pipelines with Apache Kafka
Developing Real-Time Data Pipelines with Apache Kafka
Joe Stein
 
linux installation.pdf
linux installation.pdflinux installation.pdf
linux installation.pdf
MuhammadShoaibHussai2
 
Oracle Real Application Cluster ( RAC )
Oracle Real Application Cluster ( RAC )Oracle Real Application Cluster ( RAC )
Oracle Real Application Cluster ( RAC )
varasteh65
 
26.1.7 lab snort and firewall rules
26.1.7 lab   snort and firewall rules26.1.7 lab   snort and firewall rules
26.1.7 lab snort and firewall rules
Freddy Buenaño
 
Building a Gateway Server
Building a Gateway ServerBuilding a Gateway Server
Building a Gateway Server
Dashamir Hoxha
 
Monitoring federation open stack infrastructure
Monitoring federation open stack infrastructureMonitoring federation open stack infrastructure
Monitoring federation open stack infrastructure
Fernando Lopez Aguilar
 
Server monitoring using grafana and prometheus
Server monitoring using grafana and prometheusServer monitoring using grafana and prometheus
Server monitoring using grafana and prometheus
Celine George
 
Wireshark Inroduction Li In
Wireshark Inroduction  Li InWireshark Inroduction  Li In
Wireshark Inroduction Li In
mhaviv
 
Laporan Praktikum Keamanan Siber - Tugas 4 -Kelas C - Kelompok 3.pdf
Laporan Praktikum Keamanan Siber - Tugas 4 -Kelas C - Kelompok 3.pdfLaporan Praktikum Keamanan Siber - Tugas 4 -Kelas C - Kelompok 3.pdf
Laporan Praktikum Keamanan Siber - Tugas 4 -Kelas C - Kelompok 3.pdf
IGedeArieYogantaraSu
 
Cloud init and cloud provisioning [openstack summit vancouver]
Cloud init and cloud provisioning [openstack summit vancouver]Cloud init and cloud provisioning [openstack summit vancouver]
Cloud init and cloud provisioning [openstack summit vancouver]
Joshua Harlow
 
Network_Forenic_Training_for_beginner.pdf
Network_Forenic_Training_for_beginner.pdfNetwork_Forenic_Training_for_beginner.pdf
Network_Forenic_Training_for_beginner.pdf
TngPhanThanh8
 
PCIC Data Portal 2.0
PCIC Data Portal 2.0PCIC Data Portal 2.0
PCIC Data Portal 2.0
James Hiebert
 
Docker Application to Scientific Computing
Docker Application to Scientific ComputingDocker Application to Scientific Computing
Docker Application to Scientific Computing
Peter Bryzgalov
 
An Express Guide ~ Cacti for IT Infrastructure Monitoring & Graphing
An Express Guide ~ Cacti for IT Infrastructure Monitoring & GraphingAn Express Guide ~ Cacti for IT Infrastructure Monitoring & Graphing
An Express Guide ~ Cacti for IT Infrastructure Monitoring & Graphing
Abhishek Kumar
 
Distributed Database practicals
Distributed Database practicals Distributed Database practicals
Distributed Database practicals
Vrushali Lanjewar
 
Chep04 Talk
Chep04 TalkChep04 Talk
Chep04 Talk
FNian
 
Monitoring_with_Prometheus_Grafana_Tutorial
Monitoring_with_Prometheus_Grafana_TutorialMonitoring_with_Prometheus_Grafana_Tutorial
Monitoring_with_Prometheus_Grafana_Tutorial
Tim Vaillancourt
 
WS-VLAM workflow
WS-VLAM workflowWS-VLAM workflow
WS-VLAM workflow
guest6295d0
 
Developing Real-Time Data Pipelines with Apache Kafka
Developing Real-Time Data Pipelines with Apache KafkaDeveloping Real-Time Data Pipelines with Apache Kafka
Developing Real-Time Data Pipelines with Apache Kafka
Joe Stein
 
Oracle Real Application Cluster ( RAC )
Oracle Real Application Cluster ( RAC )Oracle Real Application Cluster ( RAC )
Oracle Real Application Cluster ( RAC )
varasteh65
 

More from Enics (8)

maznu-naughty-step-netmcr- maznu-naughty-step-netmcr-
maznu-naughty-step-netmcr- maznu-naughty-step-netmcr-maznu-naughty-step-netmcr- maznu-naughty-step-netmcr-
maznu-naughty-step-netmcr- maznu-naughty-step-netmcr-
Enics
 
CRS328 as a Layer 2 Switch UK MUM 2018.pdf
CRS328 as a Layer 2 Switch UK MUM 2018.pdfCRS328 as a Layer 2 Switch UK MUM 2018.pdf
CRS328 as a Layer 2 Switch UK MUM 2018.pdf
Enics
 
High availability with BGP on MikroTik Routers MUM GT20.pdf
High availability with BGP on MikroTik Routers MUM GT20.pdfHigh availability with BGP on MikroTik Routers MUM GT20.pdf
High availability with BGP on MikroTik Routers MUM GT20.pdf
Enics
 
WISP 101.pdf
WISP 101.pdfWISP 101.pdf
WISP 101.pdf
Enics
 
lecture06-link-layer.pdf
lecture06-link-layer.pdflecture06-link-layer.pdf
lecture06-link-layer.pdf
Enics
 
Load Sharing Internet with MikroTik.pdf
Load Sharing Internet with MikroTik.pdfLoad Sharing Internet with MikroTik.pdf
Load Sharing Internet with MikroTik.pdf
Enics
 
161194-online-training-template-16x9.pptx
161194-online-training-template-16x9.pptx161194-online-training-template-16x9.pptx
161194-online-training-template-16x9.pptx
Enics
 
GPON-Fundamentals_Huawei.pdf
GPON-Fundamentals_Huawei.pdfGPON-Fundamentals_Huawei.pdf
GPON-Fundamentals_Huawei.pdf
Enics
 
maznu-naughty-step-netmcr- maznu-naughty-step-netmcr-
maznu-naughty-step-netmcr- maznu-naughty-step-netmcr-maznu-naughty-step-netmcr- maznu-naughty-step-netmcr-
maznu-naughty-step-netmcr- maznu-naughty-step-netmcr-
Enics
 
CRS328 as a Layer 2 Switch UK MUM 2018.pdf
CRS328 as a Layer 2 Switch UK MUM 2018.pdfCRS328 as a Layer 2 Switch UK MUM 2018.pdf
CRS328 as a Layer 2 Switch UK MUM 2018.pdf
Enics
 
High availability with BGP on MikroTik Routers MUM GT20.pdf
High availability with BGP on MikroTik Routers MUM GT20.pdfHigh availability with BGP on MikroTik Routers MUM GT20.pdf
High availability with BGP on MikroTik Routers MUM GT20.pdf
Enics
 
WISP 101.pdf
WISP 101.pdfWISP 101.pdf
WISP 101.pdf
Enics
 
lecture06-link-layer.pdf
lecture06-link-layer.pdflecture06-link-layer.pdf
lecture06-link-layer.pdf
Enics
 
Load Sharing Internet with MikroTik.pdf
Load Sharing Internet with MikroTik.pdfLoad Sharing Internet with MikroTik.pdf
Load Sharing Internet with MikroTik.pdf
Enics
 
161194-online-training-template-16x9.pptx
161194-online-training-template-16x9.pptx161194-online-training-template-16x9.pptx
161194-online-training-template-16x9.pptx
Enics
 
GPON-Fundamentals_Huawei.pdf
GPON-Fundamentals_Huawei.pdfGPON-Fundamentals_Huawei.pdf
GPON-Fundamentals_Huawei.pdf
Enics
 
Ad

Recently uploaded (19)

IT Services Workflow From Request to Resolution
IT Services Workflow From Request to ResolutionIT Services Workflow From Request to Resolution
IT Services Workflow From Request to Resolution
mzmziiskd
 
APNIC -Policy Development Process, presented at Local APIGA Taiwan 2025
APNIC -Policy Development Process, presented at Local APIGA Taiwan 2025APNIC -Policy Development Process, presented at Local APIGA Taiwan 2025
APNIC -Policy Development Process, presented at Local APIGA Taiwan 2025
APNIC
 
Reliable Vancouver Web Hosting with Local Servers & 24/7 Support
Reliable Vancouver Web Hosting with Local Servers & 24/7 SupportReliable Vancouver Web Hosting with Local Servers & 24/7 Support
Reliable Vancouver Web Hosting with Local Servers & 24/7 Support
steve198109
 
Smart Mobile App Pitch Deck丨AI Travel App Presentation Template
Smart Mobile App Pitch Deck丨AI Travel App Presentation TemplateSmart Mobile App Pitch Deck丨AI Travel App Presentation Template
Smart Mobile App Pitch Deck丨AI Travel App Presentation Template
yojeari421237
 
Best web hosting Vancouver 2025 for you business
Best web hosting Vancouver 2025 for you businessBest web hosting Vancouver 2025 for you business
Best web hosting Vancouver 2025 for you business
steve198109
 
highend-srxseries-services-gateways-customer-presentation.pptx
highend-srxseries-services-gateways-customer-presentation.pptxhighend-srxseries-services-gateways-customer-presentation.pptx
highend-srxseries-services-gateways-customer-presentation.pptx
elhadjcheikhdiop
 
Understanding the Tor Network and Exploring the Deep Web
Understanding the Tor Network and Exploring the Deep WebUnderstanding the Tor Network and Exploring the Deep Web
Understanding the Tor Network and Exploring the Deep Web
nabilajabin35
 
APNIC Update, presented at NZNOG 2025 by Terry Sweetser
APNIC Update, presented at NZNOG 2025 by Terry SweetserAPNIC Update, presented at NZNOG 2025 by Terry Sweetser
APNIC Update, presented at NZNOG 2025 by Terry Sweetser
APNIC
 
Perguntas dos animais - Slides ilustrados de múltipla escolha
Perguntas dos animais - Slides ilustrados de múltipla escolhaPerguntas dos animais - Slides ilustrados de múltipla escolha
Perguntas dos animais - Slides ilustrados de múltipla escolha
socaslev
 
(Hosting PHising Sites) for Cryptography and network security
(Hosting PHising Sites) for Cryptography and network security(Hosting PHising Sites) for Cryptography and network security
(Hosting PHising Sites) for Cryptography and network security
aluacharya169
 
Computers Networks Computers Networks Computers Networks
Computers Networks Computers Networks Computers NetworksComputers Networks Computers Networks Computers Networks
Computers Networks Computers Networks Computers Networks
Tito208863
 
White and Red Clean Car Business Pitch Presentation.pptx
White and Red Clean Car Business Pitch Presentation.pptxWhite and Red Clean Car Business Pitch Presentation.pptx
White and Red Clean Car Business Pitch Presentation.pptx
canumatown
 
5-Proses-proses Akuisisi Citra Digital.pptx
5-Proses-proses Akuisisi Citra Digital.pptx5-Proses-proses Akuisisi Citra Digital.pptx
5-Proses-proses Akuisisi Citra Digital.pptx
andani26
 
DNS Resolvers and Nameservers (in New Zealand)
DNS Resolvers and Nameservers (in New Zealand)DNS Resolvers and Nameservers (in New Zealand)
DNS Resolvers and Nameservers (in New Zealand)
APNIC
 
OSI TCP IP Protocol Layers description f
OSI TCP IP Protocol Layers description fOSI TCP IP Protocol Layers description f
OSI TCP IP Protocol Layers description f
cbr49917
 
Determining Glass is mechanical textile
Determining  Glass is mechanical textileDetermining  Glass is mechanical textile
Determining Glass is mechanical textile
Azizul Hakim
 
Mobile database for your company telemarketing or sms marketing campaigns. Fr...
Mobile database for your company telemarketing or sms marketing campaigns. Fr...Mobile database for your company telemarketing or sms marketing campaigns. Fr...
Mobile database for your company telemarketing or sms marketing campaigns. Fr...
DataProvider1
 
project_based_laaaaaaaaaaearning,kelompok 10.pptx
project_based_laaaaaaaaaaearning,kelompok 10.pptxproject_based_laaaaaaaaaaearning,kelompok 10.pptx
project_based_laaaaaaaaaaearning,kelompok 10.pptx
redzuriel13
 
Top Vancouver Green Business Ideas for 2025 Powered by 4GoodHosting
Top Vancouver Green Business Ideas for 2025 Powered by 4GoodHostingTop Vancouver Green Business Ideas for 2025 Powered by 4GoodHosting
Top Vancouver Green Business Ideas for 2025 Powered by 4GoodHosting
steve198109
 
IT Services Workflow From Request to Resolution
IT Services Workflow From Request to ResolutionIT Services Workflow From Request to Resolution
IT Services Workflow From Request to Resolution
mzmziiskd
 
APNIC -Policy Development Process, presented at Local APIGA Taiwan 2025
APNIC -Policy Development Process, presented at Local APIGA Taiwan 2025APNIC -Policy Development Process, presented at Local APIGA Taiwan 2025
APNIC -Policy Development Process, presented at Local APIGA Taiwan 2025
APNIC
 
Reliable Vancouver Web Hosting with Local Servers & 24/7 Support
Reliable Vancouver Web Hosting with Local Servers & 24/7 SupportReliable Vancouver Web Hosting with Local Servers & 24/7 Support
Reliable Vancouver Web Hosting with Local Servers & 24/7 Support
steve198109
 
Smart Mobile App Pitch Deck丨AI Travel App Presentation Template
Smart Mobile App Pitch Deck丨AI Travel App Presentation TemplateSmart Mobile App Pitch Deck丨AI Travel App Presentation Template
Smart Mobile App Pitch Deck丨AI Travel App Presentation Template
yojeari421237
 
Best web hosting Vancouver 2025 for you business
Best web hosting Vancouver 2025 for you businessBest web hosting Vancouver 2025 for you business
Best web hosting Vancouver 2025 for you business
steve198109
 
highend-srxseries-services-gateways-customer-presentation.pptx
highend-srxseries-services-gateways-customer-presentation.pptxhighend-srxseries-services-gateways-customer-presentation.pptx
highend-srxseries-services-gateways-customer-presentation.pptx
elhadjcheikhdiop
 
Understanding the Tor Network and Exploring the Deep Web
Understanding the Tor Network and Exploring the Deep WebUnderstanding the Tor Network and Exploring the Deep Web
Understanding the Tor Network and Exploring the Deep Web
nabilajabin35
 
APNIC Update, presented at NZNOG 2025 by Terry Sweetser
APNIC Update, presented at NZNOG 2025 by Terry SweetserAPNIC Update, presented at NZNOG 2025 by Terry Sweetser
APNIC Update, presented at NZNOG 2025 by Terry Sweetser
APNIC
 
Perguntas dos animais - Slides ilustrados de múltipla escolha
Perguntas dos animais - Slides ilustrados de múltipla escolhaPerguntas dos animais - Slides ilustrados de múltipla escolha
Perguntas dos animais - Slides ilustrados de múltipla escolha
socaslev
 
(Hosting PHising Sites) for Cryptography and network security
(Hosting PHising Sites) for Cryptography and network security(Hosting PHising Sites) for Cryptography and network security
(Hosting PHising Sites) for Cryptography and network security
aluacharya169
 
Computers Networks Computers Networks Computers Networks
Computers Networks Computers Networks Computers NetworksComputers Networks Computers Networks Computers Networks
Computers Networks Computers Networks Computers Networks
Tito208863
 
White and Red Clean Car Business Pitch Presentation.pptx
White and Red Clean Car Business Pitch Presentation.pptxWhite and Red Clean Car Business Pitch Presentation.pptx
White and Red Clean Car Business Pitch Presentation.pptx
canumatown
 
5-Proses-proses Akuisisi Citra Digital.pptx
5-Proses-proses Akuisisi Citra Digital.pptx5-Proses-proses Akuisisi Citra Digital.pptx
5-Proses-proses Akuisisi Citra Digital.pptx
andani26
 
DNS Resolvers and Nameservers (in New Zealand)
DNS Resolvers and Nameservers (in New Zealand)DNS Resolvers and Nameservers (in New Zealand)
DNS Resolvers and Nameservers (in New Zealand)
APNIC
 
OSI TCP IP Protocol Layers description f
OSI TCP IP Protocol Layers description fOSI TCP IP Protocol Layers description f
OSI TCP IP Protocol Layers description f
cbr49917
 
Determining Glass is mechanical textile
Determining  Glass is mechanical textileDetermining  Glass is mechanical textile
Determining Glass is mechanical textile
Azizul Hakim
 
Mobile database for your company telemarketing or sms marketing campaigns. Fr...
Mobile database for your company telemarketing or sms marketing campaigns. Fr...Mobile database for your company telemarketing or sms marketing campaigns. Fr...
Mobile database for your company telemarketing or sms marketing campaigns. Fr...
DataProvider1
 
project_based_laaaaaaaaaaearning,kelompok 10.pptx
project_based_laaaaaaaaaaearning,kelompok 10.pptxproject_based_laaaaaaaaaaearning,kelompok 10.pptx
project_based_laaaaaaaaaaearning,kelompok 10.pptx
redzuriel13
 
Top Vancouver Green Business Ideas for 2025 Powered by 4GoodHosting
Top Vancouver Green Business Ideas for 2025 Powered by 4GoodHostingTop Vancouver Green Business Ideas for 2025 Powered by 4GoodHosting
Top Vancouver Green Business Ideas for 2025 Powered by 4GoodHosting
steve198109
 
Ad

Cacti Network Monitoring Networking Tools

  • 1. Network Monitoring & Management Using Cacti Network Startup Resource Center www.nsrc.org These materials are licensed under the Creative Commons Attribution-NonCommercial 4.0 International license (http://creativecommons.org/licenses/by-nc/4.0/)
  • 2. Network Monitoring Tools Availability Reliability Performance Cacti monitors the performance and usage of devices. Introduction
  • 3. Cacti: Uses RRDtool, PHP and stores data in MySQL. It supports the use of SNMP and graphics with RRDtool. “Cacti is a complete frontend to RRDTool, it stores all of the necessary information to create graphs and populate them with data in a MySQL database. The frontend is completely PHP driven. Along with being able to maintain Graphs, Data Sources, and Round Robin Archives in a database, cacti handles the data gathering. There is also SNMP support for those used to creating traffic graphs with MRTG.” Introduction
  • 4. • A tool to monitor, store and present network and system/server statistics • Designed around RRDTool with a special emphasis on the graphical interface • Almost all of Cacti's functionality can be configured via the Web. • You can find Cacti here: http://www.cacti.net/ Introduction
  • 5. • Round Robin Database for time series data storage • Command line based • From the author of MRTG • Made to be faster and more flexible • Includes CGI and Graphing tools, plus APIs • Solves the Historical Trends and Simple Interface problems as well as storage issues Find RRDtool here: http://oss.oetiker.ch/rrdtool/ Getting RRDtool
  • 7. 1. Cacti is written as a group of PHP scripts. 2. The key script is “poller.php”, which runs every 5 minutes (by default). It resides in /usr/share/cacti/site. 3. To work poller.php needs to be in /etc/cron.d/cacti like this: MAILTO=root */5 * * * * www-data php /usr/share/cacti/site/poller.php >/dev/null 2>/var/log/cacti/poller-error.log 4. Cacti uses RRDtool to create graphs for each device and data that is collected about that device. You can adjust all of this from within the Cacti web interface. 5. The RRD files are located in /var/lib/cacti/rra when cacti is installed from packages. General Description
  • 8. You can measure Availability, Load, Errors and more all with history. – Cacti can display your router and switch interfaces and their traffic, including all error traffic as well. – Cacti can measure drive capacity, CPU load (network h/w and servers) and much more. It can react to conditions and send notifications based on specified ranges. Graphics – Allows you to use all the functionality of rrdgraph to define graphics and automate how they are displayed. – Allows you to organize information in hierarchical tree structures. Data Sources – Permits you to utilize all the functions of rrdcreate and rrdupdate including defining several sources of information for each RRD file. Advantages
  • 9. Data Collection – Supports SNMP including the use of php-snmp or net-snmp – Update data sources via SNMP or define scripts to capture required data – cactid implements SNMP routines in C with multi-threading Templates – Create templates to reutilize graphics definitions, data and device sources Cacti Plugin Architecture – Extends Cacti functionality. Many, many plugins are available. Part of the default Cacti installation in Ubuntu version 12 and above. User Management – Manage users locally or via LDAP – Assign granular levels of authorization by user or groups of users. Advantages (continued)
  • 10. • Configuring Interfaces via the web interface is tedious • Use provided command-line scripts instead • Upgrading versions difficult if installed from source. Advice: For continuous use or large installations it is likely that you will be using scripts and tools to automate the configuration of Cacti. Disadvantages
  • 11. PART II Before we install Cacti we demonstrate how to use the interface to add and monitor some devices… Steps to Add and Monitor Devices
  • 12. Management -> Devices -> Add Specify device attributes – We’ll add an entry for our gateway router, gw.ws.nsrc.org* *Actual device name may be different. Adding a Device via the Web Interface
  • 14. • Host Template: ucd/net SNMP Host is recommended for servers to include disk definitions. • Choose SNMP version 2 for this workshop. • For “Downed Device Detection” we recommend either using Ping and SNMP, or just Ping. • Use “NetManage” for the “SNMP Community” string. SNMP access is a security issue: - Version 2 is not encrypted - Watch out for globally readable “public” communities - Be careful about who can access r/w communities. - Replace “xxxxxxx” with your local public r/o string Add Devices (3)
  • 15. For a router you may see a lot of potential network interfaces that are detected by SNMP. Your decision is to create graphs for all of these are not. Generally the answer is, “Yes” – Why? Add Devices (4)
  • 16. • Chose the “Create graphs for this host” • Under Graph Templates generally check the top box that chooses all the available graphs to be displayed. • Press Create. • You can change the default colors, but the predefined definitions generally work well. Create Graphics
  • 19. You’ll see this screen later when you are creating graphics for hosts vs. routers Create Graphics (4)
  • 20. • Place the new device in its proper location in your tree hierarchy. • Building your display hierarchy is your decision. Try drawing this out on paper first. –Under Management  Graph Trees select the Default Tree hierarchy (or, create one of your own). View the Graphics
  • 21. First, press “Add” if you want a new graphing tree: Second, name your tree, choose the sorting order (the author likes Natural Sorting and press “create”: Graphics Tree
  • 22. Third, add devices to your new tree: Once you click “Add” you can add “Headers” (separators), graphs or hosts. Now we'll add Hosts to our newly created graph tree: Graphics Tree
  • 23. • Our graphics tree just after the first two devices were added. • So far, graphics are empty – the first data can take up to 5 minutes to display. • Cacti graphs are stored on disk and updated using RRDTool via the poller.php script, which, by default, is run every five minutes using cron. Graphics Tree with Two Devices
  • 26. • There are a number of popular Cacti plugins, such as: - Settings - thold - PHP Weathermap • A good place to start is http://cactiusers.net/ and Google. • To send email to RT from Cacti via rt-mailgate you can use the Cacti “settings” plugin: http://docs.cacti.net/plugin:settings • Automate device and graph creation using available command-line scripts in /usr/share/cacti/cli, such as: - add_devices.php - add_graphs.php - add_tree.php Next Steps
  • 27. • Cacti is very flexible due to its use of templates. • Once you understand the concepts behind RRDTool, then how Cacti works should be (more or less) intuitive. • The visualization hierarchy of devices helps to organize and locate new devices quickly. • It is not easy to do a rediscover of devices. • To add lots of devices requires automation. Software such as Netdot, Netdisco, IPPlan, TIPP can help – as well as local scripts that update the Cacti back-end MySQL database directly. Conclusions
  • 28. • Cacti Web Site: http://www.cacti.net/ • Plugin Documentation http://docs.cacti.net/plugins • Cacti Discussion Group: http://forums.cacti.net/ • Cacti Users – Plugin Architecture Home http://cactiusers.org/ References
  • 29. Cacti Installation and Configuration Workshop Labs