You are on page 1of 21

Nagios & Cacti

Network monitoring and graphing

Randy Saeks, Network Administrator Northbrook / Glenview School District 30

Nagios vs Cacti
Nagios Cacti

Network Monitoring Text File Based TCP, UDP, SNMP, etc Web front-end Support for E-Mail and text message notication

Network Graphing SQL Database SNMP Web front-end Requires human notication

SNMP?
Simple Network Management Protocol Think of it as LDAP for a device OID - Object IDentier MIB - Management Information Base

Nagios
Monitor a device Monitor a service on a device Query via SNMP for specic data

What can you monitor?

Nagios - Devices

Is the device up and running? Uses the ping command Veries it is connected to the network and
reachable

Nagios - Services
WWW DHCP TCP / UDP custom ports (AFP - TCP 548) SNMP SMTP

Nagios - SNMP
Check for uptime Check if a printer is out of paper Check for any other SNMP value

An Example ...
Student File Server
Use ping to make sure it is up and running

Use a TCP service check to make sure TCP port 548 is open

One more ...


Lab Printer
Use ping to make sure it is up and running

TCP Check to make sure LPR Port (9100) is open

SNMP Check on OID for paper level

Live Example

Resources
Installing Nagios
http://homepage.mac.com/duling/halfdozen/Nagios-Howto-p1.html

Conguring Nagios
http://www.totkat.org/pages/nagios-conf.shtml

MIB Browser
http://www.ireasoning.com/download.shtml

MIBs
http://support.ipmonitor.com/snmp_center.aspx http://www.oidview.com/mibs/detail.html

Cacti
Collect and display data about a device Show trends and what is really happening Query via SNMP for specic data

What can you graph?


Bandwidth (total and 95th percentile) Disk Space on servers Wireless Clients E-Mail utilization Anything with an SNMP OID

Cacti - Templates
Pre-setup templates Community Templates Write your own

Cacti - SNMP
Check for Interface Statistics Graph Routers Core switch to other switches Check for any other SNMP value

An Example ...
Student File Server
Graph total diskspace

One more ...


Lab Printer
Graph Toner Levels

Graph when things are printed

Live Example

Resources
Installing Cacti
http://www.cacti.net/cactid_install.php

E-Mail me: rsaeks@district30.k12.il.us

MIB Browser
http://www.ireasoning.com/download.shtml

MIBs
http://support.ipmonitor.com/snmp_center.aspx http://www.oidview.com/mibs/detail.html

Questions?

You might also like