[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Cheshire Cat Computing :: View topic - Not all data being displayed . Config inside .
Cheshire Cat Computing
http://steveshipway.org/forum/

Not all data being displayed . Config inside .
http://steveshipway.org/forum/viewtopic.php?f=2&t=1561
Page 1 of 3

Author:  babydr [ Fri Apr 11, 2008 1:35 pm ]
Post subject:  Not all data being displayed . Config inside .

Hello All , I am probably just missing an extremely obvious item in the config below .
History, The config below should produce an over/under graph of BW-IN/OUT & interface error counts (as a rate) (& Factor[xxx]:) -10000000 the large value is to make even a minor rate show up as visible in the graphing . The BW-IN/OUT works flawlessly , in fact that is all I get out of this config .
I have (several)other configs that do produce both the BW&InterfaceError (*I-IE) that are very simular configurations . The only physical differance is that this device is a switch .

At the very end is a 'rrdtool info' for the IE .

An snmpget using the iod's for IE work just fine & return valid numbers . fe:
# snmpget -c2c -c XXXXXXXX to-sw01 .1.3.6.1.2.1.2.2.1.14.1
IF-MIB::ifInErrors.1 = Counter32: 0
# snmpget -c2c -c XXXXXXXX to-sw01 .1.3.6.1.2.1.2.2.1.20.1
IF-MIB::ifOutErrors.1 = Counter32: 0

If I goto the Information URL in the Targets Menu I see -all- the proper url's and when I select a *IE I do see that this produces the Interface Error display with error rate summary .

Any insights are welcome . babydr(JimL)

<<< Begin Config >>>
# Created by Babydr(JimL)

### Global Config Options

# for UNIX
# WorkDir: /home/http/mrtg

# or for NT
# WorkDir: c:\mrtgdata

### Global Defaults

# to get bits instead of bytes and graphs growing to the right
# Options[_]: growright, bits

EnableIPv6: no
PathAdd: /usr/local/rrdtool/bin
LogFormat: rrdtool
options[_]: growright, bits
XSize[_]: 600
YSize[_]: 250
WithPeak[_]: ymw
WorkDir: /var/www/htdocs/router2cgi/graphs
routers.cgi*Options[_]: active
routers.cgi*ShortDesc: TO-SW01 Tok
routers.cgi*Desc: TO-SW01 Branch Switch , Tok

######################################################################
# System: TO-SW01
# Description: HP J4813A ProCurve Switch 2524, revision F.05.59, ROM F.02.01 (/sw/code/build/info(s02))
# Contact: HelpDesk helpdesk@XXXXXXXX x300
# Location: TO - switch room - 1st Floor, Rack 01 front TOP
######################################################################


### Interface 1 >> Descr: '1' | Name: '1' | Ip: '' | Eth: '30-78-30-30-30-64-39-64-37-33-34-63-36-31' ###

Target[to-sw01_1]: 1:XXXXXXXX@to-sw01:::::2
SetEnv[to-sw01_1]: MRTG_INT_IP="" MRTG_INT_DESCR="1"
Directory[to-sw01_1]: to-sw01
MaxBytes[to-sw01_1]: 12500000
Title[to-sw01_1]: 01 -- TO-SW01
routers.cgi*ShortDesc[to-sw01_1]:01
#
routers.cgi*InMenu[to-sw01_1]: No
routers.cgi*InSummary[to-sw01_1]: No
routers.cgi*InCompact[to-sw01_1]: No
routers.cgi*InOut[to-sw01_1]: No
#
PageTop[to-sw01_1]: <h1>01 -- TO-SW01</h1>
<div id="sysdetails">
<table>
<tr>
<td>System:</td>
<td>TO-SW01 in TO - switch room - 1st Floor, Rack 01 front TOP</td>
</tr>
<tr>
<td>Maintainer:</td>
<td>HelpDesk helpdesk@XXXXXXXX x300</td>
</tr>
<tr>
<td>Description:</td>
<td>1 </td>
</tr>
<tr>
<td>ifType:</td>
<td>ethernetCsmacd (6)</td>
</tr>
<tr>
<td>ifName:</td>
<td>1</td>
</tr>
<tr>
<td>Max Speed:</td>
<td>100.0 Mbits/s</td>
</tr>
</table>
</div>


### Interface 1 >> Descr: '1 Error Rates IN/OUT' | Name: '1' | Ip: '' | Eth: '' ###
#
Target[to-sw01_01IE]: .1.3.6.1.2.1.2.2.1.14.1&.1.3.6.1.2.1.2.2.1.20.1:XXXXXXXX@to-sw01:
SetEnv[to-sw01_01IE]: MRTG_INT_IP="" MRTG_INT_DESCR="1 Error Rates IN/OUT"
Directory[to-sw01_01IE]: to-sw01
MaxBytes[to-sw01_01IE]: 1250000
Title[to-sw01_01IE]: TO-SW01 in TOK , Interface 1 Error Rates IN/OUT -- to-sw01.dsb.local;
Factor[to-sw01_01IE]: -10000000
Legend1[to-sw01_01IE]: Incoming Interface Errors/sec
Legend2[to-sw01_01IE]: Outgoing Interface Errors/sec
LegendI[to-sw01_01IE]: &nbsp;In Errors:
LegendO[to-sw01_01IE]: &nbsp;Out Errors:
routers.cgi*ShortDesc[to-sw01_1IE]:01IE
#
routers.cgi*InMenu[to-sw01_01IE]: No
routers.cgi*InSummary[to-sw01_01IE]: No
routers.cgi*InCompact[to-sw01_01IE]: No
routers.cgi*InOut[to-sw01_01IE]: No
#
PageTop[to-sw01_01IE]: <h1>TO-SW01 in TOK , Interface 1 Error Rates IN/OUT -- to-sw01.dsb.local
<div id="sysdetails">
<table>
<tr>
<td>System:</td>
<td>to-sw01.dsb.local in DSB</td>
</tr>
<tr>
<td>Maintainer:</td>
<td>IT helpdesk@XXXXXXXX</td>
</tr>
<tr>
<td>Description:</td>
<td>TO-SW01 in TOK , Interface 1 Error Rates IN/OUT </td>
</tr>
<tr>
<td>ifType:</td>
<td></td>
</tr>
<tr>
<td>ifName:</td>
<td>1</td>
</tr>
</table>
</div>


### Combined traffic(above zero) & Error rate (below zero), User Defined graph ...

routers.cgi*Graph[to-sw01_1]: to-sw01_01I-IE
routers.cgi*Graph[to-sw01_01IE]: to-sw01_01I-IE
routers.cgi*InMenu[to-sw01_01I-IE]: Yes
routers.cgi*InSummary[to-sw01_01I-IE]: Yes
routers.cgi*Desc[to-sw01_01I-IE]: 01 1 TO-SW01 in TOK

<<< End Config >>>


# rrdtool info graphs/to-sw01/to-sw01_01ie.rrd
filename = "graphs/to-sw01/to-sw01_01ie.rrd"
rrd_version = "0003"
step = 300
last_update = 1207873865
ds[ds0].type = "COUNTER"
ds[ds0].minimal_heartbeat = 600
ds[ds0].min = 0.0000000000e+00
ds[ds0].max = 1.2500000000e+06
ds[ds0].last_ds = "0"
ds[ds0].value = 0.0000000000e+00
ds[ds0].unknown_sec = 0
ds[ds1].type = "COUNTER"
ds[ds1].minimal_heartbeat = 600
ds[ds1].min = 0.0000000000e+00
ds[ds1].max = 1.2500000000e+06
ds[ds1].last_ds = "0"
ds[ds1].value = 0.0000000000e+00
ds[ds1].unknown_sec = 0
rra[0].cf = "AVERAGE"
rra[0].rows = 800
rra[0].pdp_per_row = 1
rra[0].xff = 5.0000000000e-01
rra[0].cdp_prep[0].value = NaN
rra[0].cdp_prep[0].unknown_datapoints = 0
rra[0].cdp_prep[1].value = NaN
rra[0].cdp_prep[1].unknown_datapoints = 0
rra[1].cf = "AVERAGE"
rra[1].rows = 800
rra[1].pdp_per_row = 6
rra[1].xff = 5.0000000000e-01
rra[1].cdp_prep[0].value = 0.0000000000e+00
rra[1].cdp_prep[0].unknown_datapoints = 0
rra[1].cdp_prep[1].value = 0.0000000000e+00
rra[1].cdp_prep[1].unknown_datapoints = 0
rra[2].cf = "AVERAGE"
rra[2].rows = 800
rra[2].pdp_per_row = 24
rra[2].xff = 5.0000000000e-01
rra[2].cdp_prep[0].value = 0.0000000000e+00
rra[2].cdp_prep[0].unknown_datapoints = 0
rra[2].cdp_prep[1].value = 0.0000000000e+00
rra[2].cdp_prep[1].unknown_datapoints = 0
rra[3].cf = "AVERAGE"
rra[3].rows = 800
rra[3].pdp_per_row = 288
rra[3].xff = 5.0000000000e-01
rra[3].cdp_prep[0].value = 0.0000000000e+00
rra[3].cdp_prep[0].unknown_datapoints = 0
rra[3].cdp_prep[1].value = 0.0000000000e+00
rra[3].cdp_prep[1].unknown_datapoints = 0
rra[4].cf = "MAX"
rra[4].rows = 800
rra[4].pdp_per_row = 1
rra[4].xff = 5.0000000000e-01
rra[4].cdp_prep[0].value = NaN
rra[4].cdp_prep[0].unknown_datapoints = 0
rra[4].cdp_prep[1].value = NaN
rra[4].cdp_prep[1].unknown_datapoints = 0
rra[5].cf = "MAX"
rra[5].rows = 800
rra[5].pdp_per_row = 6
rra[5].xff = 5.0000000000e-01
rra[5].cdp_prep[0].value = 0.0000000000e+00
rra[5].cdp_prep[0].unknown_datapoints = 0
rra[5].cdp_prep[1].value = 0.0000000000e+00
rra[5].cdp_prep[1].unknown_datapoints = 0
rra[6].cf = "MAX"
rra[6].rows = 800
rra[6].pdp_per_row = 24
rra[6].xff = 5.0000000000e-01
rra[6].cdp_prep[0].value = 0.0000000000e+00
rra[6].cdp_prep[0].unknown_datapoints = 0
rra[6].cdp_prep[1].value = 0.0000000000e+00
rra[6].cdp_prep[1].unknown_datapoints = 0
rra[7].cf = "MAX"
rra[7].rows = 800
rra[7].pdp_per_row = 288
rra[7].xff = 5.0000000000e-01
rra[7].cdp_prep[0].value = 0.0000000000e+00
rra[7].cdp_prep[0].unknown_datapoints = 0
rra[7].cdp_prep[1].value = 0.0000000000e+00
rra[7].cdp_prep[1].unknown_datapoints = 0

Author:  babydr [ Sat Apr 12, 2008 8:15 am ]
Post subject:  Re: Not all data being displayed . Config inside .

Hello All , This is interesting I goto the verify page ie: ?page=verify&rtr=to-sw01.cfg and the to-sw01_01I-IE doesn't show .
And of course since I have said to the other entities (ie: to-sw01_1 & to-sw01_01IE) to not be in any of the displays they are all RED .
But then so do the ones that work have the same displays in their Verify pages .
Baffled .
Tia , babydr(JimL)

Author:  stevesh [ Mon Apr 14, 2008 11:23 am ]
Post subject:  Re: Not all data being displayed . Config inside .

To help debug this, try the following:

1. Remove the 'InMenu[]:no' directives for testing.
2. Make sure the normal targets, to-sw01_1 and to-sw01_01IE, both display data. If not, then you are having data acquisition problems.
3. Look at the userdefined target and see if the 4 datasources are listed in the legend. If not, you have defined the routers.cgi*Graph[] definitions wrong

I think the problem might be number 2?

Author:  babydr [ Tue Apr 15, 2008 1:42 pm ]
Post subject:  Re: Not all data being displayed . Config inside .

> 1. Remove the 'InMenu[]:no' directives for testing.

In the summary menu , I had to remove the "InSummary*: No" as well to get anything to click on .
I get ...
TO-SW01 in TOK , Interface 1 Error Rates IN/OUT -- to-sw01.dsb.local; 1 Error Rates IN/OUT
01 -- TO-SW01 01

> 2. Make sure the normal targets, to-sw01_1 and to-sw01_01IE, both display data. If not, then you are having data acquisition problems.

Both of those show Graphs with appropriate legends .

> 3. Look at the userdefined target and see if the 4 datasources are listed in the legend. If not, you have defined the routers.cgi*Graph[] definitions wrong

'Userdefined target' ? Both of those are defined and produce graphs , as per above .
I am a bit confused as to where you are requesting I look for the difficulty ? Can you be a bit more verbose ?
Tia , babydr(JimL)

Author:  babydr [ Tue Apr 15, 2008 2:09 pm ]
Post subject:  Re: Not all data being displayed . Config inside .

Hello All , Here is my culprit . When it is commented out all graphs show there error counts . But ALL graphs show .

# routers.cgi*Options[_]: active

My next question is ; How can I have the error counts even tho they are '0'(zero) at least show their statistics , both the textual stats & the legend ? As in (*) .
Tia , JimL

(*)
1 1 TO-SW01 in TOK
Last update: Mon Apr 14 17:01:03 2008
In: Max 107.54 kbps, Avg 2.45 kbps, Last 1.26 kbps
Out: Max 797.69 kbps, Avg 15.37 kbps, Last 3.44 kbps
In Errors: Max -0.00 bps, Avg -0.00 bps, Last -0.00 bps <<<
Out Errors: Max -0.00 bps, Avg -0.00 bps, Last -0.00 bps <<<

Author:  stevesh [ Wed Apr 16, 2008 2:11 pm ]
Post subject:  Re: Not all data being displayed . Config inside .

Aha - I didnt notice you have the active option set.

Basically, if 'active' is set on a Summary page, it hides any graphs which have no activity in the time period. If it is set on a userdefined graph, it hides any lines which have no activity in the time period (which can be odd in some graphstyles). This option is intended only for summary graphs (like the Incoming/Outgoing) and summary pages on switches where you have a lot of ports being monitored but only a few are active.

If you put 'routers.cgi*Options[_]:active' then you get this on ALL graphs - including userdefined or summary pages - unless you define additional options in which case you dont get it. Best to use this option only where you want it, not as a default.

Author:  babydr [ Wed Apr 16, 2008 2:32 pm ]
Post subject:  Re: Not all data being displayed . Config inside .

If I use the 'routers.cgi*Options[to-sw01_1]:active' thru to-sw01_25 . The graphs & textual statistics for error counts(as a rate) are not plotted . Basically the same issue as using the blanket 'routers.cgi*Options[_]:active' . which when one thinks about it a bit is obvious .

This still leaves lingering the question , that this switch has several ports unused and wading thru all those is a waste of graphing horse power . Correct me if I am wrong on the graphing . But stil a waste of my time if nothing else .

any ideas are appreciated . babydr(JimL)

Author:  stevesh [ Wed Apr 16, 2008 2:43 pm ]
Post subject:  Re: Not all data being displayed . Config inside .

Your userdefined graph is inheriting the options from the primary target, or from the default, and so gets the 'active' options set.

Try adding to the end

routers.cgi*Options[to-sw01_01I-IE]: none

and see if this correctly cancels the inherited option 'active'.

Author:  babydr [ Wed Apr 16, 2008 3:22 pm ]
Post subject:  Re: Not all data being displayed . Config inside .

When the blanket 'routers.cgi*Options[_]:active' is in place .

If I put a 'routers.cgi*Options[_]: none' after the Bandwidth measurment section tho before the error section there is no change , ie: no error statistics are shown .

If I attempt to use 'none' on just a particular interface I have to use 'none' on ALL points for that interface . Then I'll get my stats .

Man , anyway I look at this this is going to become manually intensive to maintain the configuration . Well , at least so far .

Is there a decent way to have the errors section be displayed if the BW or the Error section have activity ?

Tia , babydr(JimL)

Author:  babydr [ Thu Apr 17, 2008 6:58 am ]
Post subject:  Re: Not all data being displayed . Config inside .

Hello Steve , Maybe this s/b put into a 'enhancement request' .

What would make the 'routers.cgi*Options[_]:active' more useful in my endeavor would be if the "_" could be replaced by a regulare expression , ie: [to-sw01_*] or [to-sw01_\[1-2\]*] .
that last one looks silly . But something like that .

Well I noticed something odd here , If I use *Options of none on the BW (ie: see the .cfg file above) and comment it off of the error counts & the combined graph .
I get my error counts . fe:

routers.cgi*Options[_]: active
...
routers.cgi*Options[to-sw01_1]: none <<< It only needs this .
...
# routers.cgi*Options[to-sw01_01IE]: none
...
# routers.cgi*Options[to-sw01_01I_IE]: none
...

Tia , babydr(JimL)

Page 1 of 3 All times are UTC + 12 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/