[rrd-users] getting crasy updat is not running

Marc Marc at Tobien.net
Wed Jan 19 23:27:10 CET 2011


Hi I am having several php scripts running.  1 year without any problems.
Now I created an adon with thom new rrd. Databases.

 

$command ='usr/bin/rrdtool create /var/rrd/data/B6000801CA34E0.rrd '.

                               '--step 60 '.
// -s indicates the time between updates in sec. 

                               'DS:tmp:GAUGE:120:-20:110 '.  

                               'RRA:AVERAGE:0.5:2:4320 '.
// 2 minuten 6 Tage

                               'RRA:AVERAGE:0.5:6:2016 '.
// 6 minuten 8 tage 9 stunden

                               'RRA:AVERAGE:0.5:60:1900 '.
// 1 stunde 2 monate 18 tage

                               'RRA:AVERAGE:0.5:720:1488 '.
// 12 stunden 2 jahre

                               'RRA:MAX:0.5:2:2016 '.
// MAX

                               'RRA:MAX:0.5:6:2016 '.


                               'RRA:MAX:0.5:60:1900 '.


                               'RRA:MAX:0.5:720:1488 '.


                               'RRA:MIN:0.5:2:2016 '.
// MIN

                               'RRA:MIN:0.5:6:2016 '.


                               'RRA:MIN:0.5:60:1900 '.


                               'RRA:MIN:0.5:720:1488';

shell_exec($command);

 

That’s running fine, rrd is created.

Now I am trying to update the database

 

$daten =99

shell_exec('/usr/bin/rrdtool update /var/rrd/data/B6000801CA34E0.rrd
N:'.$daten);

No go !

 

shell_exec('/usr/bin/rrdtool update /var/rrd/data/B6000801CA34E0.rrd N:98');

No go!

 

on command promp 

/usr/bin/rrdtool update /var/rrd/data/B6000801CA34E0.rrd N:97'

 

 

No error or anything.

I made a dump to see if datas are running into the rrd database, but there
are only NaN entry’s.

Can anyone give me a hint why it is not running or what my error is?

 

 

 

/usr/bin/rrdtool dump /var/rrd/data/B6000801CA34E0.rrd >test.xlm

 

"<?xml";"version=""1.0""";"encoding=""utf-8""?>";;;;;;;

"<!DOCTYPE";"rrd";"SYSTEM";"http://oss.oetiker.ch/rrdtool/rrdtool.dtd>";;;;;
;

"<!--";"Round";"Robin";"Database";"Dump";"--><rrd>
<version>";3;"</version>";;

"              <step>";60;"</step>";"<!--";"Seconds";"-->";;;;

"
<lastupdate>";1295474221;"</lastupdate>";"<!--";"2011-01-19";"22:57:01";"CET
";"-->";;

;;;;;;;;;

"              <ds>";;;;;;;;;

"                             <name>";"tmp";"</name>";;;;;;;

"                             <type>";"GAUGE";"</type>";;;;;;;

"
<minimal_heartbeat>";120;"</minimal_heartbeat>";;;;;;;

"                             <min>";"-2.0000000000e+01";"</min>";;;;;;;

"                             <max>";"1.1000000000e+02";"</max>";;;;;;;

;;;;;;;;;

"                             <!--";"PDP";"Status";"-->";;;;;;

"                             <last_ds>";97;"</last_ds>";;;;;;;

"                             <value>";"1.8342063050e+02";"</value>";;;;;;;

"                             <unknown_sec>";0;"</unknown_sec>";;;;;;;

"              </ds>";;;;;;;;;

;;;;;;;;;

"<!--";"Round";"Robin";"Archives";"-->               <rra>";;;;;

"                             <cf>";"AVERAGE";"</cf>";;;;;;;

"
<pdp_per_row>";2;"</pdp_per_row>";"<!--";120;"seconds";"-->";;;

;;;;;;;;;

"                             <params>";;;;;;;;;

"                             <xff>";"5.0000000000e-01";"</xff>";;;;;;;

"                             </params>";;;;;;;;;

"                             <cdp_prep>";;;;;;;;;

"                                             <ds>";;;;;;;;;

"
<primary_value>";"0.0000000000e+00";"</primary_value>";;;;;;;

"
<secondary_value>";"0.0000000000e+00";"</secondary_value>";;;;;;;

"
<value>";"NaN";"</value>";;;;;;;

"
<unknown_datapoints>";1;"</unknown_datapoints>";;;;;;;

"                                             </ds>";;;;;;;;;

"                             </cdp_prep>";;;;;;;;;

"                             <database>";;;;;;;;;

 


Grüße/Regads

Marc Tobien

image004      

   

 

Marc Tobien 

( Direct: +49 4202 71079 |image005   Mobile: +49 17662866919  |  image006
Email:  <mailto:Marc.Tobien at eds.com> Marc at Tobien.net 

This e-mail (and any accompanying files or documents) may contain
information that is confidential, privileged or otherwise protected from
disclosure.  If you are not an intended recipient of this e-mail, do not
review, duplicate or redistribute it by any means.  Please delete it and any
attachments and notify the sender that you have received it in error.
Unintended recipients are prohibited from taking action on the basis of
information in this e-mail.

 

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/rrd-users/attachments/20110119/a4ee3b4b/attachment-0001.htm 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/octet-stream
Size: 1542 bytes
Desc: not available
Url : http://lists.oetiker.ch/pipermail/rrd-users/attachments/20110119/a4ee3b4b/attachment-0003.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/octet-stream
Size: 1054 bytes
Desc: not available
Url : http://lists.oetiker.ch/pipermail/rrd-users/attachments/20110119/a4ee3b4b/attachment-0004.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/octet-stream
Size: 972 bytes
Desc: not available
Url : http://lists.oetiker.ch/pipermail/rrd-users/attachments/20110119/a4ee3b4b/attachment-0005.obj 


More information about the rrd-users mailing list