[mrtg] Re: Plotting graph in mrtg using snmpcollect data

Paul C. Williamson pwilliamson at mandtbank.com
Thu Nov 15 17:31:20 MET 2001


That is for the one that is not working.
Send the config that is supposedly getting it's data from NNM.

Because if it's configured like this one, mrtg is not 
talking to OV at all, but directly to the device in question.

Anyway, are you able to do an snmpwalk of this box?
Can you do an snmpget of each of those OIDs from 
the command line?

It may have something to do with the . in the Workdir.  I don't 
know if mrtg can deal with hidden directories, although it may.
Also, I'd be suspicious of the double quotes in the Title and 
PageTop descriptions.

Paul

>>> "shiva yadav" <shiva_yadav at hotmail.com> 11/15/01 09:06PM >>>
If u see at the fist mail i had attatched the config file.

anyway :-

 cpu.cfg:- config file

   WorkDir: /home/nankahatela/.nanka/mrtg
   IconDir: ../

   # Cpu Utilization

   Target[ntiis_cpu]:
.1.3.6.1.4.1.232.11.2.3.1.1.2.0&.1.3.6.1.4.1.232.11.2.3.1.1.2.0:Salwit at 10.0.
200.182
   Title[ntiis_cpu]: Cyquator Shared "NTIIS" Cpu utilization
   MaxBytes[ntiis_cpu]:100
   PageTop[ntiis_cpu]: <H1> Cyquator Shared "NTIIS" Cpu utilization %</H1>
   Unscaled[ntiis_cpu]: ymwd
   ShortLegend[ntiis_cpu]: %
   XSize[ntiis_cpu]: 380
  YSize[ntiis_cpu]: 100
  YLegend[ntiis_cpu]: CPU Usage
  Legend1[ntiis_cpu]: CPU Utilization in %
  #Legend2[ntiis_cpu]:
  #Legend3[ntiis_cpu]:
  #Legend4[ntiis_cpu]:
  LegendI[ntiis_cpu]: usage
  LegendO[ntiis_cpu]:
  Options[ntiis_cpu]: gauge, growright

Regards
Shiva.
***********





----- Original Message -----
From: "Paul C. Williamson" <pwilliamson at mandtbank.com>
To: <shiva_yadav at hotmail.com>; <mrtg at list.ee.ethz.ch>
Sent: Thursday, November 15, 2001 09:52
Subject: Re: [mrtg] Re: Plotting graph in mrtg using snmpcollect data


WHAT DOES THE TARGET LINE LOOK LIKE IN THE CONFIG FILE?

Sorry for the shouting, but you need to post this
before anyone can help you.

Paul

>>> "shiva yadav" <shiva_yadav at hotmail.com> 11/15/01 08:22PM >>>
Hi,

Mrtg plot the graph using snmpcollect data which nnm collect in snmpcollect
directory.

So mrtg is pointing to snmpcollect data & getting the value. Insteady of
polling indugually.

NNM is polling, collecting the data in snmpcollect director & mrtg is
pointing to snmpcollect.

Regards
Shiva.
*********

----- Original Message -----
From: "Paul C. Williamson" <pwilliamson at mandtbank.com>
To: <shiva_yadav at hotmail.com>; <mrtg at list.ee.ethz.ch>
Sent: Thursday, November 15, 2001 08:57
Subject: [mrtg] Re: Plotting graph in mrtg using snmpcollect data


