[mrtg] mrtg Digest, Vol 39, Issue 9

MAHAJAN, BAPUSAHEB (BAPUSAHEB) bapusaheb.mahajan at alcatel-lucent.com
Thu Mar 18 06:20:39 CET 2010


Its only snmp issue . I means your snmp is not public ..plz confirm at switch 2650. and no need to create to new cfg file just add target in old cfg file ...with confirm snmp..

Bapu Mahajan



-----Original Message-----
From: mrtg-bounces+bapusaheb.mahajan=alcatel-lucent.com at lists.oetiker.ch [mailto:mrtg-bounces+bapusaheb.mahajan=alcatel-lucent.com at lists.oetiker.ch] On Behalf Of mrtg-request at lists.oetiker.ch
Sent: Thursday, March 18, 2010 6:02 AM
To: mrtg at lists.oetiker.ch
Subject: mrtg Digest, Vol 39, Issue 9

Send mrtg mailing list submissions to
	mrtg at lists.oetiker.ch

To subscribe or unsubscribe via the World Wide Web, visit
	https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
or, via email, send a message with subject or body 'help' to
	mrtg-request at lists.oetiker.ch

You can reach the person managing the list at
	mrtg-owner at lists.oetiker.ch

When replying, please edit your Subject line so it is more specific
than "Re: Contents of mrtg digest..."


Today's Topics:

   1. Re: Can't add any devices with cfgmaker (Mike Gideon)
   2. Re: Can't add any devices with cfgmaker (Lyle Giese)


----------------------------------------------------------------------

Message: 1
Date: Wed, 17 Mar 2010 16:33:19 -0700
From: "Mike Gideon" <mgideon at newstarfresh.com>
Subject: Re: [mrtg] Can't add any devices with cfgmaker
To: "Lyle Giese" <lyle at lcrcomputer.net>
Cc: mrtg at lists.oetiker.ch
Message-ID:
	<DF09AD870C03E34282E88D241388E8164B454D at nsmail2.newstarfresh.com>
Content-Type: text/plain; charset="us-ascii"

No. Interface 3 is not commented out.  That section refers to
192.191.191.21_3

 

### Interface 3 >> Descr: '3' | Name: '3' | Ip: '' | Eth:
'00-0d-9d-b5-13-7d' ###

Target[192.191.191.21_3]: 3:public at 192.191.191.21:

SetEnv[192.191.191.21_3]: MRTG_INT_IP="" MRTG_INT_DESCR="3"

 

But like I mentioned there aren't any 192.191.191.21_3 files.

 

Some of the interfaces are commented out.  Approximately half are.  I'm
guessing, those were not active when the config file was created.  

 

From: mrtg-bounces+mgideon=newstarfresh.com at lists.oetiker.ch
[mailto:mrtg-bounces+mgideon=newstarfresh.com at lists.oetiker.ch] On
Behalf Of Lyle Giese
Sent: Wednesday, March 17, 2010 4:25 PM
Cc: mrtg at lists.oetiker.ch
Subject: Re: [mrtg] Can't add any devices with cfgmaker

 

Mike Gideon wrote: 

Thanks Lyle,

I did  "cfgmaker --output /var/www/mrtg/192.191.191.21.cfg
public at 192.191.191.21"  and got the cfg file.  When I run indexmaker on
it "indexmaker /var/www/mrtg/192.191.191.21.cfg >
/var/www/mrtg/index2.html"

I get a page, but that has problems. It looks like it tried to create a
graph for each interface it found. It looks as if it tried to create a
page /var/www/mrtg/192.191.191.21_3.html, and  192.191.191.21_6.html etc
etc, but there aren't any 192.191.191.21_#.html files anywhere. The
hyperlink looks right http://myserver/mrtg/

192.191.191.21_3.html.  

 

Does it appear like I still don't have the cfgmaker right or is it
something with indexmaker?

 

 

 

Are there # symbols at the front of those lines in the config files?



 

What is a good way to organize many devices?  I was thinking of building
a cfg directory under the mrtg. It looks like each device will have many
associated html files and that could get complicated.  Then perhaps one
master page with a link to all the individual pages I've made with
indexmaker.  What did you do?

 

No, use rrdtool and Routers2.cgi and stop rebuilding those .png files
every 5 minutes.  Huge waste of CPU cycles and severely limits the
number of devices you can monitor using mrtg.

Lyle




 

 


Subject: Re: [mrtg] Can't add any devices with cfgmaker

 

Mike Gideon wrote: 

I just installed MRTG on Ubuntu.  

It seems to be working fine.  I added my local linux with

Cfgmaker public at localhost > /etc/mrtg.cfg

 

That is running just fine, updating every 5 minutes like it is supposed
to.  I want to add more devices now but I get an error.  I try 

Cfgmaker public at 192.191.191.21 > /etc/mrtgtry2.cfg

 

It runs a bit then tells me

--base: Get Device Info on public@/etc/mrtgtry2.cfg:

Error:

  can't resolve "/etc/mrtgtry2.cfg" to IP address

 at /usr/share/perl5/SNMP_util.pm line 426

SNMPWALK Problem for public@/etc/mrtgtry2.cfg::::::v4only

 at /usr/bin/cfgmaker line 861

WARNING: Skipping public@/etc/mrtgtry2.cfg: as no info could be
retrieved

 

I can run snmpwalk and get info back:

snmpwalk -Os -c public -v 1 192.191.191.21 system

sysDescr.0 = STRING: ProCurve J4899A Switch 2650, revision H.10.83, ROM
H.08.02 (/sw/code/build/fish(mkfs))

sysObjectID.0 = OID: enterprises.11.2.3.7.11.29

sysUpTime.0 = Timeticks: (1094649276) 126 days, 16:41:32.76

sysContact.0 = STRING: 

sysName.0 = STRING: ProCurve 2650

sysLocation.0 = STRING: Server Room

sysServices.0 = INTEGER: 74

 

Cfgmaker seems to want to replace the IP addr of the device with the
-output.  

 

Am I doing something simple wrong?

Thanks in advance.

 

Try:

cfgmaker public at 192.191.191.21 -output=/etc/mrtgtry2.cfg

cfgmaker thinks the second part is a second device to poll.

Lyle Giese
LCR Computer Services, Inc.

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20100317/f0bbc171/attachment-0001.htm 

------------------------------

Message: 2
Date: Wed, 17 Mar 2010 19:31:12 -0500
From: Lyle Giese <lyle at lcrcomputer.net>
Subject: Re: [mrtg] Can't add any devices with cfgmaker
To: Mrtg List <mrtg at lists.oetiker.ch>
Message-ID: <4BA17450.50202 at lcrcomputer.net>
Content-Type: text/plain; charset="iso-8859-1"

I am just guessing here as I can not tell enough about your
configuration as you have not posted it and you would need to post your
apache configs also.

In short, the mrtg process needs r/w access to the directories for these
files as it runs(the user it runs as via cron) and further apache needs
to have access to them and in apache's httpd.conf, you need to correctly
point it to the files mrtg is creating.

But I really recommend from what you are saying that you need to not do
native database and rateup and move immediately to rrdtool and
routers2.cgi.  It will make your life easier and you don't have to build
any html files to get to the graphs.  And the graphs will be created as
they are requested.

Lyle

