# Configuring zping

**URL:** <https://openziti.discourse.group/t/configuring-zping/476>\
**Category:** Zitifications\
**Created:** [May 9, 2022, 9:34am UTC](https://openziti.discourse.group/t/configuring-zping/476 "2022-05-09T09:34:08Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![markamind](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/markamind/32/157_2.png) [@markamind](https://openziti.discourse.group/u/markamind)\
**Post date:** [May 9, 2022, 9:34am UTC](https://openziti.discourse.group/t/configuring-zping/476/1 "2022-05-09T09:34:08Z")

</div>

I noticed some pretty cool tools and thought to give them a go.

I thought to start with zping

> <https://github.com/openziti/sdk-golang/tree/main/example/zping>
>
> //github.com/openziti/sdk-golang/tree/main/example/zping

Rather than recreate the identities.. I was going to use the same as I had setup for the zssh demo.

The commands that I ran to setup the environment are

> ziti edge create service ziti-ping --configs zssh-server-host.v1

> ziti edge create service-policy ziti-ping-binding Bind --service-roles '@ziti-ping' --identity-roles '@ssh.server.id'

> ziti edge create service-policy ziti-ping-dialing Dial --service-roles '@ziti-ping --identity-roles '@ssh.client.id'

Then.. I used the following command to perform the test... after I have confirmed that the terminator was running

> ./zping client -c /Users/houst/.zssh/zssh.json -i [http://golanghttp.zitified:2000](http://golanghttp.zitified:2000)

However.. when I do this.. I get the following error

> Error dialing service error="service 'ziti-ping' not found"

Let me know if you have any ideas on what I am missing..

---

<div class="post-metadata">

**Author:** ![markamind](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/markamind/32/157_2.png) [@markamind](https://openziti.discourse.group/u/markamind)\
**Post date:** [May 9, 2022, 9:57am UTC](https://openziti.discourse.group/t/configuring-zping/476/2 "2022-05-09T09:57:50Z")

</div>

> [@markamind](#):
>
> ziti edge create service-policy ziti-ping-dialing Dial --service-roles '@ziti-ping --identity-roles ‘@ssh.client.id’

I realised that the client dial policy did not get created.. this is now fixed but I get a different error

> $ ./zping client -c /Users/houst/.zssh/zssh.json -i [http://golanghttp.zitified:2000](http://golanghttp.zitified:2000)

> INFO[0000] connection to edge router using token 7b2de054-6195-4e2c-81f4-9b0ec7f87bcf  
> ERRO[0000] Error dialing service error="unable to dial service 'ziti-ping': dial failed: service oCI.T4Y8zs has no terminators"

I have had something like this before but cannot remember how to correct..

I think I need to setup a host.. but are not sure of the configuration

---

<div class="post-metadata">

**Author:** ![TheLumberjack](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/thelumberjack/32/113_2.png) [@TheLumberjack](https://openziti.discourse.group/u/TheLumberjack)\
**Post date:** [May 9, 2022, 10:17am UTC](https://openziti.discourse.group/t/configuring-zping/476/3 "2022-05-09T10:17:01Z")

</div>

> [@markamind](#):
>
> error=“service ‘ziti-ping’ not found”

This is almost always a dial or bind policy issue. Usually misassigned policies for the identity. You figured that out on your own, nice!

> [@markamind](#):
>
> error=“unable to dial service ‘ziti-ping’: dial failed

This is almost always one of two things. You're dialing an endpoint which is offline or your dialing a service which is bound by a particular identity without specifying the dial options which indicate which identity to dial.

You can run `ziti edge list terminators` to see if any terminators exist. There needs to be one listed. If none are listed you have no identities binding the service online. If one is listed, it should be tied to an identity.

I expect you don't have any terminators and no identity has bound that service yet

---

<div class="post-metadata">

**Author:** ![markamind](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/markamind/32/157_2.png) [@markamind](https://openziti.discourse.group/u/markamind)\
**Post date:** [May 9, 2022, 10:47am UTC](https://openziti.discourse.group/t/configuring-zping/476/4 "2022-05-09T10:47:01Z")

</div>

Thanks.. getting close.. though I am thinking I am missing something.. maybe a quick demo would be helpful to illustrate.

I have confirmed that the endpoint [[http://golanghttp.zitified:2000](http://golanghttp.zitified:2000)] is active using a Desktop tunneller.

Though the problem appears related to the ziti-ping service.

Is there something you need to run on the server for a terminator to appear?

> or.. do you need to provide all access to the service policies.. so that the "client" can see the golanghttp service.

In short, I am not really sure what the ziti-ping service does or how to get its terminator going

---

<div class="post-metadata">

**Author:** ![markamind](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/markamind/32/157_2.png) [@markamind](https://openziti.discourse.group/u/markamind)\
**Post date:** [May 9, 2022, 11:03am UTC](https://openziti.discourse.group/t/configuring-zping/476/5 "2022-05-09T11:03:31Z")

</div>

Ahh.. think I found it.. I have not setup an addressable terminator

I was going to use something like this

ziti edge create config ziti-ping-server host.v1 '{"protocol":"tcp", "address":"127.0.0.1","port":22, "listenOptions": {"bindUsingEdgeIdentity":true} }'

Ahh.. and then I would need to reconfigure the service so that it uses this config...

> will give it a go to see if it works

---

<div class="post-metadata">

**Author:** ![markamind](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/markamind/32/157_2.png) [@markamind](https://openziti.discourse.group/u/markamind)\
**Post date:** [May 9, 2022, 11:18am UTC](https://openziti.discourse.group/t/configuring-zping/476/6 "2022-05-09T11:18:49Z")

</div>

I ran the following... which I think creates the addressable terminator

> > not sure if it should be a host.v1.. or a tunneller.v1 etc..  
> > also not sure about the port number.. as I did not see this being something used in a ping request

ziti edge create config ziti-ping-host.v1 host.v1 '{"protocol":"tcp", "address":"127.0.0.1","port":30, "listenOptions": {"bindUsingEdgeIdentity":true} }'

ziti edge create service ziti-ping --configs ziti-ping-host.v1

> any tips re what else I can do?

---

<div class="post-metadata">

**Author:** ![markamind](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/markamind/32/157_2.png) [@markamind](https://openziti.discourse.group/u/markamind)\
**Post date:** [May 9, 2022, 11:34am UTC](https://openziti.discourse.group/t/configuring-zping/476/7 "2022-05-09T11:34:31Z")

</div>

hmm.. maybe this is the mistake that I am making

> 1. Enroll the endpoints with the zping binary

So... does this mean that you need to enrol the identities using zping ... as opposed to another app like zssh?

I will set up a fresh config with new identities tomorrow..

---

<div class="post-metadata">

**Author:** ![TheLumberjack](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/thelumberjack/32/113_2.png) [@TheLumberjack](https://openziti.discourse.group/u/TheLumberjack)\
**Post date:** [May 9, 2022, 11:39am UTC](https://openziti.discourse.group/t/configuring-zping/476/8 "2022-05-09T11:39:41Z")

</div>

Fresh identities are not necessary. It’d be helpful to see the list of things you did in a short list, maybe some bullets. Looking at the doc, I don’t see anywhere that you started the zping server. You will need zping running as ‘server’ somewhere:

```auto
./zping server -c zpingendpoint1.json

```

---

<div class="post-metadata">

**Author:** ![plorenz](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/plorenz/32/54_2.png) [@plorenz](https://openziti.discourse.group/u/plorenz)\
**Post date:** [May 9, 2022, 4:47pm UTC](https://openziti.discourse.group/t/configuring-zping/476/9 "2022-05-09T16:47:11Z")

</div>

If you’re interested in getting insight into the network, you can also try

```auto
ziti edge traceroute <service-name> -c <identity-config.json> 

```

This will show route trip latency for each hop in the ziti circuit.

Cheers,  
Paul

---

<div class="post-metadata">

**Author:** ![markamind](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/markamind/32/157_2.png) [@markamind](https://openziti.discourse.group/u/markamind)\
**Post date:** [May 9, 2022, 6:53pm UTC](https://openziti.discourse.group/t/configuring-zping/476/10 "2022-05-09T18:53:12Z")

</div>

> [@TheLumberjack](#):
>
> I don’t see anywhere that you started the zping server. You will need zping running as ‘server’ somewhere:

Ahh.. that will be the problem.. makes sense now 🙂

---

<div class="post-metadata">

**Author:** ![markamind](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/markamind/32/157_2.png) [@markamind](https://openziti.discourse.group/u/markamind)\
**Post date:** [May 9, 2022, 6:54pm UTC](https://openziti.discourse.group/t/configuring-zping/476/11 "2022-05-09T18:54:32Z")

</div>

> [@plorenz](#):
>
> If you’re interested in getting insight into the network, you can also try
> 
> ```auto
> ziti edge traceroute <service-name> -c <identity-config.json> 
> 
> ```
> 
> This will show route trip latency for each hop in the ziti circuit.

This is very helpful.. thanks.. as it give me one more tool to investigate and understand problems. Nice 🙂

---

<div class="post-metadata">

**Author:** ![markamind](https://yyz2.discourse-cdn.com/free1/user_avatar/openziti.discourse.group/markamind/32/157_2.png) [@markamind](https://openziti.discourse.group/u/markamind)\
**Post date:** [May 9, 2022, 7:48pm UTC](https://openziti.discourse.group/t/configuring-zping/476/12 "2022-05-09T19:48:58Z")

</div>

![Screen Shot 2022-05-10 at 5.46.22 am](https://global.discourse-cdn.com/free1/uploads/netfoundry/original/1X/d1bf7c0255e7adfa19c507fe7aeb9fad4cd6089c.png)

Thanks… got it working now… huge.

I realised that I needed to compile the app on the desktop and server… as they operate on different operating systems.

This helps me understand how it all connects together.

“That’s one small step for man, one giant leap for mankind.” Neil Armstrong
