Going to eat your brains and gain your knowledge

by Stephen 1/8/2009 8:25:13 PM

Well they say it takes about 21 days to form or change a habit, so let me try to get into the habit of blogging on the magic three days a week. And just cause it gets posted after midnight doesnt mean I wasnt writing/debating/thinking about it on that day, but i will try to be as regular as a fiber rich diet.

This one is something I did recently, and the the mighty Kolbold asked me for something that could help monitor network traffic.

The first thing that I thought of was Cacti because it allows you to configure an snmp community on a switch, the get the data and graph it in a nice simple to view interface that can update quickly. Check out the screen shots on the cacti home page.

The quickest way I have found to deploy this has been with CentOS and then using a guide I found online at Karl's Place. This being a CentOS install a couple of steps while you start the install should be taken into account. If you have never installed CentOS before that is ok just keep a few things in mind. When installing choose custom and server install for packages. You want to install MySQL server, HTTP Server, PHP for web and MySQL, with the firewall and security area's be aware of what you are doing there, if you are going to use IPTables and SELinux make sure you know how they work. The rest of the packages are listed in the Karl's Place link.

After you have your system booted, make sure you allow access to your web site by removing

deny from all

from the /etc/httpd/conf/httpd.conf file.

Start the apache service:
service httpd start

Make it start automaticly
chkconfig httpd start

Start MySQL service
service mysqld start

Make it start automaticly
chkconfig mysqld on

After these services are installed and running is when I installed the DAG repository then I did the snmp install:
yum install snmp

then started snmp service
service snmpd start

and set it to automaticly start
chkconfig snmpd start

after that you can follow the rest of the instructions on the cacti install to install the database and create the DB user.

Also, I never set the crontab job to run the cacti script every five minutes. I wasnt using it that intensely and it did update my graphs afterwards.

I will try to do these steps again by friday and post some screen caps with how I configured some basics in Cacti, until then.

Currently rated 5.0 by 1 people

  • Currently 5/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Tags:

Administration

Powered by BlogEngine.NET 1.4.5.0
Theme by Mads Kristensen
Hacked by Stephen McGroarty
Content © Stephen McGroarty


About the author

Stephen Mcgroarty - Avatar Stephen McGroarty

I am a Microsoft Certified Professional with Windows 2003 Server. I have a firm understanding of Linux, Windows, and everything needed for both workstation and servers.

E-mail me Send mail

Calendar

<<  February 2012  >>
SuMoTuWeThFrSa
2930311234
567891011
12131415161718
19202122232425
26272829123
45678910

View posts in large calendar

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2012