Skip navigation
26327 Views 3 Replies Latest reply: Apr 7, 2011 1:39 PM by linkslice RSS
prohosting Newbie 1 posts since
Oct 18, 2009
Currently Being Moderated

Oct 18, 2009 8:40 PM

External Data Feed / External Graphs

HI, we are trying to work out how we can add for example a users VPS or Dedicated Server to Zenoss and then pull that data remotely into a certain clients control panel in WHMCS.

 

Does any one know how this can be done?

 

Thanks

 

John

  • guyverix ZenossMaster 846 posts since
    Jul 10, 2007
    Currently Being Moderated
    1. Oct 19, 2009 7:58 PM (in response to prohosting)
    Re: External Data Feed / External Graphs
    You could cheat for external graphs.  Create an NFS share from /user/local/zenoss/zenoss/perf/Devices and map it to something else on a remote web server.  Since RRD is not being used in any really screwy way, anything that can read the RRD files should be able to show the graphs correctly.  Currently I am using ddraw and a template system to view externally some of my RRD data.
  • agryanko Newbie 4 posts since
    Jun 18, 2009
    Currently Being Moderated
    2. Mar 29, 2011 7:40 PM (in response to prohosting)
    Re: External Data Feed / External Graphs
    #!/bin/bash
    
    
    
    echo " Fetching data for host111.ru"
    wget    --keep-session-cookies \
     --save-cookies ~/.graph_cookies \
     --post-data='came_from=http%3A%2F%2Fhost139.ru%3A8080%2Fzport%2Fdmd%2F&submitted=true&__ac_name=NAME&__ac_password=PASSWORD&submitbutton=' \
     http://host139.ru:8080/zport/acl_users/cookieAuthHelper/login \
     -O - &>/dev/null
    
    
    
    wget    --load-cookies ~/.graph_cookies \
     'http://host139.ru:8080/zport/RenderServer/render?gopts=eNqtk1trwjAUgP-KIHszbVJwaCAPZVYnVBndhT0Io2sTzYhtSauOkR-_VhzUmGopy0t64FzS8_GBqQKeAmBD-XpTEARhGYj0QCUQfMsLUsWSr3lc3nsqCx6FAojwkwqSyTSieU5z9Ri8-h5GjgX7I1gdvCnb9UQaxqsvNfGmWIR-GcyTAg2BDA_ETrPC_qFJmud2RiWzJ3TPy272aGQ5ZSMHOhZCdq3so_ZtSRnjOIfYffMCd-aZRoBt-P1fYxbuu3q4mJElRJs5KPc3sI2px-cYnthQQrRy5Qaeq_fsQxhFEDKG0bC34MmuoL3qqNlTMF--6OnYd59fcLSTK3x3bzmCNeWdtorD_fpGavUH1XZwef-l6sS7Aa-BuIG7O23jjEvWGupm0gbQ1zkPyXmt8udLD2kN-5VQjI3H-AzyJeWWkNszbo0YdXO65toNo7sLbZph0FmzuVlmg8vXVSbntTpidELM2BExuo4YtfS4vcbNiH8BqD7_Hw==&drange=129600&width=500&start=end-129600s&end=now-0s' \
     -O ~/graph/host111_la.png &>/dev/null
    
    
    
    wget    --load-cookies ~/.graph_cookies \
     'http://host139.ru:8080/zport/RenderServer/render?gopts=eNqtk11rgzAUhv-KUHo11CgM2kAuxNpS1pVhu4-LgjiNbYb9ILHtNvzxS1a10VVFWG6Sc_KevMl5iDpOVSdV1Q0m602CDAB4EO_PmKox2ZIEiZiSNQn5fMI0IYEfq7H_jmN0wDTAu0S5S0fOGDJmH46LL5bgrUr9M9L3h0T_xrs9YzpXRvoIn0iAmT4YaKZhaiYwNcPQpTJPWmuUhjBkAFovjmtNnFsW6tb__C-bR-sttSseqOKXWq5jVS_RAyAIAIgieMkp2YCLpWU_pJMndzpfVovgzFosYXCkK9i_14w46vfrlNn7oX9at4pFQ8RLIJ-v4tXHtXnPjIPtSkcUecWqnkx-eGcuNQZlJmILlXwkHnmK0xAsOA2RUZQGGnlJG4tC105CbkAzB9c_v_ok6Ywiq_PkoB6I5NKZSaNTmUy2i6qe6Ww6d4w_V-ldCA2HUGSujEqtlPRtgGRpO6NKT5oxTcMYd2YkirxiVU8nP7wzmhqDMhSxhUo-0nfJUz37d3AUIlODIhe3cSh07RDkp98i8AOzxDUP&drange=86400&width=500&start=end-86400s&end=now-44928s' \
     -O ~/graph/host111_cpu.png &>/dev/null
    
    
    
    wget    --load-cookies ~/.graph_cookies \
     'http://host139.ru:8080/zport/RenderServer/render?gopts=eNqtlV1vgjAUhv_KEuPNQqHgRG3CBdvQmLhl0W3ZhYlhUJQFlYAfy8KPX5GVFvkQzLiBHs55X8p50gOGETAiAFbYXa52mgwhWex9HwfAc9cujQTu0rXJ3dse0zd8_ICDnWuZHvDMT-xppNzCm130aAzRGq_1g-l6U0xeB-ZRk7b-TvrBm20YSiTRkR7xwbVwKPX7oiIrogIVUZYlvm7BL8QgsJEdQqS_G1N9ZBS6gLX5_X9OT_pH9JC38Tfaua8gQ-VOuBU6nV5XVaHSUfuCJMgCEAD5k8Jtsczpa4u20FxOO9eO9Kmh5xxbEFoWhI6D3kJs36RXNHqZjp9fc_loos9ekbUP5qjdFWXPabdLU__6gszD8nJ2vMv4_yJyZ9nzL9rV-73jEOSagZMULdKnMmSYeENeSg14Uqh6ggnzKmlqpp-slrKR_db6GlpGLaWBhQgKMQiDAUpiFAeuYyy5mgMu7xIE2Q1WEfBgWitsNyQgKVqkT2UEMPGGBJQa8ARQ9YQA5lWne6yWEpD91voaWkYtJYCFWnH_TwQksYLDgCVXE8DlXSIgu8EqAk4Hxuxo-tfMj7huwS8q5wd1uWZ-lDvl5kdiw80P6ku7Kqu93qCrdiCsOvCpTGZ-8FtoLqeda0eT8bOh5CxbjhOfG4SZOFI-QGh-jQGSptYaIPzei-D5BV9j3KQ=&drange=86400&width=500&start=end-86400s&end=now-44928s' \
     -O ~/graph/host111_mem.png &>/dev/null
    
    
    
    wget    --load-cookies ~/.graph_cookies \
     'http://host139.ru:8080/zport/RenderServer/render?gopts=eNqtkVFLwzAUhf-KIHtMmxaELdCH4LpRmFO6oT4MRpbedpFuHUlsVfLjbWGbNVQrw7zcXDiXc-_50MSg0CC0BZFtdeBhXDd5UYFEudgJHTS9FJlI6lqC1IKzHOVsA3mwedegXAXcjMMJUSq6j1m1gL1GklWBWxy0-wH7Qin3ADJ1x1AKXg8Mh47v-Y6Pfcfz3NbYuvV3pExIojChj2FMp2GXBdqxt_-yuaPP5tbyCCw_Q-OQ2ktcY8w5xmlKnqSo87g6PjN9iKP50paTGV0sCX-VKzK4cfw8HaiflMfLCSuzXnETRXMDqeuXePXSji0GDqKE5AI6p9G11f9GqW13AaleS5vYSRB0-JtZNA-9rs1qfA280YjEwJIzPRtfe6Qf4Tf1XzDaWXWh_ASmVTyr&drange=86400&width=500&start=end-86400s&end=now-44928s' \
     -O ~/graph/host111_io.png &>/dev/null
    
    
    
    
    rm ~/.graph_cookies
    
    
    

     

    I'm testing this "hack" for downloading images from another openvz container. It's works, but I don't know that is "gopts". I'm testing this "hack" for downloading images from another openvz container. It's works, but I don't know that is "gopts". Have you found another solution?

More Like This

  • Retrieving data ...

Legend

  • Correct Answers - 4 points
  • Helpful Answers - 2 points