# Sensuctl Asset usage!

**URL:** <https://discourse.sensu.io/t/sensuctl-asset-usage/1299>\
**Category:** Sensu Go\
**Created:** [August 2, 2019, 5:44pm UTC](https://discourse.sensu.io/t/sensuctl-asset-usage/1299 "2019-08-02T17:44:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![viviraj20](https://avatars.discourse-cdn.com/v4/letter/v/13edae/32.png) [@viviraj20](https://discourse.sensu.io/u/viviraj20)\
**Post date:** [August 2, 2019, 5:44pm UTC](https://discourse.sensu.io/t/sensuctl-asset-usage/1299/1 "2019-08-02T17:44:54Z")

</div>

Hi Team,

Can i download asset tar file locally and use it?  
Because i downloaded asset tar file locally for sensu-plugins-cpu-checks & sensu-ruby-runtime\_0.0.8\_ruby.  
I uploaded to them to my local repo and using related sha512. Its not working for me.

Its throwing, **check-cpu — error getting assets for event:**  
sha512 ‘518e7c17cf670393045bff4af318e1d35955bfde166e9ceec2b469109252f79043ed133241c4dc96501b6636a1ec5e008ea9ce055d1609865635d4f004d7187b’ **does not match specified**  
sha512: ‘df10f1d8bdf0ccbc6540cd89d643b7cee119ed0ccbed29e187600ee8b262dc3d66f24a518c29f98f5bde5cfe8d613efc8178df6e43d9d82f017a5239a003b0b2’

how can i fix it? Please help me.

Thanks  
Viv.

---

<div class="post-metadata">

**Author:** ![calebhailey](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/calebhailey/32/46_2.png) [@calebhailey](https://discourse.sensu.io/u/calebhailey)\
**Post date:** [August 2, 2019, 7:14pm UTC](https://discourse.sensu.io/t/sensuctl-asset-usage/1299/2 "2019-08-02T19:14:00Z")

</div>

Yes, it is absolutely possible to host assets behind your firewall! I do this in my dev environment using a simple NGINX server running in Docker. In fact, this error suggests that your local repo is configured correctly, and the Sensu agent is able to download the asset, so you did everything right there.

This error is telling you that the SHA512 provided in your Asset definition doesn’t match the SHA512 of the file the agent fetched from the server.

Double check your Asset configuration. If you need to troubleshoot, try downloading the asset and checking the SHA yourself; on a linux system you should be able to run the following commands:

```auto
$ curl -LO http://<host>:<port>/<path>/<asset>.tar.gz 
$ shasum -a 512 <asset>.tar.gz

```

I hope this helps!

---

<div class="post-metadata">

**Author:** ![viviraj20](https://avatars.discourse-cdn.com/v4/letter/v/13edae/32.png) [@viviraj20](https://discourse.sensu.io/u/viviraj20)\
**Post date:** [August 6, 2019, 5:50pm UTC](https://discourse.sensu.io/t/sensuctl-asset-usage/1299/3 "2019-08-06T17:50:11Z")

</div>

Great! it works  
Thanks @calebhailey

---

<div class="post-metadata">

**Author:** ![calebhailey](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/calebhailey/32/46_2.png) [@calebhailey](https://discourse.sensu.io/u/calebhailey)\
**Post date:** [August 6, 2019, 5:53pm UTC](https://discourse.sensu.io/t/sensuctl-asset-usage/1299/4 "2019-08-06T17:53:01Z")

</div>

Awesome. Glad I could help!
