Advertisement
Guest User

Untitled

a guest
Feb 5th, 2018
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.77 KB | None | 0 0
  1. http://your_prtg_server_ip/chart.png?type=graph&width=300&height=160&username=prtgadmin&password=prtgadmin&graphid=2&id=0
  2. The parameters are:
  3.  
  4. type: Must be set to "graph"
  5. graphid: Selects graph number (0=live, 1=last 48 hours, 2=30 days, 3=365 days)
  6. width: Width of the image in pixels
  7. height: Height of the image in pixels
  8. username: Username of a PRTG user account
  9. password: The password for this user account
  10. id: The object ID of the desired graph object
  11. graphstyling: allows to control some graph styles
  12. Display legend: graphstyling=showLegend%3D%271%27
  13. Hide legend: graphstyling=showLegend%3D%270%27
  14. Control font size: graphstyling=baseFontSize%3D%27XX%27 (xx is the font size)
  15. Control legend and font size at the same time: graphstyling=showLegend%3D%271%27+baseFontSize%3D%275%27
  16.  
  17. As of PRTG V13:
  18.  
  19. bgcolor
  20. plotcolor
  21. plotcolor1
  22. plotcolor2
  23. gridcolor
  24. Note: For more details and currently available options in your PRTG version, please navigate to PRTG API Documentation in your PRTG installation: Setup | PRTG API | Live Graphs
  25.  
  26. You can find the id of an object by navigating to the object in the web interface and looking at the id parameter of the URL.
  27.  
  28. You may have noticed that the URL above contains a username and a password which can imply security concerns. Please set up a dedicated user account that only has, e.g., "read" privileges for the root group and all underlying entries. Or choose one of the other options.
  29.  
  30. 3. Using Group, Device, or Sensor Graphs in Other Webpages (via the Maps Feature)
  31. Another option is to use graph PNG files from public maps. These PNG files can be accessed without a username/password combination by adding the Map ID to the image URL. Using this option you do not need to supply a username/password. The parameters are the same as above.
  32.  
  33. Create a new map and set enable the "Allow Public Access" option.
  34. Copy the mapid string as given in the Get HTML tab under Option 2 or 3. For example:
  35. 775A930E-6A91-4CFD-BC31-19AB6B68331C
  36. Edit the map and add the graphs you want to use externally to the map (this is important: only the graphs of objects that are actually shown on the map will be available).
  37. Now use the following URL for your charts (of course, adjusted to your settings):
  38.  
  39. http://YOUR_PRTG_SERVER_IP/public/chart.png?type=graph&id=2003&graphid=0&width=200&height=100&mapid=775A930E-6A91-4CFD-BC31-19AB6B68331C
  40. Note that authentication is now performed using the mapid parameter instead of username/password.
  41.  
  42. More
  43. See also How can I safely publish my PRTG data?
  44. For more API functions please see Introduction to the PRTG API Interface
  45. Created on Feb 3, 2010 4:26:15 PM by Ariane Anacker
  46. Last change on Dec 13, 2016 4:24:12 PM by Erhard Mikulik [Paessler Support]
  47. Permalink
  48.  
  49. Votes:
  50.  
  51. 0
  52. Your Vote:
  53.  
  54. hello. is it somehow possible to specify the scale? like for CPU load graphs, it always autoscales and for one graph, the max might be 25%, for another its 40% etc. besides each other on a overview page with many server cpu graphs aside each other, this looks funny and non conclusive. i would like to fix the scale to 100% for all of them. thanks for some insights, lukas
  55.  
  56. Created on Apr 23, 2014 5:24:49 PM by Lukas Frei (0)
  57. Permalink
  58.  
  59. Votes:
  60.  
  61. 0
  62. Your Vote:
  63.  
  64. Lukas, please try using manual scaling in the Channel Settings on those sensors (that shall have their graphs published). This might help.
  65.  
  66. Created on Apr 24, 2014 1:06:53 PM by Torsten Lindner [Paessler Support]
  67. Permalink
  68.  
  69. Please log in or register to enter your reply.
  70.  
  71.  
  72.  
  73. Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement