Cheshire Cat Computing

Software support and information
It is currently Sun May 19, 2013 2:54 pm

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 11 posts ]  Go to page 1, 2  Next
Author Message
PostPosted: Thu Oct 13, 2011 5:25 am 
Offline
Silver User

Joined: Thu Oct 06, 2011 8:46 am
Posts: 18
Hello All,

mrtg-2.17.2
RRDtool 1.2.12
routers.cgi : Version v2.22

I have a question about cfg's that have more than one type of data in the config file (i.e. Errors, CPU Usage, and Traffic all in one file). For example I have the cfg file below that runs fine and doesn't give me any errors. I created the cfg from an example at http://www.steveshipway.org/software/rrd/doc/EXAMPLES

I believe the data displayed in the graph displays for the one with <H1>="Traffic Analysis for en0". I attached a screenshot of the graph.
Maybe I don't understand correctly but how are all the other sections supposed to be graphed? Or how do I view the others? If anyone could explain how, (I assume it's per "Target[ ]") the data of multiple Interfaces, or multiple "kinds" of data are displayed.

Here is my Config file for what I described above. Also, screenshot of graph is attached. BTW I have a separate config file called global.cfg with all my Global Directives in it.
Code:
#Example from "http://www.steveshipway.org/software/rrd/doc/EXAMPLES"
#---------------------------------------------------------------
routers.cgi*Icon: globe-sm.gif

#---------------------------------------------------------------
Target[10.8.1.1.1]: 1:communityName!@10.8.1.1
MaxBytes[10.8.1.1.1]: 250000
Title[10.8.1.1.1]: internet_router: Hssi0
PageTop[10.8.1.1.1]: <H1>Traffic Analysis for Hssi0</h1>
SetEnv[10.8.1.1.1]: MRTG_INT_DESCR="Hssi0"  MRTG_INT_IP="1.2.3.4"
#Options[10.8.1.1.1]: bits
routers.cgi*Graph[10.8.1.1.1]: Combined nototal
routers.cgi*Link[10.8.1.1.1]: "Remote end of this P-t-P link" remote-site.cfg remote-router-target interface-sm.gif

#---------------------------------------------------------------
Target[10.8.1.1.3]: 3:communityName!@10.8.1.1
MaxBytes[10.8.1.1.3]: 1250000
Title[10.8.1.1.3]: internet_router (10.1.2.3): en0
PageTop[10.8.1.1.3]: <H1>Traffic Analysis for en0</h1>
#Options[internet-routers.3]: bits
SetEnv[10.8.1.1.3]: MRTG_INT_DESCR="en0"  MRTG_INT_IP="10.8.1.1"
routers.cgi*Extension[10.8.1.1.3]: "See the routing table" /cgi-bin/routingtable.cgi insecure
routers.cgi*Extension[10.8.1.1.3]: "Trending Analysis" /cgi-bin/trend.cgi
routers.cgi*Graph[10.8.1.1.3]: Combined
routers.cgi*Options[10.8.1.1.3]: scaled

#---------------------------------------------------------------
# Monitor the CPU usage
Target[10.8.1.1.cpu]: 1.3.6.1.4.1.9.2.1.58.0&1.3.6.1.4.1.9.2.1.58.0:communityName!@10.8.1.1
MaxBytes[10.8.1.1.cpu]: 100
UnScaled[10.8.1.1.cpu]: dwmy
Options[10.8.1.1.cpu]: integer gauge noo
Title[10.8.1.1.cpu]: CPU Load on Internet 1
PageTop[10.8.1.1.cpu]: <H1>CPU Load</H1>
routers.cgi*Mode[10.8.1.1.cpu]: cpu

