[rrd-users] MRTG RRD ext. Scripts and cron
Marcus.Kipp at arcor.net
Marcus.Kipp at arcor.net
Tue Sep 23 09:47:34 MEST 2003
Hi,
I use mrtg with rrd and have a big problem with external perl scripts.
When I run the scripts manually all things work fine, but in a cron they didn´t
run.
(I use mrtg 2.10.5 and rrd 1.0.40)
2003-09-22 13:23:12 -- --cfg: /usr/local/mrtg/bin/heise.cfg[1]: LogFormat:
rrdtool
2003-09-22 13:23:12 -- --cfg: /usr/local/mrtg/bin/heise.cfg[2]: WorkDir:
/usr/local/httpd/htdocs/dialin/heise
2003-09-22 13:23:12 -- --cfg: /usr/local/mrtg/bin/heise.cfg[3]: PathAdd:
/usr/local/rrdtool-1.0.40/bin/
2003-09-22 13:23:12 -- --cfg: /usr/local/mrtg/bin/heise.cfg[4]: LibAdd:
/usr/local/rrdtool-1.0.40/lib/perl/
2003-09-22 13:23:12 -- --cfg: /usr/local/mrtg/bin/heise.cfg[5]:
2003-09-22 13:23:12 -- --cfg: /usr/local/mrtg/bin/heise.cfg[6]:
2003-09-22 13:23:12 -- --cfg: /usr/local/mrtg/bin/heise.cfg[7]:
######################################################################
2003-09-22 13:23:12 -- --cfg: /usr/local/mrtg/bin/heise.cfg[8]: #
/usr/local/mrtg/bin/heise.pl / heise_isdn.pl
2003-09-22 13:23:12 -- --cfg: /usr/local/mrtg/bin/heise.cfg[9]:
######################################################################
2003-09-22 13:23:12 -- --cfg: /usr/local/mrtg/bin/heise.cfg[10]: 2003-09-22
13:23:12 -- --cfg: /usr/local/mrtg/bin/heise.cfg[11]: #### DSL ###########
2003-09-22 13:23:12 -- --cfg: /usr/local/mrtg/bin/heise.cfg[12]:
2003-09-22 13:23:12 -- --cfg: /usr/local/mrtg/bin/heise.cfg[13]:
Target[heise_ticker_dsl]: `/usr/bin/perl /usr/local/heise_dsl.pl`
2003-09-22 13:23:12 -- --cfg: /usr/local/mrtg/bin/heise.cfg[14]:
Options[heise_ticker_dsl]: growright,nopercent,gauge
2003-09-22 13:23:12 -- --cfg: /usr/local/mrtg/bin/heise.cfg[15]:
MaxBytes[heise_ticker_dsl]: 100
2003-09-22 13:23:12 -- --cfg: /usr/local/mrtg/bin/heise.cfg[16]:
#Unscaled[heise_ticker_dsl]: dwmy
2003-09-22 13:23:12 -- --cfg: /usr/local/mrtg/bin/heise.cfg[17]:
WithPeak[heise_ticker_dsl]: wmy
2003-09-22 13:23:12 -- --cfg: /usr/local/mrtg/bin/heise.cfg[18]:
Ylegend[heise_ticker_dsl]: Anz DSL-Stoerungen
2003-09-22 13:23:12 -- --cfg: /usr/local/mrtg/bin/heise.cfg[19]:
ShortLegend[heise_ticker_dsl]:
2003-09-22 13:23:12 -- --cfg: /usr/local/mrtg/bin/heise.cfg[20]:
LegendO[heise_ticker_dsl]: Leitung
2003-09-22 13:23:12 -- --cfg: /usr/local/mrtg/bin/heise.cfg[21]:
LegendI[heise_ticker_dsl]: Durchsatz
2003-09-22 13:23:12 -- --cfg: /usr/local/mrtg/bin/heise.cfg[22]:
Legend1[heise_ticker_dsl]: niedriger Datendursatz
2003-09-22 13:23:12 -- --cfg: /usr/local/mrtg/bin/heise.cfg[23]:
Legend2[heise_ticker_dsl]: Leitung gestoert
2003-09-22 13:23:12 -- --cfg: /usr/local/mrtg/bin/heise.cfg[24]:
Title[heise_ticker_dsl]: Heise Stoerungsmonitor - Arcor-DSL-Stoerungen
2003-09-22 13:23:12 -- --cfg: /usr/local/mrtg/bin/heise.cfg[25]:
PageTop[heise_ticker_dsl]: <H1>Heise Stoerungsmonitor -
Arcor-DSL-Stoerungen</H1>
2003-09-22 13:23:12 -- --cfg: /usr/local/mrtg/bin/heise.cfg[26]: <TABLE>
2003-09-22 13:23:12 -- --cfg: /usr/local/mrtg/bin/heise.cfg[27]:
<TR><TD>URL:</TD> <TD> http://www.heise.de/imonitor/ </TD></TR>
2003-09-22 13:23:12 -- --cfg: /usr/local/mrtg/bin/heise.cfg[28]: </TABLE>
2003-09-22 13:23:12 -- --cfg: /usr/local/mrtg/bin/heise.cfg[29]:
2003-09-22 13:23:12 -- --cfg: /usr/local/mrtg/bin/heise.cfg[30]: #### ISDN
###########
2003-09-22 13:23:12 -- --cfg: /usr/local/mrtg/bin/heise.cfg[31]:
2003-09-22 13:23:12 -- --cfg: /usr/local/mrtg/bin/heise.cfg[32]:
Target[heise_ticker_isdn]: `/usr/bin/perl /usr/local/heise_isdn.pl`
2003-09-22 13:23:12 -- --cfg: /usr/local/mrtg/bin/heise.cfg[33]:
Options[heise_ticker_isdn]: growright,nopercent,gauge
2003-09-22 13:23:12 -- --cfg: /usr/local/mrtg/bin/heise.cfg[34]:
MaxBytes[heise_ticker_isdn]: 50
2003-09-22 13:23:12 -- --cfg: /usr/local/mrtg/bin/heise.cfg[35]:
#Unscaled[heise_ticker_isdn]: dwmy
2003-09-22 13:23:12 -- --cfg: /usr/local/mrtg/bin/heise.cfg[36]:
WithPeak[heise_ticker_isdn]: wmy
2003-09-22 13:23:12 -- --cfg: /usr/local/mrtg/bin/heise.cfg[37]:
Ylegend[heise_ticker_isdn]: Anz ISDN-Stoerungen
2003-09-22 13:23:12 -- --cfg: /usr/local/mrtg/bin/heise.cfg[38]:
ShortLegend[heise_ticker_isdn]:
2003-09-22 13:23:12 -- --cfg: /usr/local/mrtg/bin/heise.cfg[39]:
LegendO[heise_ticker_isdn]: Leitung
2003-09-22 13:23:12 -- --cfg: /usr/local/mrtg/bin/heise.cfg[40]:
LegendI[heise_ticker_isdn]: Durchsatz
2003-09-22 13:23:12 -- --cfg: /usr/local/mrtg/bin/heise.cfg[41]:
Legend1[heise_ticker_isdn]: niedriger Datendursatz
2003-09-22 13:23:12 -- --cfg: /usr/local/mrtg/bin/heise.cfg[42]:
Legend2[heise_ticker_isdn]: Leitung gestoert
2003-09-22 13:23:12 -- --cfg: /usr/local/mrtg/bin/heise.cfg[43]:
Title[heise_ticker_isdn]: Heise Stoerungsmonitor - Arcor-ISDN-Stoerungen
2003-09-22 13:23:12 -- --cfg: /usr/local/mrtg/bin/heise.cfg[44]:
PageTop[heise_ticker_isdn]: <H1>Heise Stoerungsmonitor -
Arcor-ISDN-Stoerungen</H1>
2003-09-22 13:23:12 -- --cfg: /usr/local/mrtg/bin/heise.cfg[45]: <TABLE>
2003-09-22 13:23:12 -- --cfg: /usr/local/mrtg/bin/heise.cfg[46]:
<TR><TD>URL:</TD> <TD> http://www.heise.de/imonitor/ </TD></TR>
2003-09-22 13:23:12 -- --cfg: /usr/local/mrtg/bin/heise.cfg[47]: </TABLE>
.......
2003-09-22 13:23:13 -- --log: Called:
RRDs::tune(/usr/local/httpd/htdocs/dialin/heise/heise_ticker_dsl.rrd -a
ds0:100 -a ds1:100 -d ds0:GAUGE -d ds1:GAUGE)
2003-09-22 13:23:13 -- --log: Calling:
RRDs::update(/usr/local/httpd/htdocs/dialin/heise/heise_ticker_dsl.rrd,
'1064229793:1:3')
2003-09-22 13:23:13 -- --log: Called: RRDs::last()
2003-09-22 13:23:13 -- --log: Called:
RRDs::fetch(/usr/local/httpd/htdocs/dialin/heise/heise_ticker_dsl.rrd,'AVERAGE','-s',1064229793,'-e',1064229793)
2003-09-22 13:23:13 -- --log: got: 1/3
2003-09-22 13:23:13 -- --base: Check for Thresholds
2003-09-22 13:23:13 -- --base: Act on Router/Target heise_ticker_isdn
2003-09-22 13:23:13 -- --base: Get Current values: undef, undef, isdn, heise,
1064229793)
2003-09-22 13:23:13 -- --base: Create Graphics
2003-09-22 13:23:13 -- --base: start RRDtool section
2003-09-22 13:23:13 -- --base: maxi:50, maxo:50
2003-09-22 13:23:13 -- --log: Called:
RRDs::tune(/usr/local/httpd/htdocs/dialin/heise/heise_ticker_isdn.rrd -a
ds0:50 -a ds1:50 -d ds0:GAUGE -d ds1:GAUGE)
2003-09-22 13:23:13 -- --log: Calling:
RRDs::update(/usr/local/httpd/htdocs/dialin/heise/heise_ticker_isdn.rrd,
'1064229793:0:0')
2003-09-22 13:23:13 -- --log: Called: RRDs::last()
2003-09-22 13:23:13 -- --log: Called:
RRDs::fetch(/usr/local/httpd/htdocs/dialin/heise/heise_ticker_isdn.rrd,'AVERAGE','-s',1064229793,'-e',1064229793)
2003-09-22 13:23:13 -- --log: got: NaN/NaN
2003-09-22 13:23:13 -- --base: Check for Thresholds
2003-09-22 13:23:13 -- --base: Exit main Loop
2003-09-22 13:23:13 -- --base: Remove Lock Files
2003-09-22 13:23:13 -- --base: Store Interface Config Cache
The difference in the cron is only this
2003-09-22 13:16:05 -- --base: Act on Router/Target heise_ticker_dsl
2003-09-22 13:16:05 -- --base: Get Current values: 1, 3, dsl, heise,1064229364)
2003-09-22 13:16:05 -- --base: Create Graphics
2003-09-22 13:16:05 -- --base: start RRDtool section
2003-09-22 13:16:05 -- --base: maxi:100, maxo:100
2003-09-22 13:16:05 -- --log: Called:
RRDs::tune(/usr/local/httpd/htdocs/dialin/heise/heise_ticker_dsl.rrd -a
ds0:100 -a ds1:100 -d ds0:GAUGE -d ds1:GAUGE)
2003-09-22 13:16:05 -- --log: Calling:
RRDs::update(/usr/local/httpd/htdocs/dialin/heise/heise_ticker_dsl.rrd,
'1064229364:1:3')
2003-09-22 13:16:05 -- --log: Called: RRDs::last()
2003-09-22 13:16:05 -- --log: Called:
RRDs::fetch(/usr/local/httpd/htdocs/dialin/heise/heise_ticker_dsl.rrd,'AVERAGE','-s',1064229364,'-e',1064229364)
2003-09-22 13:16:05 -- --log: got: NaN/NaN
2003-09-22 13:16:05 -- --base: Check for Thresholds
Why are the values NaN/NaN ???? (only when started via cron)
Have anyone an idea whats happened in my rrd ?
Thanks
Marcus
--
Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe
Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help
Archive http://www.ee.ethz.ch/~slist/rrd-users
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi
More information about the rrd-users
mailing list