LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   MRTG question (https://www.linuxquestions.org/questions/linux-networking-3/mrtg-question-4175584026/)

thomazp 07-07-2016 02:25 PM

MRTG question
 
I delay a little to accomplish installing MRTG to analyze my router(s) , but all graphs I generate , are with the same draw.
And are showing 0 Kb/s .
I don't know if I monitoring the wrong interface or similar mistake.
I tried using by command line, not inserting at the cron.
Can someone tell me what is wrong .
Thanks,

TB0ne 07-07-2016 03:07 PM

Quote:

Originally Posted by thomazp (Post 5572053)
I delay a little to accomplish installing MRTG to analyze my router(s) , but all graphs I generate , are with the same draw.
And are showing 0 Kb/s .
I don't know if I monitoring the wrong interface o similar mistake.
I tried using by command line, not inserting at the cron.
Can someone tell ehat is wrong .
Thanks,

No, because (as with your other threads about this same topic), you're not providing any useful details. All you've told us is you're using MRTG, and getting nothing on your graphs. No error messages, nothing about your configuration/setup, etc. We can't guess.

Habitual 07-07-2016 04:17 PM

Quote:

Originally Posted by thomazp (Post 5572053)
I don't know if I monitoring the wrong interface or similar mistake.

I have given you a tcpdump command string to monitor traffic on port 161...

Don't ask me where I gave it, it's there's 4 threads all stemming from your lack of understanding
of the basic client-server model in a computing environment.

I don't mean to be mean, but are you up to this task?
Try going through Centos Install and Configure MRTG for clues.

http://bfy.tw/6do1

thomazp 07-07-2016 04:22 PM

I will reply you two in 15 minutes .
Thanks.

thomazp 07-07-2016 04:55 PM

TB0ne
No error messages appear since 2 days ago. All previous are uppon SNMP connection.
I have installed mrtg using yum command.

Habitual:
I will read the info you sent, but I don`t think is an installation issue.
The reason:
The graphs are been generated, but they have an empty content.

Thanks ,

TB0ne 07-07-2016 06:03 PM

Quote:

Originally Posted by thomazp (Post 5572167)
TB0ne
No error messages appear since 2 days ago. All previous are uppon SNMP connection.
I have installed mrtg using yum command.

So how about ACTUALLY POSTING THOSE ERROR MESSAGES, as you've been asked to?
Quote:

Habitual:
I will read the info you sent, but I don`t think is an installation issue. The reason: The graphs are been generated, but they have an empty content.
So let's sum up:
  • Things aren't working
  • You won't tell us the error(s) you're seeing
  • You just re-stated the problem you FIRST POSTED
  • And somehow...there aren't any errors in installation?
You need to go back, and start from scratch. Remove EVERYTHING you installed, delete the directories and start over. Or go to your OTHER two threads and actually read/follow/understand what you're being told. Or get someone else at your office to do this, since it appears you're in over your head.

thomazp 07-07-2016 06:24 PM

Your response
 
I am not sure of your tip: Removing e reinstalling. This is a Windows solution, not UNIX .
But even so,I Am not there. Here is 8pm and I will be back only tomorrow morning
The MRTG runs without error and it makes some graphs, but are empty today and I must do this task in about 10 days .
Thanks,

TB0ne 07-07-2016 08:43 PM

Quote:

Originally Posted by thomazp (Post 5572201)
I am not sure of your tip: Removing e reinstalling. This is a Windows solution, not UNIX .

Right...and this is suggested because you have obviously not followed the installation instructions, tips, documentation, and advice you've been given. So much is probably wrong with your installation, it will be FASTER to do it over, correctly, from scratch.
Quote:

But even so,I Am not there. Here is 8pm and I will be back only tomorrow morning
The MRTG runs without error and it makes some graphs, but are empty today and I must do this task in about 10 days .
Then you'd better start paying attention to what you're told, read the documentation, and perform the installation/configuration CORRECTLY. Answer questions when you're asked. You *STILL* haven't given us any real, solid error(s) that you say you're seeing. You said you saw them 2 days ago...do you expect us to GUESS???

Habitual 07-08-2016 04:52 AM

Quote:

Originally Posted by thomazp (Post 5572201)
I am not sure of your tip: Removing e reinstalling. This is a Windows solution, not UNIX .
But even so,I Am not there. Here is 8pm and I will be back only tomorrow morning
The MRTG runs without error and it makes some graphs, but are empty today and I must do this task in about 10 days .
Thanks,

What's Windows?
7 posts to find out it's Windows?

Are you sure it's Windows? You're not sure of anything, IMO.

"Unix"? You're all over the map.
"tomorrow morning"? Fries with that?

So you have 09 days to grind it out.

I'm done trying to help you.
You don't answer questions.
You don't know what the software is doing.
You don't know what you are doing.

I have to stop myself here, If I don't it will reflect poorly for Jeremy and LQ.
If it were me, I'd check the snmp data communication with an snmpwalk.

End Transmission.
Nothing personal.

thomazp 07-08-2016 12:00 PM

Answers
 
The snmpwalk are working in my two communities like I said before.
There are no erros. The application rans fine, but the graphs are with 0Kb/s.
Any more question ?






Quote:

Originally Posted by Habitual (Post 5572410)
What's Windows?
7 posts to find out it's Windows?

Are you sure it's Windows? You're not sure of anything, IMO.

"Unix"? You're all over the map.
"tomorrow morning"? Fries with that?

So you have 09 days to grind it out.

I'm done trying to help you.
You don't answer questions.
You don't know what the software is doing.
You don't know what you are doing.

I have to stop myself here, If I don't it will reflect poorly for Jeremy and LQ.
If it were me, I'd check the snmp data communication with an snmpwalk.

End Transmission.
Nothing personal.


TB0ne 07-08-2016 01:13 PM

Quote:

Originally Posted by thomazp (Post 5572604)
The snmpwalk are working in my two communities like I said before.
There are no erros. The application rans fine, but the graphs are with 0Kb/s.
Any more question ?

Same things you posted previously...yet you STILL don't post the errors you SAY you saw 2 days ago, the results of the MRTG config file test (that we had to look up and spoon-feed you), what command you ran to generate the cfg file with cfgmaker, etc.

I'm done trying to get you to listen and answer questions too. Good luck...maybe there's someone else at your company who can do this for you.

thomazp 07-08-2016 03:35 PM

Hi Mr Josiah wrote:

wjerikson@hampshire.edu



What I mean is, they will always be 0 on the first poll, because it's polling counters. It saves data locally as to what was in the counters. So you have to put it in cron to get actual data. Or run it manually every five minutes or so all day, which sounds un-fun :)
��� -Josiah

I will do it on Monday. If it works, I will close this thread.
Thanks everyone

Habitual 07-11-2016 05:46 AM

A little birdie tells me you'll need http://www.cronsandbox.com/

thomazp 07-11-2016 09:54 AM

I put ]
*/5 * * * * mrtg env LANG=C /usr/bin/mrtg /root/mrtg_netcomro.cfg
But only runs when I type by hand.
What is wrong ?
Thanks

