1828997 Members
2413 Online
109986 Solutions
New Discussion

MRTG Configuration..

 
pap
Respected Contributor

MRTG Configuration..

I need help to set up MRTG on my HP box. I will appreciate your expert help in this regard. I have installed the MRTG and related softwares, however I get some library error messages when I run it. Please help me if anybody has successfully implemened MRTG.

Thanks in advance.

-pap
"Winners don't do different things , they do things differently"
9 REPLIES 9
Anthony deRito
Respected Contributor

Re: MRTG Configuration..

I never was able to install MRTG on HP-UX. Don't remember all the issues.... our NT admins installed the NT version and it works like a champ....

pap
Respected Contributor

Re: MRTG Configuration..

Hi Anthony,
Great man......if it works fine on NT machine, can you help me where can I get the NT version of MRTG?

Thanks,

-pap
"Winners don't do different things , they do things differently"
Christopher Caldwell
Honored Contributor

Re: MRTG Configuration..

I'm running it on HP. What's the error message?
Anthony deRito
Respected Contributor

Re: MRTG Configuration..

pap
Respected Contributor

Re: MRTG Configuration..

when I run /usr/local/bin/mrtg /home/snicker.cfg

it gives follwing error.

Snicker.cfg is the config file created for one of our HP machine.

Can't locate package $VERSION for @MRTG_lib::ISA at /usr/local/bin/mrtg line 59
main::BEGIN() called at /usr/local/bin/../lib/mrtg2/MRTG_lib.pm line 59
eval {...} called at /usr/local/bin/../lib/mrtg2/MRTG_lib.pm line 59
ERROR: unable to open config file: /home/hpux/cfg/snicker.cfg



if possible, please provide me exact syntex to create config file for any machine, I want to monitor CPU usage, memory and other general resources.

One more thing I have installed following supported softwares on my machine to support MRTG.

ethereal 0.9.8 ethereal
freetype 2.1.2 freetype
gcc 3.2 gcc
gd 1.8.4 gd
gettext 0.11.5 gettext
gtk+ 1.2.10 gtk+
jpeg 6b jpeg
libiconv 1.8 libiconv
libpcap 0.7.1 libpcap
libpng 1.2.4 libpng
mrtg 2.9.20 mrtg
perl 5.8.0 perl
xpm 3.4k xpm
zlib 1.1.4 zlib



Thanks,
-pap
"Winners don't do different things , they do things differently"
Sridhar Bhaskarla
Honored Contributor

Re: MRTG Configuration..

Hi,

This is a sample configuration file I am using.

..............

WorkDir: /home/mrtg/html/data/everest
Target[cpu.us]:`remsh everest -l mrtguser cat /home/mrtg/bin/cpuus.log`
MaxBytes[cpu.us]: 150
Options[cpu.us]: gauge, nopercent
Title[cpu.us]: EVEREST CPU Usage
PageTop[cpu.us]:

EVEREST CPU (SYSTEM Vs USER>)



#WithPeak[cpu.us]: dwmy
YLegend[cpu.us]: CPU (USR vs SYS)
LegendI[cpu.us]: User
LegendO[cpu.us]: Sys
.............


In the above on "everest" I generate sar data into a file called /home/mrtg/bin/cpuus.log using a script called /home/mrtg/bin/get_sar.sh

#!/usr/bin/ksh

LOG=/home/mrtg/bin/cpuus.log
rm $LOG
for I in $(sar -u 2 5 | awk '/Average/ {print $2,$3}')
do
echo $I >> $LOG
done
echo 0 >> $LOG
echo 0 >> $LOG


I schedule get_sar.sh to run every 5mins starting at 3 min on everest.
I run "/home/mrtg/bin/mrtg /home/mrtg/bin/cfg/everest.cfg" every 5mins starting at 5 min on the mrtg server. This way I won't miss data on 'everest'. You can repeat the same procedure for any number of servers you have.

If your mrtg is not working, please post your email address and I can send my mrtg binaries to you. I compiled them and they are working fine.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
pap
Respected Contributor

Re: MRTG Configuration..

HI All,

Thanks for the prompt responses. However, I Just need to have fresh copy of MRTG if you have. because I think , I have corrupted version of MRTG. If you have installatble version of MRTG for HP_UX , please send me the copy at
piyush.prajapati@neustar.biz
, I will really appreciate your help.

Thanks,
-pap
"Winners don't do different things , they do things differently"
Christopher Caldwell
Honored Contributor

Re: MRTG Configuration..

MRTG is available here:
http://people.ee.ethz.ch/~oetiker/webtools/mrtg/pub/

You sound like you had a perl install problem (either base perl, or the dependencies for MRTG):
Can't locate package $VERSION for @MRTG_lib::ISA at /usr/local/bin/mrtg line 59

Did you move parts of mrtg around after you built it?
Sridhar Bhaskarla
Honored Contributor

Re: MRTG Configuration..

Hi,

I sent you the mrtg binaries. Let me know if it doesn't work.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try