You are on page 1of 21
Nagios & Cacti Network monitoring and graphing Randy Saeks, Network Administrator Northbrook / Glenview School District
Nagios & Cacti
Network monitoring and graphing
Randy Saeks, Network Administrator
Northbrook / Glenview School District 30
Cacti Nagios • Requires human notification • Web front-end • SNMP • SQL Database • Network
Cacti
Nagios
• Requires human
notification
• Web front-end
• SNMP
• SQL Database
• Network Graphing
• Suppor t for E-Mail and
text message notification
• Web front-end
• TCP, UDP, SNMP, etc
Text File Based
• Network Monitoring
Nagios vs Cacti
SNMP? • “Simple” Network Management Protocol • Think of it as LDAP for a device •
SNMP?
• “Simple” Network Management Protocol
• Think of it as LDAP for a device
• OID - Object IDentifier
• MIB - Management Information Base
Nagios • Monitor a device • Monitor a ser vice on a device • Quer y
Nagios
• Monitor a device
• Monitor a ser vice on a device
• Quer y via SNMP for specific data
What can you monitor?
What can you monitor?
• Is the device up and running? • Uses the ping command • Verifies it is
• Is the device up and running?
• Uses the ping command
• Verifies it is connected to the network and
reachable
Nagios - Devices
Nagios - Ser vices • WWW • DHCP • TCP / UDP custom por ts (AFP
Nagios - Ser vices
• WWW
• DHCP
• TCP / UDP custom por ts (AFP - TCP 548)
• SNMP
• SMTP
Nagios - SNMP • Check for uptime • Check if a printer is out of paper
Nagios - SNMP
• Check for uptime
• Check if a printer is out of paper
• Check for any other SNMP value
An Example ... Student File Ser ver Use ping to make sure it is up and
An Example ...
Student File Ser ver
Use ping to make sure
it is up and running
Use a TCP ser vice
check to make sure
TCP por t 548 is open
One more ... Lab Printer Use ping to make sure it is up and running TCP
One more ...
Lab Printer
Use ping to make sure it is up and running
TCP Check to make sure
LPR Por t (9100) is open
SNMP Check on OID for
paper level
Live Example
Live Example
Resources Installing Nagios http://homepage.mac.com/duling/halfdozen/Nagios-Howto-p1.html MIB Browser http://www.ireasoning.com/download.shtml http://support.ipmonitor.com/snmp_center.aspx MIBs http://www.oidview.com/mibs/detail.html http://www.totkat.org/pages/nagios-conf.shtml Configuring Nagios
Resources
Installing Nagios
http://homepage.mac.com/duling/halfdozen/Nagios-Howto-p1.html
MIB Browser
http://www.ireasoning.com/download.shtml
http://support.ipmonitor.com/snmp_center.aspx
MIBs
http://www.oidview.com/mibs/detail.html
http://www.totkat.org/pages/nagios-conf.shtml
Configuring Nagios
Cacti • Collect and display data about a device • Show trends and what is really
Cacti
• Collect and display data about a device
• Show trends and what is really happening
• Quer y via SNMP for specific data
What can you graph? • Bandwidth (total and 95th percentile) • Disk Space on ser vers
What can you graph?
• Bandwidth (total and 95th percentile)
• Disk Space on ser vers
• Wireless Clients
• E-Mail utilization
• Anything with an SNMP OID
• Pre-setup templates • Community Templates • Write your own Cacti - Templates
• Pre-setup templates
• Community Templates
• Write your own
Cacti - Templates
Cacti - SNMP • Check for Interface Statistics • Graph Routers • Core switch to other
Cacti - SNMP
• Check for Interface Statistics
• Graph Routers
• Core switch to other switches
• Check for any other SNMP value
An Example ... Student File Ser ver Graph total diskspace
An Example ...
Student File Ser ver
Graph total diskspace
One more ... Lab Printer Graph Toner Levels Graph when things are printed
One more ...
Lab Printer
Graph Toner Levels
Graph when things are
printed
Live Example
Live Example
Resources Installing Cacti http://www.cacti.net/cactid_install.php MIB Browser http://www.ireasoning.com/download.shtml http://support.ipmonitor.com/snmp_center.aspx MIBs http://www.oidview.com/mibs/detail.html E-Mail me: rsaeks@district30.k12.il.us
Resources
Installing Cacti
http://www.cacti.net/cactid_install.php
MIB Browser
http://www.ireasoning.com/download.shtml
http://support.ipmonitor.com/snmp_center.aspx
MIBs
http://www.oidview.com/mibs/detail.html
E-Mail me: rsaeks@district30.k12.il.us
Questions?
Questions?