Joe Williams

Datto Backups & Devices

Recommended Posts

I figured I would share these with anyone who would want them.

The first DataSource reaches out to the Datto Portal and gathers info on the BCDR via the Datto portal and utilizing their REST API. It is ATFZGD.
As part of this DataSource, it pulls basically all values that are provided and a few complex just to convert KB to GB and get percentages.

  • Active Tickets
  • Agent Count
  • Alert Count
  • Local Storage Available
  • Local Storage Used
  • Offsite Storage Used
  • Share Count

The second one pulls the same BCDR devices and gets the backup status from them. It is 2KZEKJ.
As part of this DataSrouce, we pull the below info. Also as part of this, we have active discovery set to every hour so the error message for the backup can be used as an auto property, that we can then pull into the alert message.
There are 2 complex data points as well. 1 is so archived backups in error don't trigger and another so paused backups in archive don't trigger.

  • Archived
  • Last Backup Status
  • Last Backup Timestamp
  • Last Offsite
  • Last Screenshot Attempt
  • Last Screenshot Attempt Status
  • Last Snapshot
  • Paused
  • Protected Volumes Count
  • Total Local Snapshots
  • Unprotected Volumes Count

Share this post


Link to post
Share on other sites
On 2/21/2020 at 1:13 PM, Joe Williams said:

I figured I would share these with anyone who would want them.

The first DataSource reaches out to the Datto Portal and gathers info on the BCDR via the Datto portal and utilizing their REST API. It is ATFZGD.
As part of this DataSource, it pulls basically all values that are provided and a few complex just to convert KB to GB and get percentages.

  • Active Tickets
  • Agent Count
  • Alert Count
  • Local Storage Available
  • Local Storage Used
  • Offsite Storage Used
  • Share Count

The second one pulls the same BCDR devices and gets the backup status from them. It is 2KZEKJ.
As part of this DataSrouce, we pull the below info. Also as part of this, we have active discovery set to every hour so the error message for the backup can be used as an auto property, that we can then pull into the alert message.
There are 2 complex data points as well. 1 is so archived backups in error don't trigger and another so paused backups in archive don't trigger.

  • Archived
  • Last Backup Status
  • Last Backup Timestamp
  • Last Offsite
  • Last Screenshot Attempt
  • Last Screenshot Attempt Status
  • Last Snapshot
  • Paused
  • Protected Volumes Count
  • Total Local Snapshots
  • Unprotected Volumes Count

Hi Joe,

 

Are you able to give me a few pointers on how you are creating a resource as the datto device? Which properties etc.

 

Thank You

Share this post


Link to post
Share on other sites
On 2/21/2020 at 7:13 AM, Joe Williams said:

ATFZGD

@Jon Durbridge, you would find it in the exchange under the locator @Joe Williams mentioned: ATFZGD. Go to your datasources page, click add, then add from exchange and put in the locator code. That should download it. 

Share this post


Link to post
Share on other sites

I got the datasources added, I added a device property called datto.api.key and populated it with my encoded key. The test within the datasource is reporting an HTTP 403 error. Any direction to resolve this would be appreciated. I am able to query the API successfully using the Curl commands that Datto provides.

Share this post


Link to post
Share on other sites

Passing this on for the next person.

I got this working, it appears that my API key format was wrong. The format must be in "public:secret" as the value in the device property for datto.api.key. While this format might be common knowledge for some it wasn't for me so I hope this helps someone else down the road.

  • Upvote 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.