# Sensu is not healthy says sensu-cli ... Now what?

**URL:** <https://discourse.sensu.io/t/sensu-is-not-healthy-says-sensu-cli-now-what/285>\
**Category:** Sensu Classic (EOL)\
**Created:** [October 15, 2014, 7:26pm UTC](https://discourse.sensu.io/t/sensu-is-not-healthy-says-sensu-cli-now-what/285 "2014-10-15T19:26:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![clay\_tyler](https://avatars.discourse-cdn.com/v4/letter/c/e495f1/32.png) [@clay\_tyler](https://discourse.sensu.io/u/clay_tyler)\
**Post date:** [October 15, 2014, 7:26pm UTC](https://discourse.sensu.io/t/sensu-is-not-healthy-says-sensu-cli-now-what/285/1 "2014-10-15T19:26:14Z")

</div>

Is there a tool  
(or some steps)

that’ll give me a clue to what to do?

This is a new install

ruby 1.9.3

on Centos 6.5

# sensu-cli info

sensu: {“version”=\>“0.14.0”}

transport: {“keepalives”=\>{“messages”=\>0, “consumers”=\>1}, “results”=\>{“messages”=\>0, “consumers”=\>1}, “connected”=\>true}

redis: {“connected”=\>true}

# sensu-cli client list

> **···**
>
> * * *
> 
> name: ws00
> 
> address: localhost
> 
> subscriptions: [“all”]
> 
> version: 0.14.0
> 
> timestamp: 1413400367

---

<div class="post-metadata">

**Author:** ![Bryan\_Brandau](https://avatars.discourse-cdn.com/v4/letter/b/a87d85/32.png) [@Bryan\_Brandau](https://discourse.sensu.io/u/Bryan_Brandau)\
**Post date:** [October 15, 2014, 7:45pm UTC](https://discourse.sensu.io/t/sensu-is-not-healthy-says-sensu-cli-now-what/285/2 "2014-10-15T19:45:06Z")

</div>

Health looks at two things:  
minimum number of consumers  
maximum number of messages

Based on your transport from sensu-cli info it “seems” healthy as you  
have 1 consumer and no messages in the queue.

What are you doing for a sensu-cli health command?

\* This should return healthy in the above scenario  
sensu-cli health --consumers 1 --messages 100

You can also mimic this right in the browser:  
[http://127.0.0.1:4567/health?consumers=1&messages=100](http://127.0.0.1:4567/health?consumers=1&messages=100)

If you get a 204, it is healthy.

Thanks,  
Bryan

> **···**
>
> On Wed, Oct 15, 2014 at 2:26 PM, clay tyler \<theclaytyler@gmail.com\> wrote:
> 
> > Is there a tool  
> > (or some steps)  
> > that'll give me a clue to what to do?
> > 
> > This is a new install  
> > ruby 1.9.3  
> > on Centos 6.5
> > 
> > # sensu-cli info  
> > sensu: {"version"=\>"0.14.0"}  
> > transport: {"keepalives"=\>{"messages"=\>0, "consumers"=\>1},  
> > "results"=\>{"messages"=\>0, "consumers"=\>1}, "connected"=\>true}  
> > redis: {"connected"=\>true}
> > 
> > # sensu-cli client list  
> > -------  
> > name: ws00  
> > address: localhost  
> > subscriptions: ["all"]  
> > version: 0.14.0  
> > timestamp: 1413400367

---

<div class="post-metadata">

**Author:** ![clay\_tyler](https://avatars.discourse-cdn.com/v4/letter/c/e495f1/32.png) [@clay\_tyler](https://discourse.sensu.io/u/clay_tyler)\
**Post date:** [October 15, 2014, 8:56pm UTC](https://discourse.sensu.io/t/sensu-is-not-healthy-says-sensu-cli-now-what/285/3 "2014-10-15T20:56:24Z")

</div>

HI Bryan,

I was busy reinstalling it

.

All done now.

Still suffering though.

The /health …

Well, I ran

sensu-cli health -c 3 -m 100

It still says

Sensu is not healthy.

In uchiwa I get these:

/health

```auto
{"uchiwa":"ok","sensu":{"Sensu":{}}}

```

/health/sensu

```auto
{"sensu":{"Sensu":{}}}

```

/health/uchiwa

```auto
{"uchiwa":"ok"}

```

I’m thinking the sensu entries shouldn’t be empty?

Don’t know.

Thanks to your message,

I tried sensu-cli health again - I changed consumers to 1.

Guess what ?? !!!

It said Sensu is healthy! 🙂

Yay!!

Looked at another way though, that is a real bummer.

I had thought that that output from cli health would help me track down the real problem.

Now, I’m back where I began - without a clue about how to track down and fix it.

Here’s the problem …

There’s a big red box flashing in uchiwa that says: “Error with Sensu API Sensu”

I’ve checked permissions, credentials … permissive selinux doesn’t help - maybe it’s the SSLs?

Whatever it is I can’t find a clue anywhere. I just have a broken sensu.

Any ideas?

They’re MIGHTY welcome

Thanks!

> **···**
>
> On Wednesday, October 15, 2014 2:45:08 PM UTC-5, agent462 wrote:
> 
> > Health looks at two things:  
> > minimum number of consumers  
> > maximum number of messages
> > 
> > Based on your transport from sensu-cli info it “seems” healthy as you  
> > have 1 consumer and no messages in the queue.
> > 
> > What are you doing for a sensu-cli health command?
> > 
> > - This should return healthy in the above scenario  
> > sensu-cli health --consumers 1 --messages 100
> > 
> > You can also mimic this right in the browser:  
> > [http://127.0.0.1:4567/health?consumers=1&messages=100](http://127.0.0.1:4567/health?consumers=1&messages=100)
> > 
> > If you get a 204, it is healthy.
> > 
> > Thanks,  
> > Bryan
> > 
> > On Wed, Oct 15, 2014 at 2:26 PM, clay tyler [thecla...@gmail.com](mailto:thecla...@gmail.com) wrote:
> > 
> > > Is there a tool  
> > > (or some steps)  
> > > that’ll give me a clue to what to do?
> > > 
> > > This is a new install  
> > > ruby 1.9.3  
> > > on Centos 6.5
> > > 
> > > # sensu-cli info
> > > 
> > > sensu: {“version”=\>“0.14.0”}  
> > > transport: {“keepalives”=\>{“messages”=\>0, “consumers”=\>1},  
> > > “results”=\>{“messages”=\>0, “consumers”=\>1}, “connected”=\>true}  
> > > redis: {“connected”=\>true}
> > > 
> > > # sensu-cli client list
> > > 
> > > * * *
> > > 
> > > name: ws00  
> > > address: localhost  
> > > subscriptions: [“all”]  
> > > version: 0.14.0  
> > > timestamp: 1413400367

---

<div class="post-metadata">

**Author:** ![clay\_tyler](https://avatars.discourse-cdn.com/v4/letter/c/e495f1/32.png) [@clay\_tyler](https://discourse.sensu.io/u/clay_tyler)\
**Post date:** [October 15, 2014, 11:49pm UTC](https://discourse.sensu.io/t/sensu-is-not-healthy-says-sensu-cli-now-what/285/4 "2014-10-15T23:49:08Z")

</div>

FIXED

FIXED - replaced /etc/sensu/conf.d/\*.json files with (near) stock copy of config.json.example

> **···**
>
> On Wednesday, October 15, 2014 2:26:14 PM UTC-5, clay tyler wrote:
> 
> > Is there a tool  
> > (or some steps)
> 
> > that’ll give me a clue to what to do?
> 
> > 
> 
> > This is a new install
> 
> > ruby 1.9.3
> 
> > on Centos 6.5
> 
> > 
> 
> > # sensu-cli info
> 
> > sensu: {“version”=\>“0.14.0”}
> 
> > transport: {“keepalives”=\>{“messages”=\>0, “consumers”=\>1}, “results”=\>{“messages”=\>0, “consumers”=\>1}, “connected”=\>true}
> 
> > redis: {“connected”=\>true}
> 
> > 
> 
> > # sensu-cli client list
> 
> > * * *
> 
> > name: ws00
> 
> > address: localhost
> 
> > subscriptions: [“all”]
> 
> > version: 0.14.0
> 
> > timestamp: 1413400367
> 
> >
