[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can access RRD using BASH but not using PYTHON #1179

Open
sebastianet opened this issue May 17, 2022 · 0 comments
Open

can access RRD using BASH but not using PYTHON #1179

sebastianet opened this issue May 17, 2022 · 0 comments

Comments

@sebastianet
Copy link
sebastianet commented May 17, 2022

Hi. I can access the same RRD using Bash code (1-bellow) but no using python (2-bellow).
I am using "RRDtool 1.7.1" with "Python 2.7.16" under Raspberry "Raspbian GNU/Linux 10 (buster)"
Any ideas ?

=== (1) bash ===

rrdtool xport                                        \
        --start now-1min --end now        \
        --step 5  --json   -t                       \
        DEF:xx=../pkw.rrd:Pprod:MAX    \
        XPORT:xx 

===

Output is :

===

{ "about": "RRDtool graph JSON output",
  "meta": {
    "start": 1652807370,
    "end": 1652807425,
    "step": 5,
    "legend": [
      ""
          ]
     },
  "data": [
    [ "1652807370",9.745446652e+02 ],
    [ "1652807375",9.754641829e+02 ],

===

=== (2) python ===

rrdtool.xport ( '--start', 'now-1min',
                      '--end',   'now',
                      '--step',  '5',
                      '--json',
                      '-t',
                      'DEF:xx=../pkw.rrd:Pprod:MAX',
                      'XPORT:xx' )
```===

*** NO OUTPUT AT ALL, no error ***
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant