Cheshire Cat Computing

Software support and information
It is currently Fri Jul 20, 2018 4:38 am

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 28 posts ]  Go to page Previous  1, 2, 3  Next
Author Message
PostPosted: Wed Oct 28, 2009 9:41 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
Generally speaking, it is better to use the UNIX-style of slash even under Windows, since Perl automagically translates this, and you don't get problems where \n is treated as a newline.

There's always the possibility as wel that c:\mrtg\wwwroot doesn't exist on the machine, or that it is not writeable by the MRTG process...

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile Send private message  
 
PostPosted: Thu Dec 15, 2011 12:07 am 
Offline
User

Joined: Thu Dec 15, 2011 12:02 am
Posts: 3
hi im having a bit of a problem (sorry for hi jacking this thread )
i used dmcdonald cfg and created a new .cfg for mrtg and now my routers2 is not creating the .rrds i.e. no graphs on the webpage. the web root is writable and the configuration checker says all is ok except it cannot find the rrds

im using debian.

i have installed all the CISCO mibs.my in the correct places and when i run cfgmaker against the cfg file i get no errors.
just the rrd graphs are not there.

before i did this i was getting the graphs. i cant find any logs anywhere that displays errors ( except the snmp v6 ones ) but im not using v6 so its not that.
any help greatly appreciated

thanks


Top
 Profile Send private message  
 
PostPosted: Thu Dec 15, 2011 11:59 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
Sounds like MRTG is not running on your cfg file.

Run MRTG on the cfg file from the command line. Does it work? Do you get any errors?

Make sure your MRTG daemon (or scheduler, depending on what you use) is actually running. Capture its error logs to see what's going on.

This should help... a lot of it depends on what OS and configuration you use, of course...

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile Send private message  
 
PostPosted: Thu Dec 15, 2011 3:48 pm 
Offline
User

Joined: Thu Dec 15, 2011 12:02 am
Posts: 3
yer i ran it with mrtg and hey presto its all working ,, thanks

could i be a payne and ask if there is a document or something so i can learn how to create these cfg for cfgmaker ? i wanna monitor pretty much every device on my linux server


Top
 Profile Send private message  
 
PostPosted: Fri Dec 16, 2011 11:02 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
Templates are written in Perl code - you will need to learn Perl.
There is documentation for cfgmaker at the MRTG website http://oss.oetiker.ch/mrtg/doc/cfgmaker.en.html
There is also extensive documentation on cfg files themselves http://oss.oetiker.ch/mrtg/doc/mrtg-reference.en.html
The Routers2 extensions are documented in the files in the doc subdirectory of the Routers2 distribution.
You might also like to consider buying the book which has a lot of details http://www.steveshipway.org/book/

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile Send private message  
 
PostPosted: Fri Dec 16, 2011 11:33 pm 
Offline
User

Joined: Thu Dec 15, 2011 12:02 am
Posts: 3
nice one
thank you


Top
 Profile Send private message  
 
PostPosted: Sat Dec 24, 2011 9:34 am 
Offline
User

Joined: Sat Dec 24, 2011 9:18 am
Posts: 2
Hello, Stevesh
I'm running MRTG under Windows and hosted the www/mrtg directory
I ran your script cisco.hpt and it seem to have ran fine no errors, this is the first script in the list, for my 3560 switch it currently puts all .html files in the www/mrtg dir and I load the Gig uplink interface to see whats happening at the uplink.

My needs are to host a web page with all the interfaces, would you have any idea how I can see the entire switch ? I can pull a page per interface which is not a desariable way to view statistics for the device

Also I run perl cfgmaker --host-template=cisco.htp communitystring@IP-device --global "workDir: D:\www\mrtg" --output mrtg_XX.cfg -- the XX is number to define the router or switch number - also I could name this output file anything right ? as long as its a .cfg ...

Swagger47
Cisco Net engineer
System admin

"lets make it happen"


Top
 Profile Send private message  
 
PostPosted: Wed Dec 28, 2011 3:03 am 
Offline
User

Joined: Sat Dec 24, 2011 9:18 am
Posts: 2
Hello, Stevesh
I'm running MRTG under Windows and hosted the www/mrtg directory
I ran your script cisco.hpt and it seem to have ran fine no errors, this is the first script in the list, for my 3560 switch it currently puts all .html files in the www/mrtg dir and I load the Gig uplink interface to see whats happening at the uplink.

My needs are to host a web page with all the interfaces, would you have any idea how I can see the entire switch ? I can pull a page per interface which is not a desariable way to view statistics for the device


Ok I got it, can u say indexmaker wow reading is fundemental. I have another question, is there a map with MRTG where you can list all IP hosts and the program pulls devices together on one Map that you would then arrange?

I thought there was, someone correct me if I'm wrong


Top
 Profile Send private message  
 
PostPosted: Wed Dec 28, 2011 9:42 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 3039
Location: Auckland, New Zealand
If using native-mode MRTG then use indexmaker.

If using RRDtools mode MRTG, then the Routers2 frontend has a 'summary' page that shows all component Targets for a device.

To make a map, you need an external program. We use Network Weathermap ( http://network-weathermap.com/ ) which has plugins to read RRD files. I've also made plugins to read data from Nagios and remote ( rrdcached ) RRD files.

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile Send private message  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 28 posts ]  Go to page Previous  1, 2, 3  Next

All times are UTC + 12 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group