[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]/feed.php on line 173: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/feed.php on line 174: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Cheshire Cat Computing Software support and information 2004-08-23T01:56:59+13:00 http://www.steveshipway.org/forum/feed.php?f=2&t=346 2004-08-23T01:54:11+13:00 2004-08-23T01:54:11+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=346&p=2658#p2658 <![CDATA[Graphs off?]]>
For future novice's, here's what I ended up with:


Target[OSV-SQL.ldisk.freec]: 1.3.6.1.4.1.9600.1.1.1.1.20.2.67.58&1.3.6.1.4.1.9600.1.1.1.1.20.2.67.58:public@xx.xx.xx.xx
MaxBytes[OSV-SQL.ldisk.freec]: 7810
Factor[OSV-SQL.ldisk.freec]: 1024000
Title[OSV-SQL.ldisk.freec]:OSV-SQL Free Megabytes (C:)
RouterUptime[OSV-SQL.ldisk.freec]: public@xx.xx.xx.xx
Pagetop[OSV-SQL.ldisk.freec]: <H1>OSV-SQL Free Megabytes (C:)</H1>
unscaled[OSV-SQL.ldisk.freec]: dwmy
Options[OSV-SQL.ldisk.freec]: gauge, growright,noo
kilo[OSV-SQL.ldisk.freec]: 1024
WithPeak[OSV-SQL.ldisk.freec]: wmy
YLegend[OSV-SQL.ldisk.freec]: bytes
ShortLegend[OSV-SQL.ldisk.freec]: b
Legend1[OSV-SQL.ldisk.freec]: C Disk space free
Legend2[OSV-SQL.ldisk.freec]:
Legend3[OSV-SQL.ldisk.freec]: C Peak space free
LegendO[OSV-SQL.ldisk.freec]:
routers.cgi*Options[OSV-SQL.ldisk.freec]: nototal
routers.cgi*Icon[OSV-SQL.ldisk.freec]: disk-sm.gif
routers.cgi*Mode[OSV-SQL.ldisk.freec]: generic

Statistics: Posted by jwixted — Mon Aug 23, 2004 1:54 am


]]>
2004-08-22T10:56:02+13:00 2004-08-22T10:56:02+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=346&p=2651#p2651 <![CDATA[Graphs off?]]>
In this case, use
Factor[targetname]: 1024000
to convert it to bytes, and get rid of kMG[].

The kMG[] directive is not supported by routers2.cgi, because the perl library interface does not have a parameter for it. Therefore, you need to use Factor[] instead to bring the number to the 'normal' prefix set. This is in the PROBLEMS and MRTG_INFO files...

Note that you will, of course, then have to give MaxBytes in Mb, since this is the value being returned by the OID.

Hope this helps! The general rule is, put Target first, set the returned MaxBytes, then use Factor to make the number into the correct unit. Ignore kMG. Thanks,

Steve

Statistics: Posted by stevesh — Sun Aug 22, 2004 10:56 am


]]>
2004-08-23T01:56:42+13:00 2004-08-22T04:42:00+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=346&p=2649#p2649 <![CDATA[Graphs off?]]>
My config:

Target[OSV-SQL.ldisk.freec]: 1.3.6.1.4.1.9600.1.1.1.1.20.2.67.58&1.3.6.1.4.1.9600.1.1.1.1.20.2.67.58:public@xx.xx.xx.xx
Title[OSV-SQL.ldisk.freec]:OSV-SQL Free Megabytes (C:)
RouterUptime[OSV-SQL.ldisk.freec]: public@xx.xx.xx.xx
Pagetop[OSV-SQL.ldisk.freec]: <H1>OSV-SQL Free Megabytes (C:)</H1>
MaxBytes[OSV-SQL.ldisk.freec]: 7810000
Options[OSV-SQL.ldisk.freec]: gauge, growright,noo
Factor[OSV-SQL.ldisk.freec]: 1024
kMG[OSV-SQL.ldisk.freec]: M,G,T,P
kilo[OSV-SQL.ldisk.freec]: 1024
WithPeak[OSV-SQL.ldisk.freec]: wmy
YLegend[OSV-SQL.ldisk.freec]: bytes
ShortLegend[OSV-SQL.ldisk.freec]: b
Legend1[OSV-SQL.ldisk.freec]: C Disk space free
Legend2[OSV-SQL.ldisk.freec]:
Legend3[OSV-SQL.ldisk.freec]: C Peak space free
LegendO[OSV-SQL.ldisk.freec]:
routers.cgi*Options[OSV-SQL.ldisk.freec]: nototal
routers.cgi*Icon[OSV-SQL.ldisk.freec]: disk-sm.gif
routers.cgi*Mode[OSV-SQL.ldisk.freec]: generic
routers.cgi*UnScaled[OSV-SQL.ldisk.freec]: none

When I snmpwalk the oid, I get 1622, which, according to the description in GetIF is freespace in Megabytes. The above gives me the correct disk maximum, and the correct value for freespace, it's the scale of the freespace that's off, reporting as Mb, rather than Gb.

Sorry to be dense!

Statistics: Posted by jwixted — Sun Aug 22, 2004 4:42 am


]]>
2004-08-21T11:52:39+13:00 2004-08-21T11:52:39+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=346&p=2643#p2643 <![CDATA[Graphs off?]]>
If this is the case, you need

Factor[targetname]: 1024

