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:[email protected]> [email protected] 

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.

 

 

<<attachment: image001.jpg>>

<<attachment: image002.gif>>

<<attachment: image003.gif>>

_______________________________________________
rrd-users mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/rrd-users

Reply via email to