TB0ne 07-11-2016 10:05 AM

Quote:

Originally Posted by thomazp (Post 5574117)
I put ]
*/5 * * * * mrtg env LANG=C /usr/bin/mrtg /root/mrtg_netcomro.cfg
But only runs when I type by hand.
What is wrong ?
Thanks

Why aren't you asking "Mr Josiah" what's wrong??? You were spoon-fed instructions a WHILE back...did you bother to READ THEM???? AGAIN:
http://oss.oetiker.ch/mrtg/doc/mrtg-unix-guide.en.html

There is a WRITTEN EXAMPLE of what to put in cron, and it sure doesn't match what you have. If you can't read/understand/follow simple instructions, there's no point in posting questions. Installing and configuring mrtg should take about 30 minutes, at most. You've been at it for WEEKS now...because you're not reading or following the instructions, taking advice, or answering questions. Please, get someone else at your company, who actually can DO THOSE THINGS, to install this. Or get "Mr Josiah" to do it...

thomazp 07-11-2016 12:00 PM

Quote:

Originally Posted by TB0ne (Post 5574125)
Why aren't you asking "Mr Josiah" what's wrong??? You were spoon-fed instructions a WHILE back...did you bother to READ THEM???? AGAIN:
http://oss.oetiker.ch/mrtg/doc/mrtg-unix-guide.en.html

There is a WRITTEN EXAMPLE of what to put in cron, and it sure doesn't match what you have. If you can't read/understand/follow simple instructions, there's no point in posting questions. Installing and configuring mrtg should take about 30 minutes, at most. You've been at it for WEEKS now...because you're not reading or following the instructions, taking advice, or answering questions. Please, get someone else at your company, who actually can DO THOSE THINGS, to install this. Or get "Mr Josiah" to do it...

I inserted in /etc/init.d and create the mrtg file w/ this content:
#! /bin/sh
cd /usr/local/mrtg-2.17.4/bin && ./mrtg --user=mrtg-user \
/home/httpd/mrtg/mrtg.cfg --logging /var/log/mrtg.log
Changed to executable there.
What else ?
Thanks,

TB0ne 07-11-2016 12:32 PM

Quote:

Originally Posted by thomazp (Post 5574175)
I inserted in /etc/init.d and create the mrtg file w/ this content:
#! /bin/sh
cd /usr/local/mrtg-2.17.4/bin && ./mrtg --user=mrtg-user \
/home/httpd/mrtg/mrtg.cfg --logging /var/log/mrtg.log
Changed to executable there.What else?

Are you seriously unable to read or understand instructions???

You ask about a cron job, and post something that is TOTALLY INCORRECT, despite being spoon-fed the exact documentation (WITH EXAMPLES) that you can use. You get handed the same documentation AGAIN, then post SOMETHING TOTALLY DIFFERENT than what you originally mangled.

