Operating System - Linux
1819805 Members
2892 Online
109607 Solutions
New Discussion

SNMP setup for MRTG on Red Hat 7

 
Teddy_2
Occasional Contributor

SNMP setup for MRTG on Red Hat 7

I would like to configure the MRTG for my Apache server. However, I don't know how to setup the SNMP. Anyone pls help. Thanks a lot.
1 REPLY 1
Pal Szabo_1
Valued Contributor

Re: SNMP setup for MRTG on Red Hat 7

Hi!

First of all, you should download
1. MRTG (http://ee-staff.ethz.ch/~oetiker/webtools/mrtg)
2. Apache (www.apache.org)
3. Mod-SNMP for apache (SNMP module for apache)
(http://www.simpleweb.org/software/packages/mod-snmp/)

And if you don't have, you should download perl, gd , gcc(for MRTG)

The apache compilation is straigtforward, and this page explains the SNMP module installation too.
(http://www.simpleweb.org/software/packages/mod-snmp/)

The MRTG installation is explained on this page too.
(http://ee-staff.ethz.ch/~oetiker/webtools/mrtg)

If your apache is running you
can query directly the SNMP variables with snmpwalk software.This is the part of cmu-snmp software.
(http://net-snmp.sourceforge.net/ or ucd-snmp-4.0.1.4.rpm)
You should try:
snmpwalk public

And you should see the apache
snmp variables, if it works correctly.

If you installed these softwares, you should set up MRTG config file (mrtg.cfg).
The easyest way is to use the
MRTG cfgmaker.This program generates the config file for you.
(http://ee-staff.ethz.ch/~oetiker/webtools/mrtg/cfgmaker.html)

You should try:
./cfgmaker
--global "WorkDir: /home/paul" --global "Options[_]: growright,bits" public@myhostname > mrtg.cfg

I hope, my answare help you.

Regards:
Paul