[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 2008-07-29T01:51:09+13:00 http://www.steveshipway.org/forum/feed.php?f=2&t=1603 2008-07-29T01:51:09+13:00 2008-07-29T01:51:09+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=1603&p=8137#p8137 <![CDATA[Re: current value not displayed in graph]]>
Thanks for the help.

Statistics: Posted by billf57 — Tue Jul 29, 2008 1:51 am


]]>
2008-07-27T10:29:19+13:00 2008-07-27T10:29:19+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=1603&p=8135#p8135 <![CDATA[Re: current value not displayed in graph]]>
Check the log file for your MRTG process, and see what error messages are being logged. I think it is failing to successfully run your data collection script for some reason, but I don't know what without seeing the MRTG process logs.

'run interactively' means run from the command line without daemon mode so that you can see any generated errors.

There are sometimes differences between the access rights of MRTG when run as a daemon and the rights when run from the command line. The only way to track down this is to look at the logs. The Windows version can be set to log to the windows Application log, so check there for logs.

Statistics: Posted by stevesh — Sun Jul 27, 2008 10:29 am


]]>
2008-07-26T01:56:58+13:00 2008-07-26T01:56:58+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=1603&p=8134#p8134 <![CDATA[Re: current value not displayed in graph]]>
The web page I am pulling from actually displays the values in Fahrenheit.

The daemon window isn't showing any errors, the log file doesn't show any errors. I removed the unknaszero (this was pulled from other code), stopped and restarted the script.

I am running under windows as an administrator so I don't believe it to be a permissions issue. If it was a path issue to perl I would think I would be getting some error message somewhere.

I'm not really sure what running interactively means under a windows environment.

I can remove the run as daemon option from the config file and from the command line run
perl mrtg --logging ck_temp.log ck_temp.cfg
and not see any errors nor do I see any output so I can only assume that script is returning a value and mrtg is accepting it.

- Bill

Statistics: Posted by billf57 — Sat Jul 26, 2008 1:56 am


]]>
2008-07-25T10:56:13+13:00 2008-07-25T10:56:13+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=1603&p=8133#p8133 <![CDATA[Re: current value not displayed in graph]]>
I dont know why you have routers.cgi*Ignore:yes as this will make Routers2 completely ignore this file!

I see you're graphing in degF - you probably dont need it, but Routers2 has a special option, c2fi and c2fo to convert centigrade to fanerheit (as most SNMP thermometers produce values in degrees C or tenths of a degree C).


Your maxbytes is 200, so incoming values should be below this fine.

I notice you have 'unknaszero' specified. Probably your MRTG is retrieving unknowns, and because of this is storing zeros. My guess would be that you have some problem with running the script from within MRTG and it is failing - check the error log from your MRTG, or run MRTG interactively. Possibly you will need to specify the perl executable on the command line (perl.exe script.pl) rather than just the script. Check that you dont need to have different access permissions or PATH settings to run the script.

Statistics: Posted by stevesh — Fri Jul 25, 2008 10:56 am


]]>
2008-07-25T02:21:36+13:00 2008-07-25T02:21:36+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=1603&p=8132#p8132 <![CDATA[Re: current value not displayed in graph]]>
I believe that I read somewhere that if the date timestamp passed to target is different then the current timestamp that this will result in a zero.
In otherwords if there is a delay in receiving the data it can result in a zero.

Enclosed is the full configuration.

-------- ck-temp.cfg

WorkDir: C:\inetpub\wwwroot\MRTG

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

# to Run as Daemon
RunAsDaemon: yes

# START RDTOOL Add-ons -------------------------------------
# Modify Logfiles (*.log) to RRD format (*.rrd)
LogFormat: rrdtool
# RRD Executable (rrdtool.exe) location
PathAdd: e:\rrd\rrdtool\bin
# RRD Perl module (RRDs.pm) location
LibAdd: e:\rrd\rrdtool\bindings\perl-shared
# STOP RDTOOL Add-ons -------------------------------------#

EnableIPv6: no

### Explicit Defaults for routers.cgi
routers.cgi*Ignore: yes
routers.cgi*Icon: temp-sm.gif
routers.cgi*ShortDesc: Weather

Include: config\weather.cfg

-------- weather.cfg
Target[weather_1]: `E:\mrtg-2.15.2\bin\ck_temp.pl 22172`
MaxBytes[weather_1]: 200
Unscaled[weather_1]: dwym
YLegend[weather_1]: Temp/Feels Like
ShortLegend[weather_1]: ° F

WithPeak[weather_1]: ymwd
LegendI[weather_1]: Temp Outside
LegendO[weather_1]: Feels Like Outside
Legend1[weather_1]: Temp Outside
Legend2[weather_1]: Feels Like Outside
Options[weather_1]: gauge,nopercent,unknaszero
Title[weather_1]: Temperature for Triangle, Va.
PageTop[weather_1]: <H1>Temperature according to weather.com</H1>

Target[weather_2]: `E:\mrtg-2.15.2\bin\ck_humid.pl 22172`
MaxBytes[weather_2]: 100
Unscaled[weather_2]: dwym
YLegend[weather_2]: Humidity/Dew Point
ShortLegend[weather_2]: %

WithPeak[weather_2]: ymwd
LegendI[weather_2]: Humidity
LegendO[weather_2]: Dew Point
Legend1[weather_2]: Humidity
Legend2[weather_2]: Dew Point
Options[weather_2]: gauge,nopercent,unknaszero
Title[weather_2]: Humidity/Dew Point for Triangle, Va.
PageTop[weather_2]: <H1>Statistics according to weather.com</H1>

Statistics: Posted by billf57 — Fri Jul 25, 2008 2:21 am


]]>
2008-07-24T13:43:20+13:00 2008-07-24T13:43:20+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=1603&p=8130#p8130 <![CDATA[Re: current value not displayed in graph]]>
Options[targetname]: gauge

specified in your MRTG configuration file, else MRTG will store the change in the value, which will result in usually zero...

Statistics: Posted by stevesh — Thu Jul 24, 2008 1:43 pm


]]>
2008-07-24T03:06:30+13:00 2008-07-24T03:06:30+13:00 http://www.steveshipway.org/forum/viewtopic.php?t=1603&p=8128#p8128 <![CDATA[current value not displayed in graph]]> The output appears to be working fine supplying mrtg the 4 lines of output as follows:

<command line> ck_temp.pl 22172
77
77
6/23/2008 9:14:21
Temp

I am getting what appears to be a valid graph although the current value in the graph always is displayed as 0.00 I also wrote a similar program that outputs humidity and dew point which also is experiencing the same issue.

I am currently using routers2cgi version 2.17 mrtg version 2.15.2 and rrd version 1.2.15
Any insight or debugging information would be appreciated. All of the other 20+ graphs of my equipment appear to work fine.

Thanks,

- Bill

Statistics: Posted by billf57 — Thu Jul 24, 2008 3:06 am


]]>