The instructions and documentation are clear, and you've been spoon-fed them twice. Either you can read and understand them or you can't....and it seems like you can't. AGAIN...there is an EXAMPLE CRON LINE in the documentation...are you unable to copy/paste it?

thomazp 07-11-2016 12:39 PM

I noticed The problem ,
The path /usr/local/mrtg* doesn't exist. And searching There isn't mrtg* below this location.
Thanks

thomazp 07-11-2016 12:41 PM

Continuing: I got this script and this info in this site.
www.pantz.org .

TB0ne 07-11-2016 12:50 PM

Quote:

Originally Posted by thomazp (Post 5574197)
I noticed The problem, The path /usr/local/mrtg* doesn't exist. And searching There isn't mrtg* below this location.

Right...because YOU installed it somewhere...they even TELL YOU in the documentation to replace the path with your own. Again, are you unable to read/follow/understand instructions?
Quote:

Originally Posted by thomazp
Continuing: I got this script and this info in this site.

"this site" meaning WHAT??? What 'script'??? Are you talking about the init.d script, which is AGAIN, NOT what you asked about before, when posting the badly mangled CRON job??? Put it in cron like pretty much everyone else does. Copying/pasting doesn't get much simpler....you have taken 30 minutes of EASY WORK, and turned it into this huge ordeal, apparently because you're unable to follow instructions.

AGAIN..you are in WAY over your head. If you're unable to perform this very simple task, you need to be honest with your boss, and TELL THEM YOU CAN'T DO IT.

thomazp 07-11-2016 01:10 PM

OK, so where is the script you are saying?

TB0ne 07-11-2016 01:22 PM

Quote:

Originally Posted by thomazp (Post 5574218)
OK, so where is the script you are saying?

AGAIN, SINCE YOU APPEAR UNABLE TO UNDERSTAND THINGS:
  • READ the LQ Rules..do NOT EDIT your posts, as you did by adding the "www.pantz.org" link to your last post
  • NOTHING in that link has anything to do with mrtg..why even post it?
  • The MRTG documentation that you have been spoon-fed TWICE has example cron jobs. If you're too lazy to even look at what you've been handed, or you can't understand it, that's nothing anyone here can help you with
AGAIN...get someone else at your company, who has SOME IDEA what the're doing, and who can follow simple instructions, to set this up. Otherwise, I'd suggest you email "Mr Josiah" again, and get him to help you, and stop posting here.

thomazp 07-11-2016 02:46 PM

If it's easy, why don't you put here ?

TB0ne 07-11-2016 03:11 PM

Quote:

Originally Posted by thomazp (Post 5574270)
If it's easy, why don't you put here ?

Because I'm tired of trying to babysit you. If you're so lazy you can't click a web link you've been spoon-fed TWICE, and show SOME EFFORT OF YOUR OWN, I'm not going to make it easier for you.

You're lazy; you've shown no effort of your own to answer questions, try things, or even apply what you've been told. The answers are right in front of you...aside from typing things in for you, there's nothing else anyone here can do to help you. You're doing a job you're not qualified to do...sorry if it sounds nasty, but again...setting up MRTG is, at most, a 30 minute job. There is ONLY ONE PAGE of instructions, that cover installation from start to finish...yet that's too much for you.

If you can't pull up the web page and do a simple find for the word "cron" on it (which hands you an example you can copy and paste), there's nothing else we can do. Get "Mr Josiah" to help you.

thomazp 07-11-2016 03:13 PM

OK, you can reply experts only.
Bye

TB0ne 07-11-2016 03:26 PM

Quote:

Originally Posted by thomazp (Post 5574282)
OK, you can reply experts only. Bye

An 'expert' isn't required to read a line on a web page. You don't want to...there's nothing else anyone here can do for you. Get someone who can follow simple instructions at your company to do this.

Habitual 07-12-2016 05:30 AM

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

jnihil 07-12-2016 11:59 AM

4 threads on the same inane question?
To think someone is paying this fella...

thomazp 07-12-2016 12:23 PM

There is an way to have necessary attention. Maybe someone had this problem.

TB0ne 07-12-2016 12:26 PM

Quote:

Originally Posted by thomazp (Post 5574738)
There is an way to have necessary attention. Maybe someone had this problem.

Nope, because pretty much everyone else finds it easy to follow a one page, step-by-step installation guide, without having to be spoon-fed each and every step. You're having problems because you don't read (or UNDERSTAND) the instructions, and won't do things, even after having numerous people tell you to. Anyone else would look at the clear examples, and think "Gee..what I'm putting it is NOTHING like this..maybe I'll try what the author of the program suggests..." And their problem goes away...because it IS NOT a problem with mrtg, Linux, Cron, or anything else...it's a problem with you.

You don't listen; you don't learn.


All times are GMT -5. The time now is 03:35 AM.