#---------------------------------------------------------------
# Count the errors on one interface
Target[10.8.1.1.errors]: 1.3.6.1.2.1.2.2.1.14.1&1.3.6.1.2.1.2.2.1.20.1:communityName!@10.8.1.1
MaxBytes[10.8.1.1.errors]: 10000
#Options[10.8.1.1.errors]: perminute
routers.cgi*UnScaled[10.8.1.1.errors]: none
Options[10.8.1.1.errors]: perminute
Title[10.8.1.1.errors]: Errors on interface HSSI0
PageTop[10.8.1.1.errors]: <H1>HSSI0 Errors</H1>
routers.cgi*InCompact[10.8.1.1.errors]: no
YLegend[10.8.1.1.errors]: per minute
ShortLegend[10.8.1.1.errors]: /min
Legend1[10.8.1.1.errors]: Incoming errors
Legend2[10.8.1.1.errors]: Outgoing errors
Legend3[10.8.1.1.errors]: Peak Incomnig errors
Legend4[10.8.1.1.errors]: Peak Outgoing errors
routers.cgi*Icon[10.8.1.1.errors]: alert-sm.gif
#---------------------------------------------------------------
#routers.cgi*Extension: "Routing table" /cgi-bin/routingtable.cgi router2-sm.gif insecure
#---------------------------------------------------------------



Any suggestions would be greatly appreciated.

Thanks in Advance,
Matt


You do not have the required permissions to view the files attached to this post.


Top
 Profile  
 
PostPosted: Mon Oct 17, 2011 5:39 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 2921
Location: Auckland, New Zealand
The problem is that you only have one Y-axis, one scale, and so one unit type. If your units are different, then it is difficult to put them on the same graph.

You can define a UserDefined graph (see the documentation, or the Linux CPU graph in the example server) to put multiple Targets onto a single graph. This is good, for example, to show the traffic of multiple interfaces on a a single graph.

If you have v2.22 or later of Routers2, and RRDTool 1.3 or later, then you can define a second Y-axis using the ScaleShift directive. This lets you, for example, have a Celsius AND Farenheit axis on a temperature graph, or display temperature and humidity on separate axis of the same graph.

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


Top
 Profile  
 
PostPosted: Mon Oct 17, 2011 5:45 pm 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 2921
Location: Auckland, New Zealand
Your example config defines one Userdefined graph, called _Combined, and four regular Targets. The image you postis for mthe last Target.

When you are viewing the Routers2 webpages, you should see five items in the Targets menu, corresponding to the four regular Targets plus the Combined graph (this one will by default have a little cog as the icon).

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


Top
 Profile  
 
PostPosted: Tue Oct 18, 2011 3:13 am 
Offline
Silver User

Joined: Thu Oct 06, 2011 8:46 am
Posts: 18
Hey Steve, thanks for the reply.

Ok well then that would make sense.
But currently we have RRDTool version 1.2.12, so until I have 1.3 or higher I can only graph one data set in a single graph, unless they are the same data type?? (i.e. Incoming and Outgoing Traffic would be ok on one graph).

Is the process of upgrading RRDTool an upgrade process, or do you have to do a "fresh" install with the newer version?
The server that it is running on is OpenSUSE 10.2, and the Software Manager only finds RRDTool Version 1.2.12-13.2, so I assume I'd have to download and install it manually...
Or do you know of any repositories that may contain a newer version?


Thanks Again,
Matt


Top
 Profile  
 
PostPosted: Tue Oct 18, 2011 6:54 am 
Offline
Silver User

Joined: Thu Oct 06, 2011 8:46 am
Posts: 18
After looking around for a WHILE trying to upgrade RRDTool, it seems that their are way too many dependencies that are not available for OpenSUSE 10.2...
So for now it seems we may be stuck with our current version of RRDTool, until I can convince them to upgrade from OpenSUSE 10.2 to at least 11.

Thanks again for you help,
Matt


Top
 Profile  
 
PostPosted: Tue Oct 18, 2011 7:31 am 
Offline
Silver User

Joined: Thu Oct 06, 2011 8:46 am
Posts: 18
Hey Steve, sorry for the 3rd straight post.
But I just found out what you were talking about where you can see the cfg's other graphs in its "Target" Menu!!!!


Thanks AGAIN,
Matt


Top
 Profile  
 
PostPosted: Tue Oct 18, 2011 10:00 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 2921
Location: Auckland, New Zealand
If you want to upgrade RRDTool, you can simply compile it yourself from source code, and install to a separate path (eg, /usr/local/rrdtool-1.3 )

Then you can set the libadd directive in the routers2.conf and the MRTG .cfg file to make MRTG and Routers2 use this library instead of the other. Easy to back out as well, then!

Until you can use ScaleShift, which allows you to have a secondary Y-axis, you are limited to a single Y-axis scale and therefore a single ShortLegend (IE, unit name). There is nothing to stop you graphing e.g. temperature and humidity on the same graph, but they will be on the same scale and you will have to omit the units.

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


