Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 30534

Re: Service Automation - Service Desks

$
0
0

Check out http://chart.api.google.com and  developers.google.com/chart for more detail

An example of a simple chart is

https://chart.googleapis.com/chart?cht=p3&chs=250x100&chd=t:22,22,22,4,30&chl=Server|WKS|Mac|Linux|Other

Just paste the above into your browser and see what happens

The trick is having this graph saved as a image file so it can then be included in your notes

The command used in the kaseya SD script would be somthing like

ExecuteCommandShell

cmd /c "[=userprofilefolder=]\..\webpages\install\curl.exe" "chart.googleapis.com/chart|WKS|Mac|Linux|Other" -o "[=userprofilefolder=]\[$TicketId$]-Random-image.png"

As this actually runs on the Kaseya Server you need to define using the userprofile where to store the image

Then to add the file just created to your ticket note use an Add Note step with

<img src="/images/chartimages/[$TicketId$]-Random-image.png" width="300" height="225" alt="" />

This is in theory how it works .. I'm just testing it and will try and post an actual working example ( with some hard coded values for the chart)

In a real situation you need to query the SQL database for the actual values you intend to graph

Paul


Viewing all articles
Browse latest Browse all 30534

Trending Articles