# Custom Check Configuration

**URL:** https://discourse.sensu.io/t/custom-check-configuration/809
**Category:** Sensu Classic (EOL)
**Created:** [April 26, 2017, 8:24pm UTC](https://discourse.sensu.io/t/custom-check-configuration/809 "2017-04-26T20:24:14Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![KernelPanic](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/kernelpanic/32/616_2.png) [@KernelPanic](https://discourse.sensu.io/u/KernelPanic)
#### Post date: [April 26, 2017, 8:24pm UTC](https://discourse.sensu.io/t/custom-check-configuration/809/1 "2017-04-26T20:24:14Z")

</div>

Hi there ppl

I'm facing an issue that I would like to know if that's possible to be accomplish, I remember when used to use nagios , that I could create a check and name it whatever I want, for example, I could create check name My-Domain-Check-Ping that basically would perform a ping to [www.domain.com](http://www.domain.com), simple as that, and then from the dashboard I could see that check, but alone only, not being a part of any other server or associated to any in particular, cuz I was running the check from the nagios server and no agent was required to do that.

Now with sensu/uchiwa I want to do the same, I created a new check name Compay-Ping-Site in a standalone fashion, no subscribers involved cuz I cannot install an agent on [www.domain.com](http://www.domain.com), it's an url not a client, but the problem is that I see the check being part of the sensu server itself along with the other checks related to the server, I want to see the check in the client list, separated from the sensu server that is running the check, if I want to see the check I have to click on the sensu-server, which is the client name I assigned to it, and I do not want that.

Is that possible? did my self clear?

Thanks

Regareds

---

<div class="post-metadata">

### Author: ![Kyle\_Anderson](https://avatars.discourse-cdn.com/v4/letter/k/e5b9ba/32.png) [@Kyle\_Anderson](https://discourse.sensu.io/u/Kyle_Anderson)
#### Post date: [April 27, 2017, 1:54am UTC](https://discourse.sensu.io/t/custom-check-configuration/809/2 "2017-04-27T01:54:36Z")

</div>

Yes, the concept in sensu is called “Proxy Clients”:  
[https://sensuapp.org/docs/latest/reference/clients.html#proxy-clients](https://sensuapp.org/docs/latest/reference/clients.html#proxy-clients)

but just like nagios they still have to “run” somewhere. Often for this use-case they run on the sensu server(s). Read the docs and you will see you simply need to set:

source: [www.domain.com](http://www.domain.com)

In the check onfiguration.

> **···**
>
> On Wed, Apr 26, 2017 at 1:24 PM, Net Warrior [netwarrior863@gmail.com](mailto:netwarrior863@gmail.com) wrote:
> 
> > Hi there ppl
> > 
> > I’m facing an issue that I would like to know if that’s possible to be accomplish, I remember when used to use nagios , that I could create a check and name it whatever I want, for example, I could create check name My-Domain-Check-Ping that basically would perform a ping to [www.domain.com](http://www.domain.com), simple as that, and then from the dashboard I could see that check, but alone only, not being a part of any other server or associated to any in particular, cuz I was running the check from the nagios server and no agent was required to do that.
> > 
> > Now with sensu/uchiwa I want to do the same, I created a new check name Compay-Ping-Site in a standalone fashion, no subscribers involved cuz I cannot install an agent on [www.domain.com](http://www.domain.com), it’s an url not a client, but the problem is that I see the check being part of the sensu server itself along with the other checks related to the server, I want to see the check in the client list, separated from the sensu server that is running the check, if I want to see the check I have to click on the sensu-server, which is the client name I assigned to it, and I do not want that.
> > 
> > Is that possible? did my self clear?
> > 
> > Thanks
> > 
> > Regareds

---

<div class="post-metadata">

### Author: ![KernelPanic](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/kernelpanic/32/616_2.png) [@KernelPanic](https://discourse.sensu.io/u/KernelPanic)
#### Post date: [April 27, 2017, 11:51am UTC](https://discourse.sensu.io/t/custom-check-configuration/809/3 "2017-04-27T11:51:18Z")

</div>

Thanks buddy!  
Regards

> **···**
>
> On 04/26/2017 10:54 PM, Kyle Anderson wrote:
> 
> > Yes, the concept in sensu is called "Proxy Clients":  
> > [https://sensuapp.org/docs/latest/reference/clients.html#proxy-clients](https://sensuapp.org/docs/latest/reference/clients.html#proxy-clients)
> > 
> > but just like nagios they still have to "run" somewhere. Often for this use-case they run on the sensu server(s). Read the docs and you will see you simply need to set:
> > 
> > source: [www.domain.com](http://www.domain.com) \<[http://www.domain.com](http://www.domain.com)\>
> > 
> > In the check onfiguration.
> > 
> > On Wed, Apr 26, 2017 at 1:24 PM, Net Warrior \<netwarrior863@gmail.com \> \<mailto:netwarrior863@gmail.com\>\> wrote:
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;Hi there ppl
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;I'm facing an issue that I would like to know if that's possible  
> > &nbsp;&nbsp;&nbsp;&nbsp;to be accomplish, I remember when used to use nagios , that I  
> > &nbsp;&nbsp;&nbsp;&nbsp;could create a check and name it whatever I want, for example, I  
> > &nbsp;&nbsp;&nbsp;&nbsp;could create check name My-Domain-Check-Ping that basically would  
> > &nbsp;&nbsp;&nbsp;&nbsp;perform a ping to [www.domain.com](http://www.domain.com) \<[http://www.domain.com](http://www.domain.com)\>, simple  
> > &nbsp;&nbsp;&nbsp;&nbsp;as that, and then from the dashboard I could see that check, but  
> > &nbsp;&nbsp;&nbsp;&nbsp;alone only, not being a part of any other server or associated to  
> > &nbsp;&nbsp;&nbsp;&nbsp;any in particular, cuz I was running the check from the nagios  
> > &nbsp;&nbsp;&nbsp;&nbsp;server and no agent was required to do that.
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;Now with sensu/uchiwa I want to do the same, I created a new check  
> > &nbsp;&nbsp;&nbsp;&nbsp;name Compay-Ping-Site in a standalone fashion, no subscribers  
> > &nbsp;&nbsp;&nbsp;&nbsp;involved cuz I cannot install an agent on [www.domain.com](http://www.domain.com)  
> > &nbsp;&nbsp;&nbsp;&nbsp;\<[http://www.domain.com](http://www.domain.com)\>, it's an url not a client, but the problem  
> > &nbsp;&nbsp;&nbsp;&nbsp;is that I see the check being part of the sensu server itself  
> > &nbsp;&nbsp;&nbsp;&nbsp;along with the other checks related to the server, I want to see  
> > &nbsp;&nbsp;&nbsp;&nbsp;the check in the client list, separated from the sensu server that  
> > &nbsp;&nbsp;&nbsp;&nbsp;is running the check, if I want to see the check I have to click  
> > &nbsp;&nbsp;&nbsp;&nbsp;on the sensu-server, which is the client name I assigned to it,  
> > &nbsp;&nbsp;&nbsp;&nbsp;and I do not want that.
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;Is that possible? did my self clear?
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;Thanks
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;Regareds

---

<div class="post-metadata">

### Author: ![KernelPanic](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/kernelpanic/32/616_2.png) [@KernelPanic](https://discourse.sensu.io/u/KernelPanic)
#### Post date: [April 27, 2017, 3:30pm UTC](https://discourse.sensu.io/t/custom-check-configuration/809/4 "2017-04-27T15:30:51Z")

</div>

Hi  
I updated to sensu 0.29 and configured an alert like this:  
{  
“checks”: {  
“Company-Site-Check-Ping”: {  
“command”: “/opt/sensu/embedded/bin/check-ping.rb -h [www.company.com](http://www.company.com) -c 4”,  
“source”: “[www.comany.com](http://www.comany.com)”,  
“subscribers”: [“company-site”],  
“interval”: 60,  
“auto\_resolve”: true,  
“occurrences”: 3,  
“refresh”: 1800,  
“handlers”: [“email-me”]  
}  
}  
}

I’m still seeing the check as another sensu-server check and not from the client list, am I missing something else? do I need to configure / define something else?  
Thanks  
Regards

> **···**
>
> El miércoles, 26 de abril de 2017, 22:54:39 (UTC-3), Kyle Anderson escribió:
> 
> > Yes, the concept in sensu is called “Proxy Clients”:  
> > [https://sensuapp.org/docs/latest/reference/clients.html#proxy-clients](https://sensuapp.org/docs/latest/reference/clients.html#proxy-clients)
> 
> > 
> 
> > but just like nagios they still have to “run” somewhere. Often for this use-case they run on the sensu server(s). Read the docs and you will see you simply need to set:
> 
> > 
> 
> > source: [www.domain.com](http://www.domain.com)
> 
> > 
> 
> > In the check onfiguration.
> 
> > On Wed, Apr 26, 2017 at 1:24 PM, Net Warrior [netwar...@gmail.com](mailto:netwar...@gmail.com) wrote:
> > 
> > > Hi there ppl
> > > 
> > > I’m facing an issue that I would like to know if that’s possible to be accomplish, I remember when used to use nagios , that I could create a check and name it whatever I want, for example, I could create check name My-Domain-Check-Ping that basically would perform a ping to [www.domain.com](http://www.domain.com), simple as that, and then from the dashboard I could see that check, but alone only, not being a part of any other server or associated to any in particular, cuz I was running the check from the nagios server and no agent was required to do that.
> > > 
> > > Now with sensu/uchiwa I want to do the same, I created a new check name Compay-Ping-Site in a standalone fashion, no subscribers involved cuz I cannot install an agent on [www.domain.com](http://www.domain.com), it’s an url not a client, but the problem is that I see the check being part of the sensu server itself along with the other checks related to the server, I want to see the check in the client list, separated from the sensu server that is running the check, if I want to see the check I have to click on the sensu-server, which is the client name I assigned to it, and I do not want that.
> > > 
> > > Is that possible? did my self clear?
> > > 
> > > Thanks
> > > 
> > > Regareds
> 
> >

---

<div class="post-metadata">

### Author: ![Alexander\_Skiba](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/alexander_skiba/32/408_2.png) [@Alexander\_Skiba](https://discourse.sensu.io/u/Alexander_Skiba)
#### Post date: [April 27, 2017, 4:59pm UTC](https://discourse.sensu.io/t/custom-check-configuration/809/5 "2017-04-27T16:59:36Z")

</div>

Have you restarted sensu-client and sensu-server, possibly also sensu-api?

> **···**
>
> On Thursday, April 27, 2017 at 5:30:52 PM UTC+2, Kernel Panic wrote:
> 
> > {  
> > “checks”: {  
> > “Company-Site-Check-Ping”: {  
> > “command”: “/opt/sensu/embedded/bin/check-ping.rb -h [www.company.com](http://www.company.com) -c 4”,  
> > “source”: “[www.comany.com](http://www.comany.com)”,  
> > “subscribers”: [“company-site”],  
> > “interval”: 60,  
> > “auto\_resolve”: true,  
> > “occurrences”: 3,  
> > “refresh”: 1800,  
> > “handlers”: [“email-me”]  
> > }  
> > }  
> > }
> > 
> > I’m still seeing the check as another sensu-server check and not from the client list, am I missing something else? do I need to configure / define something else?

---

<div class="post-metadata">

### Author: ![KernelPanic](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/kernelpanic/32/616_2.png) [@KernelPanic](https://discourse.sensu.io/u/KernelPanic)
#### Post date: [April 27, 2017, 7:09pm UTC](https://discourse.sensu.io/t/custom-check-configuration/809/6 "2017-04-27T19:09:41Z")

</div>

Yes of course, the check is being part of the server itself.  
Thanks!

> **···**
>
> On 04/27/2017 01:59 PM, Alexander Skiba wrote:
> 
> > On Thursday, April 27, 2017 at 5:30:52 PM UTC+2, Kernel Panic wrote:
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;{  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"checks": {  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"Company-Site-Check-Ping": {  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"command": "/opt/sensu/embedded/bin/check-ping.rb -h  
> > &nbsp;&nbsp;&nbsp;&nbsp;www.company.com \<[http://www.company.com](http://www.company.com)\> -c 4",  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"source": "www.comany.com \<[http://www.comany.com](http://www.comany.com)\>",  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"subscribers": ["company-site"],  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"interval": 60,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"auto\_resolve": true,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"occurrences": 3,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"refresh": 1800,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"handlers": ["email-me"]  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}  
> > &nbsp;&nbsp;&nbsp;&nbsp;}
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;I'm still seeing the check as another sensu-server check and not  
> > &nbsp;&nbsp;&nbsp;&nbsp;from the client list, am I missing something else? do I need to  
> > &nbsp;&nbsp;&nbsp;&nbsp;configure / define something else?
> > 
> > Have you restarted sensu-client and sensu-server, possibly also sensu-api?

---

<div class="post-metadata">

### Author: ![KernelPanic](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/kernelpanic/32/616_2.png) [@KernelPanic](https://discourse.sensu.io/u/KernelPanic)
#### Post date: [April 27, 2017, 7:15pm UTC](https://discourse.sensu.io/t/custom-check-configuration/809/7 "2017-04-27T19:15:13Z")

</div>

Now, looking at the uchiwa dashboad, I noticed that the alert just triggered once, 7 hour ago!!! when I created it. maybe it's because I did not set the standalone to true?  
Apart from that, it seems shat subscribers is mandatory, so in this case company-site is not defined anywhere else, do I have to configure a fake subscription?

Thanks  
Regard

> **···**
>
> On 04/27/2017 01:59 PM, Alexander Skiba wrote:
> 
> > On Thursday, April 27, 2017 at 5:30:52 PM UTC+2, Kernel Panic wrote:
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;{  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"checks": {  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"Company-Site-Check-Ping": {  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"command": "/opt/sensu/embedded/bin/check-ping.rb -h  
> > &nbsp;&nbsp;&nbsp;&nbsp;www.company.com \<[http://www.company.com](http://www.company.com)\> -c 4",  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"source": "www.comany.com \<[http://www.comany.com](http://www.comany.com)\>",  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"subscribers": ["company-site"],  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"interval": 60,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"auto\_resolve": true,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"occurrences": 3,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"refresh": 1800,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"handlers": ["email-me"]  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}  
> > &nbsp;&nbsp;&nbsp;&nbsp;}
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;I'm still seeing the check as another sensu-server check and not  
> > &nbsp;&nbsp;&nbsp;&nbsp;from the client list, am I missing something else? do I need to  
> > &nbsp;&nbsp;&nbsp;&nbsp;configure / define something else?
> > 
> > Have you restarted sensu-client and sensu-server, possibly also sensu-api?

---

<div class="post-metadata">

### Author: ![KernelPanic](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/kernelpanic/32/616_2.png) [@KernelPanic](https://discourse.sensu.io/u/KernelPanic)
#### Post date: [April 27, 2017, 7:20pm UTC](https://discourse.sensu.io/t/custom-check-configuration/809/8 "2017-04-27T19:20:47Z")

</div>

Good news,  
Addit the standalone to true did the trick, now I can see the check as another client name in the list!!! , but in the IP address field I have unknown and instead of having "a few seconds ago" in the last checks field I have, invalid date... any idea why is that?

Thank you!  
Regards

> **···**
>
> On 04/27/2017 01:59 PM, Alexander Skiba wrote:
> 
> > On Thursday, April 27, 2017 at 5:30:52 PM UTC+2, Kernel Panic wrote:
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;{  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"checks": {  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"Company-Site-Check-Ping": {  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"command": "/opt/sensu/embedded/bin/check-ping.rb -h  
> > &nbsp;&nbsp;&nbsp;&nbsp;www.company.com \<[http://www.company.com](http://www.company.com)\> -c 4",  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"source": "www.comany.com \<[http://www.comany.com](http://www.comany.com)\>",  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"subscribers": ["company-site"],  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"interval": 60,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"auto\_resolve": true,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"occurrences": 3,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"refresh": 1800,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"handlers": ["email-me"]  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}  
> > &nbsp;&nbsp;&nbsp;&nbsp;}
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;I'm still seeing the check as another sensu-server check and not  
> > &nbsp;&nbsp;&nbsp;&nbsp;from the client list, am I missing something else? do I need to  
> > &nbsp;&nbsp;&nbsp;&nbsp;configure / define something else?
> > 
> > Have you restarted sensu-client and sensu-server, possibly also sensu-api?

---

<div class="post-metadata">

### Author: ![Alexander\_Skiba](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/alexander_skiba/32/408_2.png) [@Alexander\_Skiba](https://discourse.sensu.io/u/Alexander_Skiba)
#### Post date: [April 28, 2017, 1:41pm UTC](https://discourse.sensu.io/t/custom-check-configuration/809/9 "2017-04-28T13:41:38Z")

</div>

The IP address is taken from the client. Since you don’t have a “real” client but a proxy client, there is no IP address available from the client definition.

I don’t know why you would get invalid date. (maybe check if all the machines connected have NTP running and syncing their time properly?)

> **···**
>
> On Thursday, April 27, 2017 at 9:20:52 PM UTC+2, Kernel Panic wrote:
> 
> > Good news,  
> > Addit the standalone to true did the trick, now I can see the check as  
> > another client name in the list!!! , but in the IP address field I have  
> > unknown and instead of having “a few seconds ago” in the last checks  
> > field I have, invalid date… any idea why is that?
> > 
> > Thank you!  
> > Regards
> > 
> > On 04/27/2017 01:59 PM, Alexander Skiba wrote:
> > 
> > > On Thursday, April 27, 2017 at 5:30:52 PM UTC+2, Kernel Panic wrote:
> > > 
> > > ```
> > > {
> > > "checks": {
> > > "Company-Site-Check-Ping": {
> > > "command": "/opt/sensu/embedded/bin/check-ping.rb -h
> > > [www.company.com](http://www.company.com) <[http://www.company.com](http://www.company.com)> -c 4",
> > > "source": "[www.comany.com](http://www.comany.com) <[http://www.comany.com](http://www.comany.com)>",
> > > "subscribers": ["company-site"],
> > > "interval": 60,
> > > "auto_resolve": true,
> > > "occurrences": 3,
> > > "refresh": 1800,
> > > "handlers": ["email-me"]
> > > }
> > > }
> > > }
> > > 
> > > I'm still seeing the check as another sensu-server check and not
> > > from the client list, am I missing something else? do I need to
> > > configure / define something else?
> > > 
> > > ```
> > > 
> > > Have you restarted sensu-client and sensu-server, possibly also  
> > > sensu-api?

---

<div class="post-metadata">

### Author: ![KernelPanic](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/kernelpanic/32/616_2.png) [@KernelPanic](https://discourse.sensu.io/u/KernelPanic)
#### Post date: [April 28, 2017, 3:44pm UTC](https://discourse.sensu.io/t/custom-check-configuration/809/10 "2017-04-28T15:44:51Z")

</div>

Yes, but default we have NTP configured on all server, I also added "address": ip-address to the check, but just did nothing.

Thanks  
Regards

> **···**
>
> On 04/28/2017 10:41 AM, Alexander Skiba wrote:
> 
> > The IP address is taken from the client. Since you don't have a "real" client but a proxy client, there is no IP address available from the client definition.
> > 
> > I don't know why you would get invalid date. (maybe check if all the machines connected have NTP running and syncing their time properly?)
> > 
> > On Thursday, April 27, 2017 at 9:20:52 PM UTC+2, Kernel Panic wrote:
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;Good news,  
> > &nbsp;&nbsp;&nbsp;&nbsp;Addit the standalone to true did the trick, now I can see the  
> > &nbsp;&nbsp;&nbsp;&nbsp;check as  
> > &nbsp;&nbsp;&nbsp;&nbsp;another client name in the list!!! , but in the IP address field I  
> > &nbsp;&nbsp;&nbsp;&nbsp;have  
> > &nbsp;&nbsp;&nbsp;&nbsp;unknown and instead of having "a few seconds ago" in the last checks  
> > &nbsp;&nbsp;&nbsp;&nbsp;field I have, invalid date... any idea why is that?
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;Thank you!  
> > &nbsp;&nbsp;&nbsp;&nbsp;Regards
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;On 04/27/2017 01:59 PM, Alexander Skiba wrote:  
> > &nbsp;&nbsp;&nbsp;&nbsp;\>  
> > &nbsp;&nbsp;&nbsp;&nbsp;\> On Thursday, April 27, 2017 at 5:30:52 PM UTC+2, Kernel Panic \> wrote:  
> > &nbsp;&nbsp;&nbsp;&nbsp;\>  
> > &nbsp;&nbsp;&nbsp;&nbsp;\> {  
> > &nbsp;&nbsp;&nbsp;&nbsp;\> "checks": {  
> > &nbsp;&nbsp;&nbsp;&nbsp;\> "Company-Site-Check-Ping": {  
> > &nbsp;&nbsp;&nbsp;&nbsp;\> "command": "/opt/sensu/embedded/bin/check-ping.rb -h  
> > &nbsp;&nbsp;&nbsp;&nbsp;\> [www.company.com](http://www.company.com) \<[http://www.company.com](http://www.company.com)\>  
> > &nbsp;&nbsp;&nbsp;&nbsp;\<[http://www.company.com](http://www.company.com)\> -c 4",  
> > &nbsp;&nbsp;&nbsp;&nbsp;\> "source": "www.comany.com \<[http://www.comany.com](http://www.comany.com)\>  
> > &nbsp;&nbsp;&nbsp;&nbsp;\<[http://www.comany.com](http://www.comany.com)\>",  
> > &nbsp;&nbsp;&nbsp;&nbsp;\> "subscribers": ["company-site"],  
> > &nbsp;&nbsp;&nbsp;&nbsp;\> "interval": 60,  
> > &nbsp;&nbsp;&nbsp;&nbsp;\> "auto\_resolve": true,  
> > &nbsp;&nbsp;&nbsp;&nbsp;\> "occurrences": 3,  
> > &nbsp;&nbsp;&nbsp;&nbsp;\> "refresh": 1800,  
> > &nbsp;&nbsp;&nbsp;&nbsp;\> "handlers": ["email-me"]  
> > &nbsp;&nbsp;&nbsp;&nbsp;\> }  
> > &nbsp;&nbsp;&nbsp;&nbsp;\> }  
> > &nbsp;&nbsp;&nbsp;&nbsp;\> }  
> > &nbsp;&nbsp;&nbsp;&nbsp;\>  
> > &nbsp;&nbsp;&nbsp;&nbsp;\> I'm still seeing the check as another sensu-server check and  
> > &nbsp;&nbsp;&nbsp;&nbsp;not  
> > &nbsp;&nbsp;&nbsp;&nbsp;\> from the client list, am I missing something else? do I need to  
> > &nbsp;&nbsp;&nbsp;&nbsp;\> configure / define something else?  
> > &nbsp;&nbsp;&nbsp;&nbsp;\>  
> > &nbsp;&nbsp;&nbsp;&nbsp;\> Have you restarted sensu-client and sensu-server, possibly also  
> > &nbsp;&nbsp;&nbsp;&nbsp;\> sensu-api?

---

<div class="post-metadata">

### Author: ![Alexander\_Skiba](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/alexander_skiba/32/408_2.png) [@Alexander\_Skiba](https://discourse.sensu.io/u/Alexander_Skiba)
#### Post date: [April 29, 2017, 9:53am UTC](https://discourse.sensu.io/t/custom-check-configuration/809/11 "2017-04-29T09:53:51Z")

</div>

That is because IP is an attribute belonging to the client, not to the check.  
You can of course add the IP as a attribute to the check, but it will not be available at the same location as it would be when used traditionally.

Take Uchiwa as an example, when opening the detail view of a check: [https://uchiwa.io/img/unifiedclient.gif](https://uchiwa.io/img/unifiedclient.gif)

- everything on the left side belongs to the client (e.g. name, ip, subscriptions)

- everything on the right side belongs to the individual check (e.g. command, output, history)

You put the IP as an additional information to the check, so it would be available at the right side instead of the left side, where you are presumably searching for it.

> **···**
>
> On Friday, April 28, 2017 at 5:44:58 PM UTC+2, Kernel Panic wrote:
> 
> > Yes, but default we have NTP configured on all server, I also added  
> > “address”: ip-address to the check, but just did nothing.

---

<div class="post-metadata">

### Author: ![jspaleta](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.sensu.io/jspaleta/32/141_2.png) [@jspaleta](https://discourse.sensu.io/u/jspaleta)
#### Post date: [November 22, 2018, 2:07am UTC](https://discourse.sensu.io/t/custom-check-configuration/809/12 "2018-11-22T02:07:54Z")

</div>