Mike Gideon wrote:
>
> No. Interface 3 is not commented out.  That section refers to
> 192.191.191.21_3
>
>  
>
> ### Interface 3 >> Descr: '3' | Name: '3' | Ip: '' | Eth:
> '00-0d-9d-b5-13-7d' ###
>
> Target[192.191.191.21_3]: 3:public at 192.191.191.21:
>
> SetEnv[192.191.191.21_3]: MRTG_INT_IP="" MRTG_INT_DESCR="3"
>
>  
>
> But like I mentioned there aren't any 192.191.191.21_3 files.
>
>  
>
> Some of the interfaces are commented out.  Approximately half are. 
> I'm guessing, those were not active when the config file was created. 
>
>  
>
> *From:* mrtg-bounces+mgideon=newstarfresh.com at lists.oetiker.ch
> [mailto:mrtg-bounces+mgideon=newstarfresh.com at lists.oetiker.ch] *On
> Behalf Of *Lyle Giese
> *Sent:* Wednesday, March 17, 2010 4:25 PM
> *Cc:* mrtg at lists.oetiker.ch
> *Subject:* Re: [mrtg] Can't add any devices with cfgmaker
>
>  
>
> Mike Gideon wrote:
>
> Thanks Lyle,
>
> I did  "cfgmaker --output /var/www/mrtg/192.191.191.21.cfg 
> public at 192.191.191.21 <mailto:public at 192.191.191.21>"  and got the cfg
> file.  When I run indexmaker on it "indexmaker
> /var/www/mrtg/192.191.191.21.cfg > /var/www/mrtg/index2.html"
>
> I get a page, but that has problems. It looks like it tried to create
> a graph for each interface it found. It looks as if it tried to create
> a page /var/www/mrtg/192.191.191.21_3.html, and  192.191.191.21_6.html
> etc etc, but there aren't any 192.191.191.21_#.html files anywhere.
> The hyperlink looks right http://myserver/mrtg/
>
> 192.191.191.21_3.html. 
>
>  
>
> Does it appear like I still don't have the cfgmaker right or is it
> something with indexmaker?
>
>  
>
>  
>
>  
>
> Are there # symbols at the front of those lines in the config files?
>
>  
>
> What is a good way to organize many devices?  I was thinking of
> building a cfg directory under the mrtg. It looks like each device
> will have many associated html files and that could get complicated. 
> Then perhaps one master page with a link to all the individual pages
> I've made with indexmaker.  What did you do?
>
> * *
>
> No, use rrdtool and Routers2.cgi and stop rebuilding those .png files
> every 5 minutes.  Huge waste of CPU cycles and severely limits the
> number of devices you can monitor using mrtg.
>
> Lyle
>
>
> * *
>
> * *
>
>
> *Subject:* Re: [mrtg] Can't add any devices with cfgmaker
>
>  
>
> Mike Gideon wrote:
>
> I just installed MRTG on Ubuntu. 
>
> It seems to be working fine.  I added my local linux with
>
> Cfgmaker public at localhost > /etc/mrtg.cfg
>
>  
>
> That is running just fine, updating every 5 minutes like it is
> supposed to.  I want to add more devices now but I get an error.  I try
>
> Cfgmaker public at 192.191.191.21 <mailto:public at 192.191.191.21> >
> /etc/mrtgtry2.cfg
>
>  
>
> It runs a bit then tells me
>
> --base: Get Device Info on public@/etc/mrtgtry2.cfg:
> <mailto:public@/etc/mrtgtry2.cfg:>
>
> Error:
>
>   can't resolve "/etc/mrtgtry2.cfg" to IP address
>
>  at /usr/share/perl5/SNMP_util.pm line 426
>
> SNMPWALK Problem for public@/etc/mrtgtry2.cfg::::::v4only
> <mailto:public@/etc/mrtgtry2.cfg::::::v4only>
>
>  at /usr/bin/cfgmaker line 861
>
> WARNING: Skipping public@/etc/mrtgtry2.cfg:
> <mailto:public@/etc/mrtgtry2.cfg:> as no info could be retrieved
>
>  
>
> I can run snmpwalk and get info back:
>
> snmpwalk -Os -c public -v 1 192.191.191.21 system
>
> sysDescr.0 = STRING: ProCurve J4899A Switch 2650, revision H.10.83,
> ROM H.08.02 (/sw/code/build/fish(mkfs))
>
> sysObjectID.0 = OID: enterprises.11.2.3.7.11.29
>
> sysUpTime.0 = Timeticks: (1094649276) 126 days, 16:41:32.76
>
> sysContact.0 = STRING:
>
> sysName.0 = STRING: ProCurve 2650
>
> sysLocation.0 = STRING: Server Room
>
> sysServices.0 = INTEGER: 74
>
>  
>
> Cfgmaker seems to want to replace the IP addr of the device with the
> --output. 
>
>  
>
> Am I doing something simple wrong?
>
> Thanks in advance.
>
>  
>
> Try:
>
> cfgmaker public at 192.191.191.21 <mailto:public at 192.191.191.21>
> -output=/etc/mrtgtry2.cfg
>
> cfgmaker thinks the second part is a second device to poll.
>
> Lyle Giese
> LCR Computer Services, Inc.
>
>  
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20100317/04dd6bde/attachment.htm 

------------------------------

_______________________________________________
mrtg mailing list
mrtg at lists.oetiker.ch
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg


End of mrtg Digest, Vol 39, Issue 9
***********************************



More information about the mrtg mailing list