to multiply it up so that it is in fact returning a count of bytes, not a count of Kb. You will need to divide your MaxBytes by 1024, as well, since this represents the maximum number being returned by the Target line (and if it is returning K then it will be less).

Finally, you can set the option

routers.cgi*UnScaled[targetname]: none

to make the graph autoscale (routers.cgi fixes graphs to show the max line by default, unless you have the nomax option set).

Steve

Statistics: Posted by stevesh — Sat Aug 21, 2004 11:52 am


]]>
2004-08-21T01:57:44+13:00 2004-08-21T01:57:44+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=346&p=2640#p2640 <![CDATA[Graphs off?]]> Statistics: Posted by jwixted — Sat Aug 21, 2004 1:57 am


]]>
2004-08-20T16:53:10+13:00 2004-08-20T16:53:10+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=346&p=2635#p2635 <![CDATA[Graphs off?]]>
You MUST have the Target[] line as the first line of the target definition. You seem to have the Title[] first, and the Target[] somewhere in the middle.

This is documented in the PROBLEMS file, but its not obvious at first that this is the cause. I suspect this is what is happening.

I wish I could fix this, but unfortunately I'd have to rewrite the whole parsing routines -- they would also lose their optimisation, as well, slowing things down yet more.

Steve

Statistics: Posted by stevesh — Fri Aug 20, 2004 4:53 pm


]]>
2004-08-20T13:15:42+13:00 2004-08-20T13:15:42+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=346&p=2632#p2632 <![CDATA[Graphs off?]]>
I looked thru the docs, and found a reference to values multiplied by 8, which appears to be the problem with the CPU. I already had the routers.cgi*Mode[osv-sql.cpu]: generic

line on that one. I added that same line to the free disk space target, but it made no difference...

Statistics: Posted by jwixted — Fri Aug 20, 2004 1:15 pm


]]>
2004-08-19T12:44:43+13:00 2004-08-19T12:44:43+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=346&p=2619#p2619 <![CDATA[Graphs off?]]>
This problem is because routers2.cgi is incorrectly guessing that your target is a network interface. Usually it gets it right, but sometimes...

As a result, it is defaulting to 'bits' mode rather than 'bytes', and therefore multiplies by 8.

To stop this, you need to either tell it to use 'generic' mode, or force it to 'bytes' option. The best is to fix the Mode.

routers.cgi*Mode[_]: generic

This will stop it from trying to guess the nature of the target and set special options for it. In generic mode, it just does what you tell it!

Steve

Statistics: Posted by stevesh — Thu Aug 19, 2004 12:44 pm


]]>
2004-08-23T01:56:59+13:00 2004-08-19T08:04:20+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=346&p=2617#p2617 <![CDATA[Graphs off?]]>
The configs:
# CPU
Title[osv-sql.cpu]:osv-sql % Processor Time (Total)
RouterUptime[osv-sql.cpu]: public@xx.xx.xx.xx
Pagetop[osv-sql.cpu]: <H1>osv-sql % Processor Time (Total)</H1>
MaxBytes[osv-sql.cpu]: 100
Unscaled[osv-sql.cpu]: dwmy
# Options[osv-sql.cpu]: gauge, nopercent,growright, integer, noo
Options[osv-sql.cpu]: gauge,growright
WithPeak[osv-sql.cpu]: wmy
Target[osv-sql.cpu]: .1.3.6.1.4.1.9600.1.1.5.1.5.6.95.84.111.116.97.108&.1.3.6.1.4.1.9600.1.1.5.1.5.6.95.84.111.116.97.108:public@xx.xx.xx.xx
YLegend[osv-sql.cpu]: % Utilization
ShortLegend[osv-sql.cpu]:%
LegendI[osv-sql.cpu]: &nbsp;5 Min:
routers.cgi*Mode[osv-sql.cpu]: generic


Title[OSV-SQL.ldisk.freec]:OSV-SQL Free Megabytes (C:)
RouterUptime[OSV-SQL.ldisk.freec]: public@xx.xx.xx.xx
Pagetop[OSV-SQL.ldisk.freec]: <H1>OSV-SQL Free Megabytes (C:)</H1>
Target[OSV-SQL.ldisk.freec]: 1.3.6.1.4.1.9600.1.1.1.1.20.2.67.58&1.3.6.1.4.1.9600.1.1.1.1.20.2.67.58:public@xx.xx.xx.xx
MaxBytes[OSV-SQL.ldisk.freec]: 7810000000
unscaled[OSV-SQL.ldisk.freec]: dwmy
Options[OSV-SQL.ldisk.freec]: gauge, growright
WithPeak[OSV-SQL.ldisk.freec]: wmy
YLegend[OSV-SQL.ldisk.freec]: bytes
ShortLegend[OSV-SQL.ldisk.freec]: b
Legend1[OSV-SQL.ldisk.freec]: C Disk space free
Legend2[OSV-SQL.ldisk.freec]:
Legend3[OSV-SQL.ldisk.freec]: C Peak space free
LegendO[OSV-SQL.ldisk.freec]:
routers.cgi*Options[OSV-SQL.ldisk.freec]: nototal
routers.cgi*Icon[OSV-SQL.ldisk.freec]: disk-sm.gif

Anyone point me in the right direction?

Statistics: Posted by jwixted — Thu Aug 19, 2004 8:04 am


]]>