>
> So, as I asked before...HOW does mrtg plot the data?
>
> How is mrtg getting the data in the .log file?  What is it polling
> on the OV side to get the data?  From the looks of it, MRTG
> is trying to collect the data as normal.  What is the target
> line of the existing cfg that works correctly?
>
> Paul
>
> >>> "shiva yadav" <shiva_yadav at hotmail.com> 11/15/01 07:23PM >>>
> Hi ,
>
> I did not received your previous mail.
>
> anyway :-
>
> We have integrated NNM with mrtg so mrtg does not induvidually polls the
> target system. NNM polls the system & collect the data & then mtrg plots
it.
>
> We have sucessfully  able to plot the graph for cisco interface, but we
are
> not able to plot for system cpu.
>
> Following  are the errors  :-
>
> Error: - root at bbycyqsip:perl mrtg cpu.cfg
>  Can't locate object method "new" via package "IO::Socket::INET" at
> /usr/local/mr
>   tg-2/lib/mrtg2/SNMP_Session.pm line 523.
>   root at bbycyqsip
>
> If u can help me to solve the problem.
>
> Your any more details pls let us know.
>
> Regards
> Shiva.
> ***********
>
>
> ----- Original Message -----
> From: "Paul C. Williamson" <pwilliamson at mandtbank.com>
> To: <shiva_yadav at hotmail.com>; <mrtg at list.ee.ethz.ch>
> Sent: Thursday, November 15, 2001 07:19
> Subject: [mrtg] Re: Plotting graph in mrtg using snmpcollect data
>
>
> >
> > Please stop posting the same question over and over again.  If you don't
> get an answer, it means nobody knows or hasn't had the time to answer.
> >
> > What is ovmrtg?  I asked that before, and didn't get an answer.  I'm
> guessing you are using OpenView, and somehow mrtg is tied into OpenView.
Is
> this correct?
> > Otherwise, I have no idea what ovmrtg is.  Last I checked, OpenView and
> MRTG don't have any hooks to each other.
> >
> > How does the data get from NNM from MRTG?  Did you write a custom
script?
> I suspect that mrtg is collecting the data separately from NNM.  Where is
> the error popping up?  What happens when you run mrtg from the command
line
> like:
> >
> > perl mrtg cpu.cfg
> >
> > It should run ok with no errors.  Start with that and come back with the
> results.
> >
> > Paul
> > >>> "shiva yadav" <shiva_yadav at hotmail.com> 11/15/01 04:45 AM >>>
> > Hi,
> >
> >   We are facing problem in plotting the graph in ovmrtg.
> >
> >   We have integrated Network Node Mamagement (NNM ) with mrtg for
plotting
> the graph.
> >
> >   So nnm snmpcollect collects the  data & mrtg plots it.
> >
> >   Note that we are able to plot the graph in mrtg using snmpcollect data
> for switchs & routers interface, but now we want to even plot the mrtg
graph
> for system cpu, swap &  memory.
> >
> >   Problem :- snmpcollect is collecting  the data  for system cpu, swap,
> memory using Compaq Inside manager MIBS, but we are not able to plot it in
> MRTG
> >
> >   O/S :- Solaris 2.6
> >
> >   cpu.cfg:- config file
> >
> >   WorkDir: /home/nankahatela/.nanka/mrtg
> >   IconDir: ../
> >
> >   # Cpu Utilization
> >
> >   Target[ntiis_cpu]:
>
.1.3.6.1.4.1.232.11.2.3.1.1.2.0&.1.3.6.1.4.1.232.11.2.3.1.1.2.0:Salwit at 10.0.
> 200.182
> >   Title[ntiis_cpu]: Cyquator Shared "NTIIS" Cpu utilization
> >   MaxBytes[ntiis_cpu]:100
> >   PageTop[ntiis_cpu]: <H1> Cyquator Shared "NTIIS" Cpu utilization
%</H1>
> >   Unscaled[ntiis_cpu]: ymwd
> >   ShortLegend[ntiis_cpu]: %
> >   XSize[ntiis_cpu]: 380
> >   YSize[ntiis_cpu]: 100
> >   YLegend[ntiis_cpu]: CPU Usage
> >   Legend1[ntiis_cpu]: CPU Utilization in %
> >   #Legend2[ntiis_cpu]:
> >   #Legend3[ntiis_cpu]:
> >   #Legend4[ntiis_cpu]:
> >   LegendI[ntiis_cpu]: usage
> >   LegendO[ntiis_cpu]:
> >   Options[ntiis_cpu]: gauge, growright
> >
> >   Error: - root at bbycyqsip:perl mrtg cpu.cfg
> >   Can't locate object method "new" via package "IO::Socket::INET" at
> /usr/local/mr
> >   tg-2/lib/mrtg2/SNMP_Session.pm line 523.
> >   root at bbycyqsip:
> >
> >
> >   Can someone help us on this problem.
> >
> >   Regards
> >   Shiva.
> >   *********
> >
> >
> > --
> > Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe > >
Archive     http://www.ee.ethz.ch/~slist/mrtg 
> > FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org 
> > WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi 
> >
> >
> >
> > --
> > Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe > >
Archive     http://www.ee.ethz.ch/~slist/mrtg 
> > FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org 
> > WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi 
> >
> >
>
> --
> Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe 
> Archive     http://www.ee.ethz.ch/~slist/mrtg 
> FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org 
> WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi 
>
>


--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list