rrdtool NAN

rrdtool NAN - Codes et scripts - Linux et OS Alternatifs

Marsh Posté le 22-05-2008 à 17:27:27    

Hi all!
J'ai ecris un scrip qui fait ça:

Code :
  1. nsp-nms:/usr/local/cacti/scripts#./snmp_netflow.pl 172.16.255.105
  2. 32:0.1 64:27.3nsp-nms:/usr/local/cacti/scripts#
 

J'ai aussi essayer sans virgule:

Code :
  1. nsp-nms:/usr/local/cacti/scripts#./snmp_netflow.pl 172.16.255.105
  2. 32:0 64:27nsp-nms:/usr/local/cacti/scripts#
 


Mon probleme est que rrdtool ne collecte pas les donnée (j'utilise cacti en fait)

Code :
  1. nsp-nms:/usr/local/cacti/scripts#rrdtool fetch pod5_32_765.rrd LAST
  2. timestamp    32                64
  3. 1211382360:  nan  nan
  4. 1211382540:  nan  nan
  5. 1211382720:  nan  nan
  6. 1211382900:  nan  nan
  7. 1211383080:  nan  nan
  8. 1211383260:  nan  nan
  9. 1211383440:  nan  nan
  10. 1211383620:  nan  nan
  11. 1211383800:  nan  nan
  12. 1211383980:  nan  nan
  13. 1211384160:  nan  nan
  14. 1211384340:  nan  nan
 

J'ai trouver cette commande, mais cela ne m'avance pas beaucoup...

Code :
  1. nsp-nms:/usr/local/cacti/rra# rrdtool info pod5_32_765.rrd
  2. filename = "pod5_32_765.rrd"
  3. rrd_version = "0001"
  4. step = 30
  5. last_update = 1211469608
  6. ds[32].type = "GAUGE"
  7. ds[32].minimal_heartbeat = 60
  8. ds[32].min = 0.0000000000e+00
  9. ds[32].max = 1.0000000000e+02
  10. ds[32].last_ds = "UNKN"
  11. ds[32].value = 0.0000000000e+00
  12. ds[32].unknown_sec = 8
  13. ds[64].type = "GAUGE"
  14. ds[64].minimal_heartbeat = 60
  15. ds[64].min = 0.0000000000e+00
  16. ds[64].max = 1.0000000000e+02
  17. ds[64].last_ds = "UNKN"
  18. ds[64].value = 0.0000000000e+00
  19. ds[64].unknown_sec = 8
  20. rra[0].cf = "AVERAGE"
  21. rra[0].rows = 600
  22. rra[0].pdp_per_row = 1
  23. rra[0].xff = 5.0000000000e-01
  24. rra[0].cdp_prep[0].value = NaN
  25. rra[0].cdp_prep[0].unknown_datapoints = 0
  26. rra[0].cdp_prep[1].value = NaN
  27. rra[0].cdp_prep[1].unknown_datapoints = 0
  28. rra[1].cf = "AVERAGE"
  29. rra[1].rows = 700
  30. rra[1].pdp_per_row = 6
  31. rra[1].xff = 5.0000000000e-01
  32. rra[1].cdp_prep[0].value = NaN
  33. rra[1].cdp_prep[0].unknown_datapoints = 4
  34. rra[1].cdp_prep[1].value = NaN
  35. rra[1].cdp_prep[1].unknown_datapoints = 4
  36. rra[2].cf = "AVERAGE"
  37. rra[2].rows = 775
  38. rra[2].pdp_per_row = 24
  39. rra[2].xff = 5.0000000000e-01
  40. rra[2].cdp_prep[0].value = NaN
  41. rra[2].cdp_prep[0].unknown_datapoints = 16
  42. rra[2].cdp_prep[1].value = NaN
  43. rra[2].cdp_prep[1].unknown_datapoints = 16
  44. rra[3].cf = "AVERAGE"
  45. rra[3].rows = 797
  46. rra[3].pdp_per_row = 288
  47. rra[3].xff = 5.0000000000e-01
  48. rra[3].cdp_prep[0].value = NaN
  49. rra[3].cdp_prep[0].unknown_datapoints = 112
  50. rra[3].cdp_prep[1].value = NaN
  51. rra[3].cdp_prep[1].unknown_datapoints = 112
  52. rra[4].cf = "MIN"
  53. rra[4].rows = 600
  54. rra[4].pdp_per_row = 1
  55. rra[4].xff = 5.0000000000e-01
  56. rra[4].cdp_prep[0].value = NaN
  57. rra[4].cdp_prep[0].unknown_datapoints = 0
  58. rra[4].cdp_prep[1].value = NaN
  59. rra[4].cdp_prep[1].unknown_datapoints = 0
  60. rra[5].cf = "MIN"
  61. rra[5].rows = 700
  62. rra[5].pdp_per_row = 6
  63. rra[5].xff = 5.0000000000e-01
  64. rra[5].cdp_prep[0].value = NaN
  65. rra[5].cdp_prep[0].unknown_datapoints = 4
  66. rra[5].cdp_prep[1].value = NaN
  67. rra[5].cdp_prep[1].unknown_datapoints = 4
  68. rra[6].cf = "MIN"
  69. rra[6].rows = 775
  70. rra[6].pdp_per_row = 24
  71. rra[6].xff = 5.0000000000e-01
  72. rra[6].cdp_prep[0].value = NaN
  73. rra[6].cdp_prep[0].unknown_datapoints = 16
  74. rra[6].cdp_prep[1].value = NaN
  75. rra[6].cdp_prep[1].unknown_datapoints = 16
  76. rra[7].cf = "MIN"
  77. rra[7].rows = 797
  78. rra[7].pdp_per_row = 288
  79. rra[7].xff = 5.0000000000e-01
  80. rra[7].cdp_prep[0].value = NaN
  81. rra[7].cdp_prep[0].unknown_datapoints = 112
  82. rra[7].cdp_prep[1].value = NaN
  83. rra[7].cdp_prep[1].unknown_datapoints = 112
  84. rra[8].cf = "MAX"
  85. rra[8].rows = 600
  86. rra[8].pdp_per_row = 1
  87. rra[8].xff = 5.0000000000e-01
  88. rra[8].cdp_prep[0].value = NaN
  89. rra[8].cdp_prep[0].unknown_datapoints = 0
  90. rra[8].cdp_prep[1].value = NaN
  91. rra[8].cdp_prep[1].unknown_datapoints = 0
  92. rra[9].cf = "MAX"
  93. rra[9].rows = 700
  94. rra[9].pdp_per_row = 6
  95. rra[9].xff = 5.0000000000e-01
  96. rra[9].cdp_prep[0].value = NaN
  97. rra[9].cdp_prep[0].unknown_datapoints = 4
  98. rra[9].cdp_prep[1].value = NaN
  99. rra[9].cdp_prep[1].unknown_datapoints = 4
  100. rra[10].cf = "MAX"
  101. rra[10].rows = 775
  102. rra[10].pdp_per_row = 24
  103. rra[10].xff = 5.0000000000e-01
  104. rra[10].cdp_prep[0].value = NaN
  105. rra[10].cdp_prep[0].unknown_datapoints = 16
  106. rra[10].cdp_prep[1].value = NaN
  107. rra[10].cdp_prep[1].unknown_datapoints = 16
  108. rra[11].cf = "MAX"
  109. rra[11].rows = 797
  110. rra[11].pdp_per_row = 288
  111. rra[11].xff = 5.0000000000e-01
  112. rra[11].cdp_prep[0].value = NaN
  113. rra[11].cdp_prep[0].unknown_datapoints = 112
  114. rra[11].cdp_prep[1].value = NaN
  115. rra[11].cdp_prep[1].unknown_datapoints = 112
  116. rra[12].cf = "LAST"
  117. rra[12].rows = 600
  118. rra[12].pdp_per_row = 1
  119. rra[12].xff = 5.0000000000e-01
  120. rra[12].cdp_prep[0].value = NaN
  121. rra[12].cdp_prep[0].unknown_datapoints = 0
  122. rra[12].cdp_prep[1].value = NaN
  123. rra[12].cdp_prep[1].unknown_datapoints = 0
  124. rra[13].cf = "LAST"
  125. rra[13].rows = 700
  126. rra[13].pdp_per_row = 6
  127. rra[13].xff = 5.0000000000e-01
  128. rra[13].cdp_prep[0].value = NaN
  129. rra[13].cdp_prep[0].unknown_datapoints = 4
  130. rra[13].cdp_prep[1].value = NaN
  131. rra[13].cdp_prep[1].unknown_datapoints = 4
  132. rra[14].cf = "LAST"
  133. rra[14].rows = 775
  134. rra[14].pdp_per_row = 24
  135. rra[14].xff = 5.0000000000e-01
  136. rra[14].cdp_prep[0].value = NaN
  137. rra[14].cdp_prep[0].unknown_datapoints = 16
  138. rra[14].cdp_prep[1].value = NaN
  139. rra[14].cdp_prep[1].unknown_datapoints = 16
  140. rra[15].cf = "LAST"
  141. rra[15].rows = 797
  142. rra[15].pdp_per_row = 288
  143. rra[15].xff = 5.0000000000e-01
  144. rra[15].cdp_prep[0].value = NaN
  145. rra[15].cdp_prep[0].unknown_datapoints = 112
  146. rra[15].cdp_prep[1].value = NaN
  147. rra[15].cdp_prep[1].unknown_datapoints = 112
 

Je desepére, alors j'espére que vous pourrai m'aider!


Message édité par ninititine le 22-05-2008 à 17:54:15
Reply

Marsh Posté le 22-05-2008 à 17:27:27   

Reply

Marsh Posté le 23-05-2008 à 13:25:14    

Personne ne peu me dire pourquoi j'ai
rra[14].cdp_prep[0].value = NaN
???
 
Je me demande aussi si mon script à le bon format de sortie...

Reply

Marsh Posté le 23-05-2008 à 13:26:40    

NaN ça veut dire "Not a Number" :jap:


---------------
Wedge#2487 @HS -#- PW: +∞ -#- Khaz-Modan/Boltiz @WoW
Reply

Marsh Posté le 23-05-2008 à 14:34:56    

Merci pour l'info!
 
Mais alors rrdtool recoi un truc qui n'est pas bon!!
Je dois envoyer quoi a rrdtool?
32:5 64:6
ou 32:64 5:6
(dans cet exemple 5% de paquet de taille de 32 octets et 6% de paquet de taille 64 octets)
 
Il faut peut-etre un /n à la fin?
ou je suis completement à coté???
 
Merci pour le coup de main

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed