# standalone checks not working

**URL:** <https://discourse.sensu.io/t/standalone-checks-not-working/493>\
**Category:** Sensu Classic (EOL)\
**Created:** [October 3, 2015, 10:37pm UTC](https://discourse.sensu.io/t/standalone-checks-not-working/493 "2015-10-03T22:37:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert](https://discourse.sensu.io/u/Robert)\
**Post date:** [October 3, 2015, 10:37pm UTC](https://discourse.sensu.io/t/standalone-checks-not-working/493/1 "2015-10-03T22:37:40Z")

</div>

Hi,

I’ve installed Sensu (sensu-0.20.3-1.x86\_64) on a CentOS 7 virtual machine for a proof of concept and everything is working fine, except of standalone checks, which are not executed from the clients.

This is my client configuration:  
“client”: {  
“name”: “server”,  
“address”: “192.168.1.12”,  
“memory”: {  
“warning”: 15000,  
“critical”: 14500  
},  
“subscriptions”: ,  
“checks”: {  
“memory”: {  
“command”: “/etc/sensu/plugins/check-memory.sh -w :::memory.warning|70::: -c :::memory.critical|80:::”,  
“standalone”: true,  
“interval”: 15  
}  
}  
}

``

Anyone with idea’s how to get this working?

Thanks,  
Robert

---

<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:** [October 4, 2015, 6:01pm UTC](https://discourse.sensu.io/t/standalone-checks-not-working/493/2 "2015-10-04T18:01:13Z")

</div>

"checks" needs to go top namespace of the dictionary. They should not  
be in the client configuration:  
[https://sensuapp.org/docs/latest/checks#example-check-definition](https://sensuapp.org/docs/latest/checks#example-check-definition)

(I recommend a separate file, configuration management usually sets up  
one config file per check)

{  
&nbsp;&nbsp;"client": {  
&nbsp;&nbsp;&nbsp;&nbsp;"name": "server",  
&nbsp;&nbsp;&nbsp;&nbsp;"address": "192.168.1.12",  
&nbsp;&nbsp;&nbsp;&nbsp;"memory": {  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"warning": 15000,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"critical": 14500  
&nbsp;&nbsp;&nbsp;&nbsp;},  
&nbsp;&nbsp;&nbsp;&nbsp;"subscriptions": ,  
&nbsp;&nbsp;},  
&nbsp;&nbsp;"checks": {  
&nbsp;&nbsp;&nbsp;&nbsp;"memory": {  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"command": "/etc/sensu/plugins/check-memory.sh -w  
:::memory.warning|70::: -c :::memory.critical|80:::",  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"standalone": true,  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"interval": 15  
&nbsp;&nbsp;&nbsp;&nbsp;}  
&nbsp;&nbsp;}  
}

> **···**
>
> On Sat, Oct 3, 2015 at 3:37 PM, Robert \<rokn82@googlemail.com\> wrote:
> 
> > Hi,
> > 
> > I've installed Sensu (sensu-0.20.3-1.x86\_64) on a CentOS 7 virtual machine  
> > for a proof of concept and everything is working fine, except of standalone  
> > checks, which are not executed from the clients.
> > 
> > This is my client configuration:  
> > "client": {  
> > &nbsp;&nbsp;"name": "server",  
> > &nbsp;&nbsp;"address": "192.168.1.12",  
> > &nbsp;&nbsp;"memory": {  
> > &nbsp;&nbsp;&nbsp;&nbsp;"warning": 15000,  
> > &nbsp;&nbsp;&nbsp;&nbsp;"critical": 14500  
> > &nbsp;&nbsp;},  
> > &nbsp;&nbsp;"subscriptions": ,  
> > &nbsp;&nbsp;"checks": {  
> > &nbsp;&nbsp;&nbsp;&nbsp;"memory": {  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"command": "/etc/sensu/plugins/check-memory.sh -w  
> > :::memory.warning|70::: -c :::memory.critical|80:::",  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"standalone": true,  
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"interval": 15  
> > &nbsp;&nbsp;&nbsp;&nbsp;}  
> > &nbsp;&nbsp;}  
> > }
> > 
> > Anyone with idea's how to get this working?
> > 
> > Thanks,  
> > Robert

---

<div class="post-metadata">

**Author:** ![Robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert](https://discourse.sensu.io/u/Robert)\
**Post date:** [October 4, 2015, 7:39pm UTC](https://discourse.sensu.io/t/standalone-checks-not-working/493/3 "2015-10-04T19:39:58Z")

</div>

You are right.

That’s working.

Thanks Kyle!

> **···**
>
> Am Sonntag, 4. Oktober 2015 20:01:14 UTC+2 schrieb Kyle Anderson:
> 
> > “checks” needs to go top namespace of the dictionary. They should not  
> > be in the client configuration:  
> > [https://sensuapp.org/docs/latest/checks#example-check-definition](https://sensuapp.org/docs/latest/checks#example-check-definition)
> > 
> > (I recommend a separate file, configuration management usually sets up  
> > one config file per check)
> > 
> > {  
> > “client”: {  
> > “name”: “server”,  
> > “address”: “192.168.1.12”,  
> > “memory”: {  
> > “warning”: 15000,  
> > “critical”: 14500  
> > },  
> > “subscriptions”: ,  
> > },  
> > “checks”: {  
> > “memory”: {  
> > “command”: “/etc/sensu/plugins/check-memory.sh -w  
> > :::memory.warning|70::: -c :::memory.critical|80:::”,  
> > “standalone”: true,  
> > “interval”: 15  
> > }  
> > }  
> > }
> > 
> > On Sat, Oct 3, 2015 at 3:37 PM, Robert [rok...@googlemail.com](mailto:rok...@googlemail.com) wrote:
> > 
> > > Hi,
> > > 
> > > I’ve installed Sensu (sensu-0.20.3-1.x86\_64) on a CentOS 7 virtual machine  
> > > for a proof of concept and everything is working fine, except of standalone  
> > > checks, which are not executed from the clients.
> > > 
> > > This is my client configuration:  
> > > “client”: {  
> > > “name”: “server”,  
> > > “address”: “192.168.1.12”,  
> > > “memory”: {  
> > > “warning”: 15000,  
> > > “critical”: 14500  
> > > },  
> > > “subscriptions”: ,  
> > > “checks”: {  
> > > “memory”: {  
> > > “command”: “/etc/sensu/plugins/check-memory.sh -w  
> > > :::memory.warning|70::: -c :::memory.critical|80:::”,  
> > > “standalone”: true,  
> > > “interval”: 15  
> > > }  
> > > }  
> > > }
> > > 
> > > Anyone with idea’s how to get this working?
> > > 
> > > Thanks,  
> > > Robert
