LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-26-2009, 09:01 AM   #1
libyano
LQ Newbie
 
Registered: Jul 2009
Posts: 2

Rep: Reputation: 0
MRTG - issue


hi ...

i follow the steps to install MRTG ...

and this error appear to me

[root@41 mrtg]# env LANG=C /usr/bin/mrtg mrtg.cfg
[root@41 mrtg]# [root@41 mrtg]# env LANG=C /usr/bin/mrtg mrtg.cfg
Sunday, 26 July 2009 at 15:44: ERROR: Target[idc-c06-montaha1][_IN_] ' $target->[0]{$mode} ' did not eval into defined data
-bash: [root@41: command not found
Sunday, 26 July 2009 at 15:44: ERROR: Target[idc-c06-montaha1][_OUT_] ' $target->[0]{$mode} ' did not eval into defined data[rhernet1/0/23' Sunday, 26 July 2009 at 15:44: WARNING: Could not match host:'lttidc@192.168.95.255' ref:'Descr' key:'GigabitEt
-bash: Sunday,: command not found
[root@41 mrtg]# Sunday, 26 July 2009 at 15:44: ERROR: Target[idc-c06-montaha1][_IN_] ' $target->[0]{$mode} ' did not eval into defined data
-bash: Sunday,: command not found
[root@41 mrtg]# Sunday, 26 July 2009 at 15:44: ERROR: Target[idc-c06-montaha1][_OUT_] ' $target->[0]{$mode} ' did not eval into defined data


i do not know what is wrong here can anyone help me with this?

my linux is RHEL 5.0

Last edited by libyano; 07-27-2009 at 03:49 AM.
 
Old 07-26-2009, 02:47 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486

Rep: Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635
Welcome to LQ.

Googling .. MRTG linux ..
will show a couple of install guides in the first hits
http://www.google.com/search?hl=en&q...earch&aq=f&oq=

http://www.cyberciti.biz/nixcraft/li...features/mrtg/

http://oss.oetiker.ch/mrtg/doc/mrtg-unix-guide.en.html

.....

Last edited by knudfl; 07-28-2009 at 08:17 AM.
 
Old 07-27-2009, 12:49 AM   #3
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
can you post your mrtg.cfg because there are no clear idea what you have defined in the Traget
 
Old 07-27-2009, 08:14 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 CentOS7.9 + 50+ other Linux OS, for test only.
Posts: 17,486

Rep: Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635Reputation: 3635
Using CentOS 5.2 = Redhat EL5.
I am sorry, your command may be correct.

I did : # yum install mrtg
and when doing the command 'mrtg' , the reply is :
Quote:
ERROR: Mrtg will most likely not work properly when the environment
variable LANG is set to UTF-8. Please run mrtg in an environment
where this is not the case. Try the following command to start:

env LANG=C /usr/bin/mrtg
And the reply from 'env LANG=C /usr/bin/mrtg' is
Quote:
Usage: mrtg <config-file>

mrtg-2.14.5 - Multi Router Traffic Grapher

Copyright 1995-2006 by Tobias Oetiker
Licensed under the Gnu GPL.

If you want to know more about this tool, you might want
to read the docs. You can find everything on the
mrtg website:

http://oss.oetiker.ch/mrtg/
And I guess, you will find in the documentation,
what <config-file> means.

The file 'mrtg.cfg' is located in /etc/mrtg/
A copy is attached.
Attached Files
File Type: txt mrtg.cfg.txt (820 Bytes, 42 views)
 
Old 12-12-2009, 04:30 PM   #5
dine
LQ Newbie
 
Registered: Oct 2009
Posts: 4

Rep: Reputation: 0
hi,
how to give the htpasswd in mrtg for rhel 5

with regards,
dineh..
 
0 members found this post helpful.
Old 12-12-2009, 04:44 PM   #6
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Try the links above.

You can also look here:

http://www.cyberciti.biz/nixcraft/li...features/mrtg/

And it's impolite to hijack other people's threads (which is what you, probably unintentionally, did)
 
  


Reply

Tags
mrtg


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
MRTG Issue deibertine Linux - Newbie 1 06-23-2009 05:57 PM
Issue During MRTG Installation???/ ajeetraina Linux - Server 0 06-02-2008 07:47 AM
MRTG Graph Issue predatorz Linux - Software 3 10-06-2007 09:01 PM
how to deal with MRTG issue cnhawk386 Linux - Newbie 1 08-20-2007 03:46 AM
MRTG Issue of wierdness.... RaelOM Linux - Software 1 02-21-2005 09:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration