# Possible to disable check from running?

**URL:** <https://discourse.sensu.io/t/possible-to-disable-check-from-running/300>\
**Category:** Sensu Classic (EOL)\
**Created:** [November 3, 2014, 7:04pm UTC](https://discourse.sensu.io/t/possible-to-disable-check-from-running/300 "2014-11-03T19:04:56Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Travis\_Bear](https://avatars.discourse-cdn.com/v4/letter/t/b9e5f3/32.png) [@Travis\_Bear](https://discourse.sensu.io/u/Travis_Bear)\
**Post date:** [November 3, 2014, 7:04pm UTC](https://discourse.sensu.io/t/possible-to-disable-check-from-running/300/1 "2014-11-03T19:04:56Z")

</div>

In the sensu check definition, it’s possible to set

```auto
"handle": false

```

so that when the check runs, the sensu server does not apply any of the normal handler logic. (See [http://sensuapp.org/docs/0.14/checks](http://sensuapp.org/docs/0.14/checks)). Is there any true/false setting that can enable/disable the check itself from running?

Thanks!

-Travis

---

<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:** [November 4, 2014, 4:50am UTC](https://discourse.sensu.io/t/possible-to-disable-check-from-running/300/2 "2014-11-04T04:50:42Z")

</div>

I'm not aware of a setting. If it is standalone you would have to  
remove the definition.  
If it is publish/subscribe you could set the subscribers to an empty  
array, or remove the definition.

> **···**
>
> On Mon, Nov 3, 2014 at 11:04 AM, Travis Bear \<travis.bear@gmail.com\> wrote:
> 
> > In the sensu check definition, it's possible to set
> > 
> > "handle": false
> > 
> > so that when the check runs, the sensu server does not apply any of the  
> > normal handler logic. (See [http://sensuapp.org/docs/0.14/checks\](http://sensuapp.org/docs/0.14/checks%5C)). Is there  
> > any true/false setting that can enable/disable the check itself from  
> > running?
> > 
> > Thanks!
> > 
> > -Travis

---

<div class="post-metadata">

**Author:** ![Sean\_Porter](https://avatars.discourse-cdn.com/v4/letter/s/7feea3/32.png) [@Sean\_Porter](https://discourse.sensu.io/u/Sean_Porter)\
**Post date:** [November 4, 2014, 4:57am UTC](https://discourse.sensu.io/t/possible-to-disable-check-from-running/300/3 "2014-11-04T04:57:09Z")

</div>

There is “subdue”, allowing you to suppress executions or notifications for a window, with exceptions.

> **···**
>
> On Nov 3, 2014 8:50 PM, “Kyle Anderson” [kyle@xkyle.com](mailto:kyle@xkyle.com) wrote:
> 
> > I’m not aware of a setting. If it is standalone you would have to
> > 
> > remove the definition.
> > 
> > If it is publish/subscribe you could set the subscribers to an empty
> > 
> > array, or remove the definition.
> > 
> > On Mon, Nov 3, 2014 at 11:04 AM, Travis Bear [travis.bear@gmail.com](mailto:travis.bear@gmail.com) wrote:
> > 
> > > In the sensu check definition, it’s possible to set
> > 
> > > 
> > 
> > > “handle”: false
> > 
> > > 
> > 
> > > 
> > 
> > > so that when the check runs, the sensu server does not apply any of the
> > 
> > > normal handler logic. (See [http://sensuapp.org/docs/0.14/checks](http://sensuapp.org/docs/0.14/checks)). Is there
> > 
> > > any true/false setting that can enable/disable the check itself from
> > 
> > > running?
> > 
> > > 
> > 
> > > 
> > 
> > > Thanks!
> > 
> > > 
> > 
> > > 
> > 
> > > -Travis
> > 
> > >

---

<div class="post-metadata">

**Author:** ![Travis\_Bear](https://avatars.discourse-cdn.com/v4/letter/t/b9e5f3/32.png) [@Travis\_Bear](https://discourse.sensu.io/u/Travis_Bear)\
**Post date:** [November 4, 2014, 4:19pm UTC](https://discourse.sensu.io/t/possible-to-disable-check-from-running/300/4 "2014-11-04T16:19:56Z")

</div>

Thanks guys.

The documentation on “subdue” ([http://sensuapp.org/docs/0.11/checks](http://sensuapp.org/docs/0.11/checks)) implies that it suppresses handler execution on the server side, rather than check execution on the client side, which is what I’m going for. I’d been hoping for a simple config option, but I’ve scripted up some stuff in Chef to delete the check definition and restart the Sensu client, which seems to do the trick.

-Travis

> **···**
>
> On Monday, November 3, 2014 8:57:11 PM UTC-8, portertech wrote:
> 
> > There is “subdue”, allowing you to suppress executions or notifications for a window, with exceptions.
> 
> > On Nov 3, 2014 8:50 PM, “Kyle Anderson” [ky...@xkyle.com](mailto:ky...@xkyle.com) wrote:
> > 
> > > I’m not aware of a setting. If it is standalone you would have to
> > > 
> > > remove the definition.
> > > 
> > > If it is publish/subscribe you could set the subscribers to an empty
> > > 
> > > array, or remove the definition.
> > > 
> > > On Mon, Nov 3, 2014 at 11:04 AM, Travis Bear [travi...@gmail.com](mailto:travi...@gmail.com) wrote:
> > > 
> > > > In the sensu check definition, it’s possible to set
> > > 
> > > > 
> > > 
> > > > “handle”: false
> > > 
> > > > 
> > > 
> > > > 
> > > 
> > > > so that when the check runs, the sensu server does not apply any of the
> > > 
> > > > normal handler logic. (See [http://sensuapp.org/docs/0.14/checks](http://sensuapp.org/docs/0.14/checks)). Is there
> > > 
> > > > any true/false setting that can enable/disable the check itself from
> > > 
> > > > running?
> > > 
> > > > 
> > > 
> > > > 
> > > 
> > > > Thanks!
> > > 
> > > > 
> > > 
> > > > 
> > > 
> > > > -Travis
> > > 
> > > >

---

<div class="post-metadata">

**Author:** ![Sean\_Porter](https://avatars.discourse-cdn.com/v4/letter/s/7feea3/32.png) [@Sean\_Porter](https://discourse.sensu.io/u/Sean_Porter)\
**Post date:** [November 4, 2014, 5:02pm UTC](https://discourse.sensu.io/t/possible-to-disable-check-from-running/300/5 "2014-11-04T17:02:44Z")

</div>

Subdue “at”: “publisher”.

> **···**
>
> On Nov 4, 2014 8:19 AM, “Travis Bear” [travis.bear@gmail.com](mailto:travis.bear@gmail.com) wrote:
> 
> > Thanks guys.
> > 
> > The documentation on “subdue” ([http://sensuapp.org/docs/0.11/checks](http://sensuapp.org/docs/0.11/checks)) implies that it suppresses handler execution on the server side, rather than check execution on the client side, which is what I’m going for. I’d been hoping for a simple config option, but I’ve scripted up some stuff in Chef to delete the check definition and restart the Sensu client, which seems to do the trick.
> > 
> > -Travis
> > 
> > On Monday, November 3, 2014 8:57:11 PM UTC-8, portertech wrote:
> > 
> > > There is “subdue”, allowing you to suppress executions or notifications for a window, with exceptions.
> 
> > > On Nov 3, 2014 8:50 PM, “Kyle Anderson” [ky...@xkyle.com](mailto:ky...@xkyle.com) wrote:
> > > 
> > > > I’m not aware of a setting. If it is standalone you would have to
> > > > 
> > > > remove the definition.
> > > > 
> > > > If it is publish/subscribe you could set the subscribers to an empty
> > > > 
> > > > array, or remove the definition.
> > > > 
> > > > On Mon, Nov 3, 2014 at 11:04 AM, Travis Bear [travi...@gmail.com](mailto:travi...@gmail.com) wrote:
> > > > 
> > > > > In the sensu check definition, it’s possible to set
> > > > 
> > > > > 
> > > > 
> > > > > “handle”: false
> > > > 
> > > > > 
> > > > 
> > > > > 
> > > > 
> > > > > so that when the check runs, the sensu server does not apply any of the
> > > > 
> > > > > normal handler logic. (See [http://sensuapp.org/docs/0.14/checks](http://sensuapp.org/docs/0.14/checks)). Is there
> > > > 
> > > > > any true/false setting that can enable/disable the check itself from
> > > > 
> > > > > running?
> > > > 
> > > > > 
> > > > 
> > > > > 
> > > > 
> > > > > Thanks!
> > > > 
> > > > > 
> > > > 
> > > > > 
> > > > 
> > > > > -Travis
> > > > 
> > > > >

---

<div class="post-metadata">

**Author:** ![Akshay\_Kapoor](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@Akshay\_Kapoor](https://discourse.sensu.io/u/Akshay_Kapoor)\
**Post date:** [October 8, 2015, 8:06pm UTC](https://discourse.sensu.io/t/possible-to-disable-check-from-running/300/6 "2015-10-08T20:06:47Z")

</div>

I’m using “handle”: false and the behavior is different than what the doc says. In my case, i don’t see the check even getting published. Using sensu version 0.17.2-1

> **···**
>
> On Tuesday, November 4, 2014 at 10:32:45 PM UTC+5:30, Sean Porter wrote:
> 
> > Subdue “at”: “publisher”.
> 
> > On Nov 4, 2014 8:19 AM, “Travis Bear” [travi...@gmail.com](mailto:travi...@gmail.com) wrote:
> > 
> > > Thanks guys.
> > > 
> > > The documentation on “subdue” ([http://sensuapp.org/docs/0.11/checks](http://sensuapp.org/docs/0.11/checks)) implies that it suppresses handler execution on the server side, rather than check execution on the client side, which is what I’m going for. I’d been hoping for a simple config option, but I’ve scripted up some stuff in Chef to delete the check definition and restart the Sensu client, which seems to do the trick.
> > > 
> > > -Travis
> > > 
> > > On Monday, November 3, 2014 8:57:11 PM UTC-8, portertech wrote:
> > > 
> > > > There is “subdue”, allowing you to suppress executions or notifications for a window, with exceptions.
> 
> > > > On Nov 3, 2014 8:50 PM, “Kyle Anderson” [ky...@xkyle.com](mailto:ky...@xkyle.com) wrote:
> > > > 
> > > > > I’m not aware of a setting. If it is standalone you would have to
> > > > > 
> > > > > remove the definition.
> > > > > 
> > > > > If it is publish/subscribe you could set the subscribers to an empty
> > > > > 
> > > > > array, or remove the definition.
> > > > > 
> > > > > On Mon, Nov 3, 2014 at 11:04 AM, Travis Bear [travi...@gmail.com](mailto:travi...@gmail.com) wrote:
> > > > > 
> > > > > > In the sensu check definition, it’s possible to set
> > > > > 
> > > > > > 
> > > > > 
> > > > > > “handle”: false
> > > > > 
> > > > > > 
> > > > > 
> > > > > > 
> > > > > 
> > > > > > so that when the check runs, the sensu server does not apply any of the
> > > > > 
> > > > > > normal handler logic. (See [http://sensuapp.org/docs/0.14/checks](http://sensuapp.org/docs/0.14/checks)). Is there
> > > > > 
> > > > > > any true/false setting that can enable/disable the check itself from
> > > > > 
> > > > > > running?
> > > > > 
> > > > > > 
> > > > > 
> > > > > > 
> > > > > 
> > > > > > Thanks!
> > > > > 
> > > > > > 
> > > > > 
> > > > > > 
> > > > > 
> > > > > > -Travis
> > > > > 
> > > > > >

---

<div class="post-metadata">

**Author:** ![Akshay\_Kapoor](https://avatars.discourse-cdn.com/v4/letter/a/9fc29f/32.png) [@Akshay\_Kapoor](https://discourse.sensu.io/u/Akshay_Kapoor)\
**Post date:** [October 8, 2015, 9:04pm UTC](https://discourse.sensu.io/t/possible-to-disable-check-from-running/300/7 "2015-10-08T21:04:04Z")

</div>

the handle:false works fine but the subdue: “at”:“publisher” doesn’t work as expected. I still see the check request being sent by the server and also being executed by the client

> **···**
>
> On Friday, October 9, 2015 at 1:36:48 AM UTC+5:30, Akshay Kapoor wrote:
> 
> > I’m using “handle”: false and the behavior is different than what the doc says. In my case, i don’t see the check even getting published. Using sensu version 0.17.2-1
> > 
> > On Tuesday, November 4, 2014 at 10:32:45 PM UTC+5:30, Sean Porter wrote:
> > 
> > > Subdue “at”: “publisher”.
> 
> > > On Nov 4, 2014 8:19 AM, “Travis Bear” [travi...@gmail.com](mailto:travi...@gmail.com) wrote:
> > > 
> > > > Thanks guys.
> > > > 
> > > > The documentation on “subdue” ([http://sensuapp.org/docs/0.11/checks](http://sensuapp.org/docs/0.11/checks)) implies that it suppresses handler execution on the server side, rather than check execution on the client side, which is what I’m going for. I’d been hoping for a simple config option, but I’ve scripted up some stuff in Chef to delete the check definition and restart the Sensu client, which seems to do the trick.
> > > > 
> > > > -Travis
> > > > 
> > > > On Monday, November 3, 2014 8:57:11 PM UTC-8, portertech wrote:
> > > > 
> > > > > There is “subdue”, allowing you to suppress executions or notifications for a window, with exceptions.
> 
> > > > > On Nov 3, 2014 8:50 PM, “Kyle Anderson” [ky...@xkyle.com](mailto:ky...@xkyle.com) wrote:
> > > > > 
> > > > > > I’m not aware of a setting. If it is standalone you would have to
> > > > > > 
> > > > > > remove the definition.
> > > > > > 
> > > > > > If it is publish/subscribe you could set the subscribers to an empty
> > > > > > 
> > > > > > array, or remove the definition.
> > > > > > 
> > > > > > On Mon, Nov 3, 2014 at 11:04 AM, Travis Bear [travi...@gmail.com](mailto:travi...@gmail.com) wrote:
> > > > > > 
> > > > > > > In the sensu check definition, it’s possible to set
> > > > > > 
> > > > > > > 
> > > > > > 
> > > > > > > “handle”: false
> > > > > > 
> > > > > > > 
> > > > > > 
> > > > > > > 
> > > > > > 
> > > > > > > so that when the check runs, the sensu server does not apply any of the
> > > > > > 
> > > > > > > normal handler logic. (See [http://sensuapp.org/docs/0.14/checks](http://sensuapp.org/docs/0.14/checks)). Is there
> > > > > > 
> > > > > > > any true/false setting that can enable/disable the check itself from
> > > > > > 
> > > > > > > running?
> > > > > > 
> > > > > > > 
> > > > > > 
> > > > > > > 
> > > > > > 
> > > > > > > Thanks!
> > > > > > 
> > > > > > > 
> > > > > > 
> > > > > > > 
> > > > > > 
> > > > > > > -Travis
> > > > > > 
> > > > > > >