Top
 Profile  
 
PostPosted: Wed Oct 19, 2011 2:55 am 
Offline
Silver User

Joined: Thu Oct 06, 2011 8:46 am
Posts: 18
Hey Steve, thanks for the reply.

Ok that sounds easy enough to upgrade. I'll give that a try. Thanks again for the info!!

I have one other question if you could help me with?
So I am using the "Grouping" option with Routers2 and one of the groups is for interface errors on all the routers I have (i.e. "ifInErrors" and "ifOutErrors").
My problem is that while I can see that it IS working, collecting the In/Out errors for each interface (I can see this on the individual graphs for each interface). But it isn't showing up on the "main graph", which is I guess is the average of all the interface's errors...?

For example if the router is let's say utilizing 20 of it's interfaces, and interface 5, 10, 20 have error counts of, let's say 100, 1500, and 300 respectively. The "main" graph does not show any data on it at all. Whereas the individual graphs for those 3 interfaces is showing those errors.

Do you think that it could be that the average is just that low, or is something not set correctly in my config file?

Here is a part of the config file for one of the routers with just one of the interfaces. I built it using a template I believe I found in this site, but not positive about that.
Code:
Target[10.5.1.1_2.err]: ifInErrors.2&ifOutErrors.2:communityName@10.5.1.1:
RouterUptime[10.5.1.1_2.err]: communityName@10.5.1.1:
YLegend[10.5.1.1_2.err]: Error Packets
ShortLegend[10.5.1.1_2.err]: /s
Legend1[10.5.1.1_2.err]: Error Packets
Legend2[10.5.1.1_2.err]:
Legend3[10.5.1.1_2.err]: Error Packets
Legend4[10.5.1.1_2.err]:
LegendI[10.5.1.1_2.err]: &nbsp;Inbound Error Packets:&nbsp;
LegendO[10.5.1.1_2.err]: &nbsp;Outbound Error Packets:&nbsp;
MaxBytes[10.5.1.1_2.err]: 1000
Options[10.5.1.1_2.err]: growright, nopercent, gauge
Title[10.5.1.1_2.err]: 10.5.1.1 2 Errors
PageTop[10.5.1.1_2.err]: <H1>10.5.1.1 2</H1>
   <TABLE>
     <TR><TD>System:</TD><TD>10.5.1.1 in </TD></TR>
     <TR><TD>Maintainer:</TD><TD></TD></TR>
     <TR><TD>Description:</TD><TD> In/Out Error counters </TD></TR>
     <TR><TD>Resource:</TD><TD>2</TD></TR>
   </TABLE>


Do you notice anything not right, or something missing? And/Or do you know of a better Template for collecting interface errors?

EDIT: Sorry one more Q... What happens if you have a cfg for interface traffic on a router and at some point more interface's are opened (i.e. interface status changes to "Up")? Will those sections remain commented out in the cfg file still, or will MRTG pick up on it?

Thanks Again for your Help,
Matt


Top
 Profile  
 
PostPosted: Tue Oct 25, 2011 10:01 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 2921
Location: Auckland, New Zealand
Not sure what you mean by the 'main' graph. If you mean the interface traffic summary graph then this target will not be on it because it only has the traffic! You will need to define your own custom summary graph.

In this definition, should you be using 'gauge'? I thought ifInErrs was a counter.

If you have commented out sections in the cfg file, they will remain commented out no matter what happens to the router. You will need to regenerate the cfgfile by calling cfgmaker again if the router changes configuration.

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


Top
 Profile  
 
PostPosted: Wed Oct 26, 2011 8:44 am 
Offline
Silver User

Joined: Thu Oct 06, 2011 8:46 am
Posts: 18
Hey Steve, thanks for the reply.

Sorry I should have posted back... I got the UsedDefined stuff working great last Friday I believe it was. After working with this the last few weeks I am much more comfortable now with the program, so-much-so that now I'm "trying" (got one working!!) writing my own Perl scripts to complement some of the templates and such (i.e. using a couple different templates, interface & host one's at same time. Otherwise the results were unpredictable)...

But anyway good stuff, thanks for your help!!


Thanks Again,
Matt


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ]  Go to page 1, 2  Next

All times are UTC + 12 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group