# Sensu Client not sending Metrics data to the Server

**URL:** <https://discourse.sensu.io/t/sensu-client-not-sending-metrics-data-to-the-server/379>\
**Category:** Sensu Classic (EOL)\
**Created:** [February 27, 2015, 11:28pm UTC](https://discourse.sensu.io/t/sensu-client-not-sending-metrics-data-to-the-server/379 "2015-02-27T23:28:56Z")\
**Posts on this page:** 11\
**Page:** 2

<div class="post-metadata">

**Author:** ![Srinivas\_Palle](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@Srinivas\_Palle](https://discourse.sensu.io/u/Srinivas_Palle)\
**Post date:** [June 4, 2015, 4:24am UTC](https://discourse.sensu.io/t/sensu-client-not-sending-metrics-data-to-the-server/379/21 "2015-06-04T04:24:55Z")

</div>

Sure,

Here is my carbon config file…

Thanks,

Srini

[carbon.config file.rtf](https://discourse.sensu.io/uploads/short-url/pBCJSZkWw3sm579Q5SYvi7MMNGn.rtf) (2.87 KB)

> **···**
>
> On Thursday, June 4, 2015 at 9:13:19 AM UTC+5:30, Kyle Anderson wrote:
> 
> > Well, “True” does look like a valid bool for python to me.
> > 
> > Can you put your carbon config file in a pastebin so I can see it
> > 
> > without email formatting?
> > 
> > On Wed, Jun 3, 2015 at 11:45 AM, Srinivas Palle [srin...@gmail.com](mailto:srin...@gmail.com) wrote:
> > 
> > > Hi Kyle,
> > 
> > > 
> > 
> > > My current sensu - graphite set up is working fine as expected with below
> > 
> > > exceptions, I ams till unable to send data through AMQP whenever I send data
> > 
> > > through AMQP carbon-cache gets crashed. Also please advice if below output
> > 
> > > is good to go with?
> > 
> > > 
> > 
> > > root@ip-192-168-30-160:/var/log/carbon# tail -f listener.log | grep -i
> > 
> > > “192.168.30.135”
> > 
> > > 
> > 
> > > 03/06/2015 18:29:33 :: MetricLineReceiver connection with
> > 
> > > [192.168.30.135:47814](http://192.168.30.135:47814) established
> > 
> > > 
> > 
> > > 03/06/2015 18:29:33 :: MetricLineReceiver connection with
> > 
> > > [192.168.30.135:47814](http://192.168.30.135:47814) closed cleanly
> > 
> > > 
> > 
> > > 03/06/2015 18:39:44 :: MetricLineReceiver connection with
> > 
> > > [192.168.30.135:47813](http://192.168.30.135:47813) lost: Connection to the other side was lost in a
> > 
> > > non-clean fashion: Connection lost.
> > 
> > > 
> > 
> > > 
> > 
> > > 
> > 
> > > AMQP error:
> > 
> > > 
> > 
> > > 
> > 
> > > root@ip-192-168-30-160:~# service carbon-cache restart
> > 
> > > 
> > 
> > > - Restarting Graphite backend daemon carbon-cache
> > 
> > > Traceback (most recent call last):
> > 
> > > 
> > 
> > > File “/usr/bin/carbon-cache”, line 32, in
> > 
> > > 
> > 
> > > ```
> > > run_twistd_plugin( __file__ )
> > > 
> > > ```
> > 
> > > 
> > 
> > > File “/usr/lib/python2.7/dist-packages/carbon/util.py”, line 90, in
> > 
> > > run\_twistd\_plugin
> > 
> > > 
> > 
> > > ```
> > > config.parseOptions(twistd_options)
> > > 
> > > ```
> > 
> > > 
> > 
> > > File “/usr/lib/python2.7/dist-packages/twisted/application/app.py”, line
> > 
> > > 604, in parseOptions
> > 
> > > 
> > 
> > > ```
> > > usage.Options.parseOptions(self, options)
> > > 
> > > ```
> > 
> > > 
> > 
> > > File “/usr/lib/python2.7/dist-packages/twisted/python/usage.py”, line 266,
> > 
> > > in parseOptions
> > 
> > > 
> > 
> > > ```
> > > self.subOptions.parseOptions(rest)
> > > 
> > > ```
> > 
> > > 
> > 
> > > File “/usr/lib/python2.7/dist-packages/twisted/python/usage.py”, line 276,
> > 
> > > in parseOptions
> > 
> > > 
> > 
> > > ```
> > > self.postOptions()
> > > 
> > > ```
> > 
> > > 
> > 
> > > File “/usr/lib/python2.7/dist-packages/carbon/conf.py”, line 197, in
> > 
> > > postOptions
> > 
> > > 
> > 
> > > ```
> > > program_settings = read_config(program, self)
> > > 
> > > ```
> > 
> > > 
> > 
> > > File “/usr/lib/python2.7/dist-packages/carbon/conf.py”, line 526, in
> > 
> > > read\_config
> > 
> > > 
> > 
> > > ```
> > > settings.readFrom(config, section)
> > > 
> > > ```
> > 
> > > 
> > 
> > > File “/usr/lib/python2.7/dist-packages/carbon/conf.py”, line 146, in
> > 
> > > readFrom
> > 
> > > 
> > 
> > > ```
> > > value = parser.getboolean(section, key)
> > > 
> > > ```
> > 
> > > 
> > 
> > > File “/usr/lib/python2.7/ConfigParser.py”, line 370, in getboolean
> > 
> > > 
> > 
> > > ```
> > > raise ValueError, 'Not a boolean: %s' % v
> > > 
> > > ```
> > 
> > > 
> > 
> > > ValueError: Not a boolean: True
> > 
> > > 
> > 
> > > ENABLE\_AMQP = True
> > 
> > > 
> > 
> > > AMQP\_HOST = 192.168.30.135
> > 
> > > 
> > 
> > > AMQP\_PORT = 5672
> > 
> > > 
> > 
> > > AMQP\_VHOST = /sensu
> > 
> > > 
> > 
> > > AMQP\_USER = sensu
> > 
> > > 
> > 
> > > AMQP\_PASSWORD = sensu123
> > 
> > > 
> > 
> > > AMQP\_EXCHANGE = metrics
> > 
> > > 
> > 
> > > AMQP\_METRIC\_NAME\_IN\_BODY = True
> > 
> > > 
> > 
> > > ```
> > > Thanks,Srini
> > > 
> > > ```
> > 
> > > 
> > 
> > > 
> > 
> > > On Saturday, February 28, 2015 at 4:58:56 AM UTC+5:30, [max2su...@gmail.com](mailto:max2su...@gmail.com) \> \> \> wrote:
> > 
> > > >
> > 
> > > > Hi,
> > 
> > > > ```
> > > > We are facing a problem of not getting any check "metrics"
> > > > 
> > > > ```
> > 
> > > > response from the client while following the tutorial at link Adding a
> > 
> > > > Metric.
> > 
> > > >
> > 
> > > > Following are the outputs :-
> > 
> > > >
> > 
> > > > Server \> tail -f /var/log/sensu/sensu-server.log
> > 
> > > >
> > 
> > > >
> > 
> > > > {“timestamp”:“2015-02-27T18:23:59.010129-0500”,“level”:“error”,“message”:"unknown
> > 
> > > > handler",“handler\_name”:“default”}
> > 
> > > >
> > 
> > > > {“timestamp”:“2015-02-27T18:24:06.362472-0500”,“level”:“info”,“message”:"determining
> > 
> > > > stale clients"}
> > 
> > > >
> > 
> > > > {“timestamp”:“2015-02-27T18:24:06.384124-0500”,“level”:“error”,“message”:"unknown
> > 
> > > > handler",“handler\_name”:“default”}
> > 
> > > >
> > 
> > > > {“timestamp”:“2015-02-27T18:24:06.386882-0500”,“level”:“error”,“message”:"unknown
> > 
> > > > handler",“handler\_name”:“default”}
> > 
> > > >
> > 
> > > > {“timestamp”:“2015-02-27T18:24:06.389126-0500”,“level”:“error”,“message”:"unknown
> > 
> > > > handler",“handler\_name”:“default”}
> > 
> > > >
> > 
> > > > {“timestamp”:“2015-02-27T18:24:08.426386-0500”,“level”:“info”,“message”:"publishing
> > 
> > > > check
> > 
> > > > request",“payload”:{“name”:“load\_metrics”,“issued”:1425079448,“command”:“load-metrics.rb”},“subscribers”:[“production”]}
> > 
> > > >
> > 
> > > >
> > 
> > > > Client \> tail -f /var/log/sensu/sensu-client.log
> > 
> > > >
> > 
> > > >
> > 
> > > > {“timestamp”:“2015-02-27T18:25:37.674068-0500”,“level”:“info”,“message”:"publishing
> > 
> > > > check
> > 
> > > > result",“payload”:{“client”:“sensu-client.25.max2”,“check”:{“name”:“load\_metrics”,“issued”:1425079538,“command”:“load-metrics.rb”,“executed”:1425079537,“duration”:0.172,“output”:"Dev.load\_avg.one
> > 
> > > > 0.13 1425079537\nDev.load\_avg.five 0.12 1425079537\nDev.load\_avg.fifteen
> > 
> > > > 0.22 1425079537\n\n",“status”:0}}}
> > 
> > > >
> > 
> > > >
> > 
> > > > What are the configs that we are missing ?
> > 
> > > >
> > 
> > > > Thanks:-
> > 
> > > >
> > 
> > >

---

<div class="post-metadata">

**Author:** ![Srinivas\_Palle](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@Srinivas\_Palle](https://discourse.sensu.io/u/Srinivas_Palle)\
**Post date:** [June 4, 2015, 1:57pm UTC](https://discourse.sensu.io/t/sensu-client-not-sending-metrics-data-to-the-server/379/22 "2015-06-04T13:57:47Z")

</div>

I Just resolved boolean true value issues, but still am unable to start sensu-server after having below handler in sensu server. can you please explain me if I need to have any handler in plugins to support amqp?

{

“handlers”: {

```
"graphite": {

   "type": "amqp",

  "exchange": {

    "type": "topic",

    "name": "metrics",

    "durable": "true"

  },

  "mutator": "only_check_output"

}

```

}

Below are the errors we are receiving:

{“timestamp”:“2015-06-04T10:03:36.567577+0000”,“level”:“warn”,“message”:“config file applied changes”,“file”:“/etc/sensu/conf.d/handler\_graphite.json”,“changes”:{“handlers”:{“graphite”:[null,{“host”:“192.168.30.160”,“port”:“2003”,“type”:“ **amqp** ”,“exchange”:{“type”:“topic”,“name”:“metrics”,“durable”:“true”},“mutator”:“only\_check\_output”}]}}}

{“timestamp”:“2015-06-04T10:03:36.568654+0000”,“level”:“fatal”,“message”:“unknown handler type”,“object”:{“host”:“192.168.30.160”,“port”:“2003”,“type”:“ **amqp** ”,“exchange”:{“type”:“topic”,“name”:“metrics”,“durable”:“true”},“mutator”:“only\_check\_output”,“name”:“graphite”}}

{“timestamp”:“2015-06-04T10:04:18.008631+0000”,“level”:“warn”,“message”:“config file applied changes”,“file”:“/etc/sensu/conf.d/check-disk-fail.json”,“changes”:{“checks”:{“diskfail\_check”:[null,{“type”:“ **amqp** ”,“command”:“/etc/sensu/plugins/sensu-community-plugins/plugins/system/check-disk-fail.rb”,“interval”:10,“handlers”:[“graphite”],“subscribers”:[“ALL”]}]}}}

{“timestamp”:“2015-06-04T10:04:18.009642+0000”,“level”:“warn”,“message”:“config file applied changes”,“file”:“/etc/sensu/conf.d/handler\_graphite.json”,“changes”:{“handlers”:{“graphite”:[null,{“type”:“ **amqp** ”,“exchange”:{“type”:“topic”,“name”:“metrics”,“durable”:“true”},“mutator”:“only\_check\_output”}]}}}

{“timestamp”:“2015-06-04T10:04:18.010737+0000”,“level”:“fatal”,“message”:“unknown handler type”,“object”:{“type”:“ **amqp** ”,“exchange”:{“type”:“topic”,“name”:“metrics”,“durable”:“true”},“mutator”:“only\_check\_output”,“name”:“graphite”}}

{“timestamp”:“2015-06-04T10:53:51.270568+0000”,“level”:“warn”,“message”:“config file applied changes”,“file”:“/etc/sensu/conf.d/check-disk-fail.json”,“changes”:{“checks”:{“diskfail\_check”:[null,{“type”:“ **amqp** ”,“command”:“/etc/sensu/plugins/sensu-community-plugins/plugins/system/check-disk-fail.rb”,“interval”:10,“handlers”:[“graphite”],“subscribers”:[“ALL”]}]}}}

{“timestamp”:“2015-06-04T10:53:51.271562+0000”,“level”:“warn”,“message”:“config file applied changes”,“file”:“/etc/sensu/conf.d/handler\_graphite.json”,“changes”:{“handlers”:{“graphite”:[null,{“type”:“ **amqp** ”,“exchange”:{“type”:“topic”,“name”:“metrics”,“durable”:“true”},“mutator”:“only\_check\_output”}]}}}

{“timestamp”:“2015-06-04T10:53:51.272595+0000”,“level”:“fatal”,“message”:“unknown handler type”,“object”:{“type”:“ **amqp** ”,“exchange”:{“type”:“topic”,“name”:“metrics”,“durable”:“true”},“mutator”:“only\_check\_output”,“name”:“graphite”}}

Thanks,

Srinivas

> **···**
>
> On Thu, Jun 4, 2015 at 9:54 AM, Srinivas Palle [srini5884@gmail.com](mailto:srini5884@gmail.com) wrote:
> 
> > Sure,
> 
> > Here is my carbon config file…
> 
> > 
> 
> > Thanks,
> 
> > Srini
> > 
> > On Thursday, June 4, 2015 at 9:13:19 AM UTC+5:30, Kyle Anderson wrote:
> > 
> > > Well, “True” does look like a valid bool for python to me.  
> > > Can you put your carbon config file in a pastebin so I can see it  
> > > without email formatting?
> > > 
> > > On Wed, Jun 3, 2015 at 11:45 AM, Srinivas Palle [srin...@gmail.com](mailto:srin...@gmail.com) wrote:
> > > 
> > > > Hi Kyle,
> > > > 
> > > > My current sensu - graphite set up is working fine as expected with below  
> > > > exceptions, I ams till unable to send data through AMQP whenever I send data  
> > > > through AMQP carbon-cache gets crashed. Also please advice if below output  
> > > > is good to go with?
> > > > 
> > > > root@ip-192-168-30-160:/var/log/carbon# tail -f listener.log | grep -i  
> > > > “192.168.30.135”
> > > > 
> > > > 03/06/2015 18:29:33 :: MetricLineReceiver connection with  
> > > > [192.168.30.135:47814](http://192.168.30.135:47814) established
> > > > 
> > > > 03/06/2015 18:29:33 :: MetricLineReceiver connection with  
> > > > [192.168.30.135:47814](http://192.168.30.135:47814) closed cleanly
> > > > 
> > > > 03/06/2015 18:39:44 :: MetricLineReceiver connection with  
> > > > [192.168.30.135:47813](http://192.168.30.135:47813) lost: Connection to the other side was lost in a  
> > > > non-clean fashion: Connection lost.
> > > > 
> > > > AMQP error:
> > > > 
> > > > root@ip-192-168-30-160:~# service carbon-cache restart
> > > > 
> > > > - Restarting Graphite backend daemon carbon-cache  
> > > > Traceback (most recent call last):
> > > > 
> > > > File “/usr/bin/carbon-cache”, line 32, in
> > > > 
> > > > ```
> > > > run_twistd_plugin( __file__ )
> > > > 
> > > > ```
> > > > 
> > > > File “/usr/lib/python2.7/dist-packages/carbon/util.py”, line 90, in  
> > > > run\_twistd\_plugin
> > > > 
> > > > ```
> > > > config.parseOptions(twistd_options)
> > > > 
> > > > ```
> > > > 
> > > > File “/usr/lib/python2.7/dist-packages/twisted/application/app.py”, line  
> > > > 604, in parseOptions
> > > > 
> > > > ```
> > > > usage.Options.parseOptions(self, options)
> > > > 
> > > > ```
> > > > 
> > > > File “/usr/lib/python2.7/dist-packages/twisted/python/usage.py”, line 266,  
> > > > in parseOptions
> > > > 
> > > > ```
> > > > self.subOptions.parseOptions(rest)
> > > > 
> > > > ```
> > > > 
> > > > File “/usr/lib/python2.7/dist-packages/twisted/python/usage.py”, line 276,  
> > > > in parseOptions
> > > > 
> > > > ```
> > > > self.postOptions()
> > > > 
> > > > ```
> > > > 
> > > > File “/usr/lib/python2.7/dist-packages/carbon/conf.py”, line 197, in  
> > > > postOptions
> > > > 
> > > > ```
> > > > program_settings = read_config(program, self)
> > > > 
> > > > ```
> > > > 
> > > > File “/usr/lib/python2.7/dist-packages/carbon/conf.py”, line 526, in  
> > > > read\_config
> > > > 
> > > > ```
> > > > settings.readFrom(config, section)
> > > > 
> > > > ```
> > > > 
> > > > File “/usr/lib/python2.7/dist-packages/carbon/conf.py”, line 146, in  
> > > > readFrom
> > > > 
> > > > ```
> > > > value = parser.getboolean(section, key)
> > > > 
> > > > ```
> > > > 
> > > > File “/usr/lib/python2.7/ConfigParser.py”, line 370, in getboolean
> > > > 
> > > > ```
> > > > raise ValueError, 'Not a boolean: %s' % v
> > > > 
> > > > ```
> > > > 
> > > > ValueError: Not a boolean: True
> > > > 
> > > > ENABLE\_AMQP = True
> > > > 
> > > > AMQP\_HOST = 192.168.30.135
> > > > 
> > > > AMQP\_PORT = 5672
> > > > 
> > > > AMQP\_VHOST = /sensu
> > > > 
> > > > AMQP\_USER = sensu
> > > > 
> > > > AMQP\_PASSWORD = sensu123
> > > > 
> > > > AMQP\_EXCHANGE = metrics
> > > > 
> > > > AMQP\_METRIC\_NAME\_IN\_BODY = True
> > > > 
> > > > ```
> > > > Thanks,Srini
> > > > 
> > > > ```
> > > > 
> > > > On Saturday, February 28, 2015 at 4:58:56 AM UTC+5:30, [max2su...@gmail.com](mailto:max2su...@gmail.com)
> > > 
> > > > wrote:
> > > > 
> > > > > Hi,  
> > > > > We are facing a problem of not getting any check “metrics”  
> > > > > response from the client while following the tutorial at link Adding a  
> > > > > Metric.
> > > > > 
> > > > > Following are the outputs :-
> > > > > 
> > > > > Server \> tail -f /var/log/sensu/sensu-server.log
> > > > > 
> > > > > {“timestamp”:“2015-02-27T18:23:59.010129-0500”,“level”:“error”,“message”:“unknown  
> > > > > handler”,“handler\_name”:“default”}
> > > > > 
> > > > > {“timestamp”:“2015-02-27T18:24:06.362472-0500”,“level”:“info”,“message”:“determining  
> > > > > stale clients”}
> > > > > 
> > > > > {“timestamp”:“2015-02-27T18:24:06.384124-0500”,“level”:“error”,“message”:“unknown  
> > > > > handler”,“handler\_name”:“default”}
> > > > > 
> > > > > {“timestamp”:“2015-02-27T18:24:06.386882-0500”,“level”:“error”,“message”:“unknown  
> > > > > handler”,“handler\_name”:“default”}
> > > > > 
> > > > > {“timestamp”:“2015-02-27T18:24:06.389126-0500”,“level”:“error”,“message”:“unknown  
> > > > > handler”,“handler\_name”:“default”}
> > > > > 
> > > > > {“timestamp”:“2015-02-27T18:24:08.426386-0500”,“level”:“info”,“message”:“publishing  
> > > > > check  
> > > > > request”,“payload”:{“name”:“load\_metrics”,“issued”:1425079448,“command”:“load-metrics.rb”},“subscribers”:[“production”]}
> > > > > 
> > > > > Client \> tail -f /var/log/sensu/sensu-client.log
> > > > > 
> > > > > {“timestamp”:“2015-02-27T18:25:37.674068-0500”,“level”:“info”,“message”:“publishing  
> > > > > check  
> > > > > result”,“payload”:{“client”:“sensu-client.25.max2”,“check”:{“name”:“load\_metrics”,“issued”:1425079538,“command”:“load-metrics.rb”,“executed”:1425079537,“duration”:0.172,“output”:“Dev.load\_avg.one  
> > > > > 0.13 1425079537\nDev.load\_avg.five 0.12 1425079537\nDev.load\_avg.fifteen  
> > > > > 0.22 1425079537\n\n”,“status”:0}}}
> > > > > 
> > > > > What are the configs that we are missing ?
> > > > > 
> > > > > Thanks:-

---

<div class="post-metadata">

**Author:** ![Srinivas\_Palle](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@Srinivas\_Palle](https://discourse.sensu.io/u/Srinivas_Palle)\
**Post date:** [June 4, 2015, 2:08pm UTC](https://discourse.sensu.io/t/sensu-client-not-sending-metrics-data-to-the-server/379/23 "2015-06-04T14:08:06Z")

</div>

Below is the sensu config file I have on sensu server"

root@ip-192-168-30-135:/etc/sensu# vi config.json

},

“api”: {

```
"host": "localhost",

"port": 4567

```

},

“dashboard”: {

```
"host": "localhost",

"port": 8080,

"user": "admin",

"password": "secret"

```

},

“handlers”: {

```
"graphite": {

   "type": "amqp",

  "exchange": {

    "type": "topic",

    "name": "metrics",

    "durable": "true"

  },

  "mutator": "only_check_output"

```

}

}

}

> **···**
>
> On Thu, Jun 4, 2015 at 7:27 PM, Srinivas Palle [srini5884@gmail.com](mailto:srini5884@gmail.com) wrote:
> 
> > I Just resolved boolean true value issues, but still am unable to start sensu-server after having below handler in sensu server. can you please explain me if I need to have any handler in plugins to support amqp?
> 
> > {
> 
> > “handlers”: {
> 
> > ```
> > "graphite": {
> > 
> > ```
> 
> > ```
> > "type": "amqp",
> > 
> > ```
> 
> > ```
> > "exchange": {
> > 
> > ```
> 
> > ```
> > "type": "topic",
> > 
> > ```
> 
> > ```
> > "name": "metrics",
> > 
> > ```
> 
> > ```
> > "durable": "true"
> > 
> > ```
> 
> > ```
> > },
> > 
> > ```
> 
> > ```
> > "mutator": "only_check_output"
> > 
> > ```
> 
> > ```
> > }
> > 
> > ```
> 
> > }
> 
> > 
> 
> > Below are the errors we are receiving:
> 
> > 
> 
> > {“timestamp”:“2015-06-04T10:03:36.567577+0000”,“level”:“warn”,“message”:“config file applied changes”,“file”:“/etc/sensu/conf.d/handler\_graphite.json”,“changes”:{“handlers”:{“graphite”:[null,{“host”:“192.168.30.160”,“port”:“2003”,“type”:“ **amqp** ”,“exchange”:{“type”:“topic”,“name”:“metrics”,“durable”:“true”},“mutator”:“only\_check\_output”}]}}}
> 
> > {“timestamp”:“2015-06-04T10:03:36.568654+0000”,“level”:“fatal”,“message”:“unknown handler type”,“object”:{“host”:“192.168.30.160”,“port”:“2003”,“type”:“ **amqp** ”,“exchange”:{“type”:“topic”,“name”:“metrics”,“durable”:“true”},“mutator”:“only\_check\_output”,“name”:“graphite”}}
> 
> > {“timestamp”:“2015-06-04T10:04:18.008631+0000”,“level”:“warn”,“message”:“config file applied changes”,“file”:“/etc/sensu/conf.d/check-disk-fail.json”,“changes”:{“checks”:{“diskfail\_check”:[null,{“type”:“ **amqp** ”,“command”:“/etc/sensu/plugins/sensu-community-plugins/plugins/system/check-disk-fail.rb”,“interval”:10,“handlers”:[“graphite”],“subscribers”:[“ALL”]}]}}}
> 
> > {“timestamp”:“2015-06-04T10:04:18.009642+0000”,“level”:“warn”,“message”:“config file applied changes”,“file”:“/etc/sensu/conf.d/handler\_graphite.json”,“changes”:{“handlers”:{“graphite”:[null,{“type”:“ **amqp** ”,“exchange”:{“type”:“topic”,“name”:“metrics”,“durable”:“true”},“mutator”:“only\_check\_output”}]}}}
> 
> > {“timestamp”:“2015-06-04T10:04:18.010737+0000”,“level”:“fatal”,“message”:“unknown handler type”,“object”:{“type”:“ **amqp** ”,“exchange”:{“type”:“topic”,“name”:“metrics”,“durable”:“true”},“mutator”:“only\_check\_output”,“name”:“graphite”}}
> 
> > {“timestamp”:“2015-06-04T10:53:51.270568+0000”,“level”:“warn”,“message”:“config file applied changes”,“file”:“/etc/sensu/conf.d/check-disk-fail.json”,“changes”:{“checks”:{“diskfail\_check”:[null,{“type”:“ **amqp** ”,“command”:“/etc/sensu/plugins/sensu-community-plugins/plugins/system/check-disk-fail.rb”,“interval”:10,“handlers”:[“graphite”],“subscribers”:[“ALL”]}]}}}
> 
> > {“timestamp”:“2015-06-04T10:53:51.271562+0000”,“level”:“warn”,“message”:“config file applied changes”,“file”:“/etc/sensu/conf.d/handler\_graphite.json”,“changes”:{“handlers”:{“graphite”:[null,{“type”:“ **amqp** ”,“exchange”:{“type”:“topic”,“name”:“metrics”,“durable”:“true”},“mutator”:“only\_check\_output”}]}}}
> 
> > {“timestamp”:“2015-06-04T10:53:51.272595+0000”,“level”:“fatal”,“message”:“unknown handler type”,“object”:{“type”:“ **amqp** ”,“exchange”:{“type”:“topic”,“name”:“metrics”,“durable”:“true”},“mutator”:“only\_check\_output”,“name”:“graphite”}}
> 
> > 
> 
> > 
> 
> > Thanks,
> 
> > Srinivas
> 
> On Thu, Jun 4, 2015 at 9:54 AM, Srinivas Palle [srini5884@gmail.com](mailto:srini5884@gmail.com) wrote:
> 
> > Sure,
> 
> > Here is my carbon config file…
> 
> > 
> 
> > Thanks,
> 
> > Srini
> > 
> > On Thursday, June 4, 2015 at 9:13:19 AM UTC+5:30, Kyle Anderson wrote:
> > 
> > > Well, “True” does look like a valid bool for python to me.  
> > > Can you put your carbon config file in a pastebin so I can see it  
> > > without email formatting?
> > > 
> > > On Wed, Jun 3, 2015 at 11:45 AM, Srinivas Palle [srin...@gmail.com](mailto:srin...@gmail.com) wrote:
> > > 
> > > > Hi Kyle,
> > > > 
> > > > My current sensu - graphite set up is working fine as expected with below  
> > > > exceptions, I ams till unable to send data through AMQP whenever I send data  
> > > > through AMQP carbon-cache gets crashed. Also please advice if below output  
> > > > is good to go with?
> > > > 
> > > > root@ip-192-168-30-160:/var/log/carbon# tail -f listener.log | grep -i  
> > > > “192.168.30.135”
> > > > 
> > > > 03/06/2015 18:29:33 :: MetricLineReceiver connection with  
> > > > [192.168.30.135:47814](http://192.168.30.135:47814) established
> > > > 
> > > > 03/06/2015 18:29:33 :: MetricLineReceiver connection with  
> > > > [192.168.30.135:47814](http://192.168.30.135:47814) closed cleanly
> > > > 
> > > > 03/06/2015 18:39:44 :: MetricLineReceiver connection with  
> > > > [192.168.30.135:47813](http://192.168.30.135:47813) lost: Connection to the other side was lost in a  
> > > > non-clean fashion: Connection lost.
> > > > 
> > > > AMQP error:
> > > > 
> > > > root@ip-192-168-30-160:~# service carbon-cache restart
> > > > 
> > > > - Restarting Graphite backend daemon carbon-cache  
> > > > Traceback (most recent call last):
> > > > 
> > > > File “/usr/bin/carbon-cache”, line 32, in
> > > > 
> > > > ```
> > > > run_twistd_plugin( __file__ )
> > > > 
> > > > ```
> > > > 
> > > > File “/usr/lib/python2.7/dist-packages/carbon/util.py”, line 90, in  
> > > > run\_twistd\_plugin
> > > > 
> > > > ```
> > > > config.parseOptions(twistd_options)
> > > > 
> > > > ```
> > > > 
> > > > File “/usr/lib/python2.7/dist-packages/twisted/application/app.py”, line  
> > > > 604, in parseOptions
> > > > 
> > > > ```
> > > > usage.Options.parseOptions(self, options)
> > > > 
> > > > ```
> > > > 
> > > > File “/usr/lib/python2.7/dist-packages/twisted/python/usage.py”, line 266,  
> > > > in parseOptions
> > > > 
> > > > ```
> > > > self.subOptions.parseOptions(rest)
> > > > 
> > > > ```
> > > > 
> > > > File “/usr/lib/python2.7/dist-packages/twisted/python/usage.py”, line 276,  
> > > > in parseOptions
> > > > 
> > > > ```
> > > > self.postOptions()
> > > > 
> > > > ```
> > > > 
> > > > File “/usr/lib/python2.7/dist-packages/carbon/conf.py”, line 197, in  
> > > > postOptions
> > > > 
> > > > ```
> > > > program_settings = read_config(program, self)
> > > > 
> > > > ```
> > > > 
> > > > File “/usr/lib/python2.7/dist-packages/carbon/conf.py”, line 526, in  
> > > > read\_config
> > > > 
> > > > ```
> > > > settings.readFrom(config, section)
> > > > 
> > > > ```
> > > > 
> > > > File “/usr/lib/python2.7/dist-packages/carbon/conf.py”, line 146, in  
> > > > readFrom
> > > > 
> > > > ```
> > > > value = parser.getboolean(section, key)
> > > > 
> > > > ```
> > > > 
> > > > File “/usr/lib/python2.7/ConfigParser.py”, line 370, in getboolean
> > > > 
> > > > ```
> > > > raise ValueError, 'Not a boolean: %s' % v
> > > > 
> > > > ```
> > > > 
> > > > ValueError: Not a boolean: True
> > > > 
> > > > ENABLE\_AMQP = True
> > > > 
> > > > AMQP\_HOST = 192.168.30.135
> > > > 
> > > > AMQP\_PORT = 5672
> > > > 
> > > > AMQP\_VHOST = /sensu
> > > > 
> > > > AMQP\_USER = sensu
> > > > 
> > > > AMQP\_PASSWORD = sensu123
> > > > 
> > > > AMQP\_EXCHANGE = metrics
> > > > 
> > > > AMQP\_METRIC\_NAME\_IN\_BODY = True
> > > > 
> > > > ```
> > > > Thanks,Srini
> > > > 
> > > > ```
> > > > 
> > > > On Saturday, February 28, 2015 at 4:58:56 AM UTC+5:30, [max2su...@gmail.com](mailto:max2su...@gmail.com)
> > > 
> > > > wrote:
> > > > 
> > > > > Hi,  
> > > > > We are facing a problem of not getting any check “metrics”  
> > > > > response from the client while following the tutorial at link Adding a  
> > > > > Metric.
> > > > > 
> > > > > Following are the outputs :-
> > > > > 
> > > > > Server \> tail -f /var/log/sensu/sensu-server.log
> > > > > 
> > > > > {“timestamp”:“2015-02-27T18:23:59.010129-0500”,“level”:“error”,“message”:“unknown  
> > > > > handler”,“handler\_name”:“default”}
> > > > > 
> > > > > {“timestamp”:“2015-02-27T18:24:06.362472-0500”,“level”:“info”,“message”:“determining  
> > > > > stale clients”}
> > > > > 
> > > > > {“timestamp”:“2015-02-27T18:24:06.384124-0500”,“level”:“error”,“message”:“unknown  
> > > > > handler”,“handler\_name”:“default”}
> > > > > 
> > > > > {“timestamp”:“2015-02-27T18:24:06.386882-0500”,“level”:“error”,“message”:“unknown  
> > > > > handler”,“handler\_name”:“default”}
> > > > > 
> > > > > {“timestamp”:“2015-02-27T18:24:06.389126-0500”,“level”:“error”,“message”:“unknown  
> > > > > handler”,“handler\_name”:“default”}
> > > > > 
> > > > > {“timestamp”:“2015-02-27T18:24:08.426386-0500”,“level”:“info”,“message”:“publishing  
> > > > > check  
> > > > > request”,“payload”:{“name”:“load\_metrics”,“issued”:1425079448,“command”:“load-metrics.rb”},“subscribers”:[“production”]}
> > > > > 
> > > > > Client \> tail -f /var/log/sensu/sensu-client.log
> > > > > 
> > > > > {“timestamp”:“2015-02-27T18:25:37.674068-0500”,“level”:“info”,“message”:“publishing  
> > > > > check  
> > > > > result”,“payload”:{“client”:“sensu-client.25.max2”,“check”:{“name”:“load\_metrics”,“issued”:1425079538,“command”:“load-metrics.rb”,“executed”:1425079537,“duration”:0.172,“output”:“Dev.load\_avg.one  
> > > > > 0.13 1425079537\nDev.load\_avg.five 0.12 1425079537\nDev.load\_avg.fifteen  
> > > > > 0.22 1425079537\n\n”,“status”:0}}}
> > > > > 
> > > > > What are the configs that we are missing ?
> > > > > 
> > > > > Thanks:-

---

<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:** [June 5, 2015, 4:38am UTC](https://discourse.sensu.io/t/sensu-client-not-sending-metrics-data-to-the-server/379/24 "2015-06-05T04:38:51Z")

</div>

Again, please use a pastebin to share configuration data like this:

> **[Pastebin.com - #1 paste tool since 2002!](https://pastebin.com/)**
>
> Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

It is impossible to be sure about what your configuration is with  
email formatting.

> **···**
>
> On Thu, Jun 4, 2015 at 7:08 AM, Srinivas Palle \<srini5884@gmail.com\> wrote:
> 
> > Below is the sensu config file I have on sensu server"
> > 
> > root@ip-192-168-30-135:/etc/sensu# vi config.json
> > 
> > &nbsp;&nbsp;},
> > 
> > &nbsp;&nbsp;"api": {
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;"host": "localhost",
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;"port": 4567
> > 
> > &nbsp;&nbsp;},
> > 
> > &nbsp;&nbsp;"dashboard": {
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;"host": "localhost",
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;"port": 8080,
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;"user": "admin",
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;"password": "secret"
> > 
> > &nbsp;&nbsp;},
> > 
> > "handlers": {
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;"graphite": {
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"type": "amqp",
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"exchange": {
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"type": "topic",
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"name": "metrics",
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"durable": "true"
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},
> > 
> > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"mutator": "only\_check\_output"
> > 
> > }
> > 
> > &nbsp;&nbsp;}
> > 
> > }
> > 
> > On Thu, Jun 4, 2015 at 7:27 PM, Srinivas Palle \<srini5884@gmail.com\> wrote:
> > 
> > > I Just resolved boolean true value issues, but still am unable to start  
> > > sensu-server after having below handler in sensu server. can you please  
> > > explain me if I need to have any handler in plugins to support amqp?
> > > 
> > > {
> > > 
> > > &nbsp;&nbsp;"handlers": {
> > > 
> > > &nbsp;&nbsp;&nbsp;&nbsp;"graphite": {
> > > 
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"type": "amqp",
> > > 
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"exchange": {
> > > 
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"type": "topic",
> > > 
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"name": "metrics",
> > > 
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"durable": "true"
> > > 
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;},
> > > 
> > > &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"mutator": "only\_check\_output"
> > > 
> > > &nbsp;&nbsp;&nbsp;&nbsp;}
> > > 
> > > &nbsp;&nbsp;}
> > > 
> > > Below are the errors we are receiving:
> > > 
> > > {"timestamp":"2015-06-04T10:03:36.567577+0000","level":"warn","message":"config  
> > > file applied  
> > > changes","file":"/etc/sensu/conf.d/handler\_graphite.json","changes":{"handlers":{"graphite":[null,{"host":"192.168.30.160","port":"2003","type":"amqp","exchange":{"type":"topic","name":"metrics","durable":"true"},"mutator":"only\_check\_output"}]}}}
> > > 
> > > {"timestamp":"2015-06-04T10:03:36.568654+0000","level":"fatal","message":"unknown  
> > > handler  
> > > type","object":{"host":"192.168.30.160","port":"2003","type":"amqp","exchange":{"type":"topic","name":"metrics","durable":"true"},"mutator":"only\_check\_output","name":"graphite"}}
> > > 
> > > {"timestamp":"2015-06-04T10:04:18.008631+0000","level":"warn","message":"config  
> > > file applied  
> > > changes","file":"/etc/sensu/conf.d/check-disk-fail.json","changes":{"checks":{"diskfail\_check":[null,{"type":"amqp","command":"/etc/sensu/plugins/sensu-community-plugins/plugins/system/check-disk-fail.rb","interval":10,"handlers":["graphite"],"subscribers":["ALL"]}]}}}
> > > 
> > > {"timestamp":"2015-06-04T10:04:18.009642+0000","level":"warn","message":"config  
> > > file applied  
> > > changes","file":"/etc/sensu/conf.d/handler\_graphite.json","changes":{"handlers":{"graphite":[null,{"type":"amqp","exchange":{"type":"topic","name":"metrics","durable":"true"},"mutator":"only\_check\_output"}]}}}
> > > 
> > > {"timestamp":"2015-06-04T10:04:18.010737+0000","level":"fatal","message":"unknown  
> > > handler  
> > > type","object":{"type":"amqp","exchange":{"type":"topic","name":"metrics","durable":"true"},"mutator":"only\_check\_output","name":"graphite"}}
> > > 
> > > {"timestamp":"2015-06-04T10:53:51.270568+0000","level":"warn","message":"config  
> > > file applied  
> > > changes","file":"/etc/sensu/conf.d/check-disk-fail.json","changes":{"checks":{"diskfail\_check":[null,{"type":"amqp","command":"/etc/sensu/plugins/sensu-community-plugins/plugins/system/check-disk-fail.rb","interval":10,"handlers":["graphite"],"subscribers":["ALL"]}]}}}
> > > 
> > > {"timestamp":"2015-06-04T10:53:51.271562+0000","level":"warn","message":"config  
> > > file applied  
> > > changes","file":"/etc/sensu/conf.d/handler\_graphite.json","changes":{"handlers":{"graphite":[null,{"type":"amqp","exchange":{"type":"topic","name":"metrics","durable":"true"},"mutator":"only\_check\_output"}]}}}
> > > 
> > > {"timestamp":"2015-06-04T10:53:51.272595+0000","level":"fatal","message":"unknown  
> > > handler  
> > > type","object":{"type":"amqp","exchange":{"type":"topic","name":"metrics","durable":"true"},"mutator":"only\_check\_output","name":"graphite"}}
> > > 
> > > Thanks,
> > > 
> > > Srinivas
> > > 
> > > On Thu, Jun 4, 2015 at 9:54 AM, Srinivas Palle \<srini5884@gmail.com\> \>\> wrote:
> > > 
> > > > Sure,
> > > > 
> > > > Here is my carbon config file..
> > > > 
> > > > Thanks,  
> > > > Srini
> > > > 
> > > > On Thursday, June 4, 2015 at 9:13:19 AM UTC+5:30, Kyle Anderson wrote:
> > > > 
> > > > > Well, "True" does look like a valid bool for python to me.  
> > > > > Can you put your carbon config file in a pastebin so I can see it  
> > > > > without email formatting?
> > > > > 
> > > > > On Wed, Jun 3, 2015 at 11:45 AM, Srinivas Palle \<srin...@gmail.com\> \>\>\>\> wrote:  
> > > > > \> Hi Kyle,  
> > > > > \>  
> > > > > \> My current sensu - graphite set up is working fine as expected with  
> > > > > \> below  
> > > > > \> exceptions, I ams till unable to send data through AMQP whenever I  
> > > > > \> send data  
> > > > > \> through AMQP carbon-cache gets crashed. Also please advice if below  
> > > > > \> output  
> > > > > \> is good to go with?  
> > > > > \>  
> > > > > \> root@ip-192-168-30-160:/var/log/carbon# tail -f listener.log | grep -i  
> > > > > \> "192.168.30.135"  
> > > > > \>  
> > > > > \> 03/06/2015 18:29:33 :: MetricLineReceiver connection with  
> > > > > \> 192.168.30.135:47814 established  
> > > > > \>  
> > > > > \> 03/06/2015 18:29:33 :: MetricLineReceiver connection with  
> > > > > \> 192.168.30.135:47814 closed cleanly  
> > > > > \>  
> > > > > \> 03/06/2015 18:39:44 :: MetricLineReceiver connection with  
> > > > > \> 192.168.30.135:47813 lost: Connection to the other side was lost in a  
> > > > > \> non-clean fashion: Connection lost.  
> > > > > \>  
> > > > > \>  
> > > > > \>  
> > > > > \> AMQP error:  
> > > > > \>  
> > > > > \>  
> > > > > \> root@ip-192-168-30-160:~# service carbon-cache restart  
> > > > > \>  
> > > > > \> \* Restarting Graphite backend daemon carbon-cache  
> > > > > \> Traceback (most recent call last):  
> > > > > \>  
> > > > > \> File "/usr/bin/carbon-cache", line 32, in \<module\>  
> > > > > \>  
> > > > > \> run\_twistd\_plugin(\_\_file\_\_)  
> > > > > \>  
> > > > > \> File "/usr/lib/python2.7/dist-packages/carbon/util.py", line 90, in  
> > > > > \> run\_twistd\_plugin  
> > > > > \>  
> > > > > \> config.parseOptions(twistd\_options)  
> > > > > \>  
> > > > > \> File "/usr/lib/python2.7/dist-packages/twisted/application/app.py",  
> > > > > \> line  
> > > > > \> 604, in parseOptions  
> > > > > \>  
> > > > > \> usage.Options.parseOptions(self, options)  
> > > > > \>  
> > > > > \> File "/usr/lib/python2.7/dist-packages/twisted/python/usage.py",  
> > > > > \> line 266,  
> > > > > \> in parseOptions  
> > > > > \>  
> > > > > \> self.subOptions.parseOptions(rest)  
> > > > > \>  
> > > > > \> File "/usr/lib/python2.7/dist-packages/twisted/python/usage.py",  
> > > > > \> line 276,  
> > > > > \> in parseOptions  
> > > > > \>  
> > > > > \> self.postOptions()  
> > > > > \>  
> > > > > \> File "/usr/lib/python2.7/dist-packages/carbon/conf.py", line 197, in  
> > > > > \> postOptions  
> > > > > \>  
> > > > > \> program\_settings = read\_config(program, self)  
> > > > > \>  
> > > > > \> File "/usr/lib/python2.7/dist-packages/carbon/conf.py", line 526, in  
> > > > > \> read\_config  
> > > > > \>  
> > > > > \> settings.readFrom(config, section)  
> > > > > \>  
> > > > > \> File "/usr/lib/python2.7/dist-packages/carbon/conf.py", line 146, in  
> > > > > \> readFrom  
> > > > > \>  
> > > > > \> value = parser.getboolean(section, key)  
> > > > > \>  
> > > > > \> File "/usr/lib/python2.7/ConfigParser.py", line 370, in getboolean  
> > > > > \>  
> > > > > \> raise ValueError, 'Not a boolean: %s' % v  
> > > > > \>  
> > > > > \> ValueError: Not a boolean: True  
> > > > > \>  
> > > > > \> ENABLE\_AMQP = True  
> > > > > \>  
> > > > > \> AMQP\_HOST = 192.168.30.135  
> > > > > \>  
> > > > > \> AMQP\_PORT = 5672  
> > > > > \>  
> > > > > \> AMQP\_VHOST = /sensu  
> > > > > \>  
> > > > > \> AMQP\_USER = sensu  
> > > > > \>  
> > > > > \> AMQP\_PASSWORD = sensu123  
> > > > > \>  
> > > > > \> AMQP\_EXCHANGE = metrics  
> > > > > \>  
> > > > > \> AMQP\_METRIC\_NAME\_IN\_BODY = True  
> > > > > \>  
> > > > > \> Thanks,Srini  
> > > > > \>  
> > > > > \>  
> > > > > \> On Saturday, February 28, 2015 at 4:58:56 AM UTC+5:30, \>\>\>\> \> max2su...@gmail.com \>\>\>\> \> wrote:  
> > > > > \>\>  
> > > > > \>\> Hi,  
> > > > > \>\> We are facing a problem of not getting any check "metrics"  
> > > > > \>\> response from the client while following the tutorial at link Adding  
> > > > > \>\> a  
> > > > > \>\> Metric.  
> > > > > \>\>  
> > > > > \>\> Following are the outputs :-  
> > > > > \>\>  
> > > > > \>\> Server \> tail -f /var/log/sensu/sensu-server.log  
> > > > > \>\>  
> > > > > \>\>  
> > > > > \>\>  
> > > > > \>\> {"timestamp":"2015-02-27T18:23:59.010129-0500","level":"error","message":"unknown  
> > > > > \>\> handler","handler\_name":"default"}  
> > > > > \>\>  
> > > > > \>\>  
> > > > > \>\> {"timestamp":"2015-02-27T18:24:06.362472-0500","level":"info","message":"determining  
> > > > > \>\> stale clients"}  
> > > > > \>\>  
> > > > > \>\>  
> > > > > \>\> {"timestamp":"2015-02-27T18:24:06.384124-0500","level":"error","message":"unknown  
> > > > > \>\> handler","handler\_name":"default"}  
> > > > > \>\>  
> > > > > \>\>  
> > > > > \>\> {"timestamp":"2015-02-27T18:24:06.386882-0500","level":"error","message":"unknown  
> > > > > \>\> handler","handler\_name":"default"}  
> > > > > \>\>  
> > > > > \>\>  
> > > > > \>\> {"timestamp":"2015-02-27T18:24:06.389126-0500","level":"error","message":"unknown  
> > > > > \>\> handler","handler\_name":"default"}  
> > > > > \>\>  
> > > > > \>\>  
> > > > > \>\> {"timestamp":"2015-02-27T18:24:08.426386-0500","level":"info","message":"publishing  
> > > > > \>\> check  
> > > > > \>\>  
> > > > > \>\> request","payload":{"name":"load\_metrics","issued":1425079448,"command":"load-metrics.rb"},"subscribers":["production"]}  
> > > > > \>\>  
> > > > > \>\>  
> > > > > \>\> Client \> tail -f /var/log/sensu/sensu-client.log  
> > > > > \>\>  
> > > > > \>\>  
> > > > > \>\>  
> > > > > \>\> {"timestamp":"2015-02-27T18:25:37.674068-0500","level":"info","message":"publishing  
> > > > > \>\> check  
> > > > > \>\>  
> > > > > \>\> result","payload":{"client":"sensu-client.25.max2","check":{"name":"load\_metrics","issued":1425079538,"command":"load-metrics.rb","executed":1425079537,"duration":0.172,"output":"Dev.load\_avg.one  
> > > > > \>\> 0.13 1425079537\nDev.load\_avg.five 0.12  
> > > > > \>\> 1425079537\nDev.load\_avg.fifteen  
> > > > > \>\> 0.22 1425079537\n\n","status":0}}}  
> > > > > \>\>  
> > > > > \>\>  
> > > > > \>\> What are the configs that we are missing ?  
> > > > > \>\>  
> > > > > \>\> Thanks:-  
> > > > > \>\>  
> > > > > \>

---

<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:** [June 5, 2015, 2:35pm UTC](https://discourse.sensu.io/t/sensu-client-not-sending-metrics-data-to-the-server/379/25 "2015-06-05T14:35:26Z")

</div>

Again, please email the entire group and not me personally. It allow  
others to help if they know.  
I will no longer reply-back to your personal emails.

The error that sensu has:  
{"timestamp":"2015-06-04T10:53:51.272595+0000","level":"fatal","message":"unknown  
handler type","object":{"type":"amqp","exchange":{"type":"topic","name":"metrics","durable":"true"},"mutator":"only\_check\_output","name":"graphite"}}

Comes from the mutator section of the handler config:

> **[{ "handlers": { "graphite": { "type": "amqp", "exchange": -...](https://pastebin.com/7WAEALy3)**
>
> Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

Here are the docs on how to define mutators:  
[https://sensuapp.org/docs/latest/mutators](https://sensuapp.org/docs/latest/mutators)

It has to be in its own block, it cannot be in the "Handlers" section,  
and cannot be in the graphite section.

I also recommend using configuration management (chef/puppet) as they  
will prevent you from creating malformed json.

> **···**
>
> On Fri, Jun 5, 2015 at 6:31 AM, Srinivas Palle \<srini5884@gmail.com\> wrote:
> 
> > I am trying to data from sensu to graphite through AMQP handler.
> > 
> > Thanks,  
> > Srinivas
> > 
> > On Fri, Jun 5, 2015 at 6:10 PM, Srinivas Palle \<srini5884@gmail.com\> wrote:
> > 
> > > Here is my config file:
> > > 
> > > AMQP handler configuration:
> > > 
> > > [{ "handlers": { "graphite": { "type": "amqp", "exchange": - Pastebin.com](http://pastebin.com/7WAEALy3) :
> > > 
> > > Basic sensu config file:
> > > 
> > > [{ "rabbitmq": { "ssl": { "private\_key\_file": "/etc/sensu/ssl/clie - Pastebin.com](http://pastebin.com/EkedqsLW)
> > > 
> > > Thanks,  
> > > Srinivas
> > > 
> > > On Fri, Jun 5, 2015 at 10:08 AM, Kyle Anderson \<kyle@xkyle.com\> wrote:
> > > 
> > > > Again, please use a pastebin to share configuration data like this:  
> > > > [http://pastebin.com/](http://pastebin.com/)  
> > > > It is impossible to be sure about what your configuration is with  
> > > > email formatting.
> > > > 
> > > > On Thu, Jun 4, 2015 at 7:08 AM, Srinivas Palle \<srini5884@gmail.com\> \>\>\> wrote:  
> > > > \> Below is the sensu config file I have on sensu server"  
> > > > \>  
> > > > \> root@ip-192-168-30-135:/etc/sensu# vi config.json  
> > > > \>  
> > > > \>  
> > > > \> },  
> > > > \>  
> > > > \> "api": {  
> > > > \>  
> > > > \> "host": "localhost",  
> > > > \>  
> > > > \> "port": 4567  
> > > > \>  
> > > > \> },  
> > > > \>  
> > > > \> "dashboard": {  
> > > > \>  
> > > > \> "host": "localhost",  
> > > > \>  
> > > > \> "port": 8080,  
> > > > \>  
> > > > \> "user": "admin",  
> > > > \>  
> > > > \> "password": "secret"  
> > > > \>  
> > > > \> },  
> > > > \>  
> > > > \> "handlers": {  
> > > > \>  
> > > > \> "graphite": {  
> > > > \>  
> > > > \> "type": "amqp",  
> > > > \>  
> > > > \> "exchange": {  
> > > > \>  
> > > > \> "type": "topic",  
> > > > \>  
> > > > \> "name": "metrics",  
> > > > \>  
> > > > \> "durable": "true"  
> > > > \>  
> > > > \> },  
> > > > \>  
> > > > \> "mutator": "only\_check\_output"  
> > > > \>  
> > > > \> }  
> > > > \>  
> > > > \> }  
> > > > \>  
> > > > \> }  
> > > > \>  
> > > > \>  
> > > > \> On Thu, Jun 4, 2015 at 7:27 PM, Srinivas Palle \<srini5884@gmail.com\> \>\>\> \> wrote:  
> > > > \>\>  
> > > > \>\> I Just resolved boolean true value issues, but still am unable to  
> > > > \>\> start  
> > > > \>\> sensu-server after having below handler in sensu server. can you  
> > > > \>\> please  
> > > > \>\> explain me if I need to have any handler in plugins to support amqp?  
> > > > \>\>  
> > > > \>\> {  
> > > > \>\>  
> > > > \>\> "handlers": {  
> > > > \>\>  
> > > > \>\> "graphite": {  
> > > > \>\>  
> > > > \>\> "type": "amqp",  
> > > > \>\>  
> > > > \>\> "exchange": {  
> > > > \>\>  
> > > > \>\> "type": "topic",  
> > > > \>\>  
> > > > \>\> "name": "metrics",  
> > > > \>\>  
> > > > \>\> "durable": "true"  
> > > > \>\>  
> > > > \>\> },  
> > > > \>\>  
> > > > \>\> "mutator": "only\_check\_output"  
> > > > \>\>  
> > > > \>\> }  
> > > > \>\>  
> > > > \>\> }  
> > > > \>\>  
> > > > \>\>  
> > > > \>\>  
> > > > \>\> Below are the errors we are receiving:  
> > > > \>\>  
> > > > \>\>  
> > > > \>\>  
> > > > \>\>  
> > > > \>\> {"timestamp":"2015-06-04T10:03:36.567577+0000","level":"warn","message":"config  
> > > > \>\> file applied  
> > > > \>\>  
> > > > \>\> changes","file":"/etc/sensu/conf.d/handler\_graphite.json","changes":{"handlers":{"graphite":[null,{"host":"192.168.30.160","port":"2003","type":"amqp","exchange":{"type":"topic","name":"metrics","durable":"true"},"mutator":"only\_check\_output"}]}}}  
> > > > \>\>  
> > > > \>\>  
> > > > \>\>  
> > > > \>\> {"timestamp":"2015-06-04T10:03:36.568654+0000","level":"fatal","message":"unknown  
> > > > \>\> handler  
> > > > \>\>  
> > > > \>\> type","object":{"host":"192.168.30.160","port":"2003","type":"amqp","exchange":{"type":"topic","name":"metrics","durable":"true"},"mutator":"only\_check\_output","name":"graphite"}}  
> > > > \>\>  
> > > > \>\>  
> > > > \>\>  
> > > > \>\> {"timestamp":"2015-06-04T10:04:18.008631+0000","level":"warn","message":"config  
> > > > \>\> file applied  
> > > > \>\>  
> > > > \>\> changes","file":"/etc/sensu/conf.d/check-disk-fail.json","changes":{"checks":{"diskfail\_check":[null,{"type":"amqp","command":"/etc/sensu/plugins/sensu-community-plugins/plugins/system/check-disk-fail.rb","interval":10,"handlers":["graphite"],"subscribers":["ALL"]}]}}}  
> > > > \>\>  
> > > > \>\>  
> > > > \>\>  
> > > > \>\> {"timestamp":"2015-06-04T10:04:18.009642+0000","level":"warn","message":"config  
> > > > \>\> file applied  
> > > > \>\>  
> > > > \>\> changes","file":"/etc/sensu/conf.d/handler\_graphite.json","changes":{"handlers":{"graphite":[null,{"type":"amqp","exchange":{"type":"topic","name":"metrics","durable":"true"},"mutator":"only\_check\_output"}]}}}  
> > > > \>\>  
> > > > \>\>  
> > > > \>\>  
> > > > \>\> {"timestamp":"2015-06-04T10:04:18.010737+0000","level":"fatal","message":"unknown  
> > > > \>\> handler  
> > > > \>\>  
> > > > \>\> type","object":{"type":"amqp","exchange":{"type":"topic","name":"metrics","durable":"true"},"mutator":"only\_check\_output","name":"graphite"}}  
> > > > \>\>  
> > > > \>\>  
> > > > \>\>  
> > > > \>\> {"timestamp":"2015-06-04T10:53:51.270568+0000","level":"warn","message":"config  
> > > > \>\> file applied  
> > > > \>\>  
> > > > \>\> changes","file":"/etc/sensu/conf.d/check-disk-fail.json","changes":{"checks":{"diskfail\_check":[null,{"type":"amqp","command":"/etc/sensu/plugins/sensu-community-plugins/plugins/system/check-disk-fail.rb","interval":10,"handlers":["graphite"],"subscribers":["ALL"]}]}}}  
> > > > \>\>  
> > > > \>\>  
> > > > \>\>  
> > > > \>\> {"timestamp":"2015-06-04T10:53:51.271562+0000","level":"warn","message":"config  
> > > > \>\> file applied  
> > > > \>\>  
> > > > \>\> changes","file":"/etc/sensu/conf.d/handler\_graphite.json","changes":{"handlers":{"graphite":[null,{"type":"amqp","exchange":{"type":"topic","name":"metrics","durable":"true"},"mutator":"only\_check\_output"}]}}}  
> > > > \>\>  
> > > > \>\>  
> > > > \>\>  
> > > > \>\> {"timestamp":"2015-06-04T10:53:51.272595+0000","level":"fatal","message":"unknown  
> > > > \>\> handler  
> > > > \>\>  
> > > > \>\> type","object":{"type":"amqp","exchange":{"type":"topic","name":"metrics","durable":"true"},"mutator":"only\_check\_output","name":"graphite"}}  
> > > > \>\>  
> > > > \>\>  
> > > > \>\>  
> > > > \>\> Thanks,  
> > > > \>\>  
> > > > \>\> Srinivas  
> > > > \>\>  
> > > > \>\>  
> > > > \>\> On Thu, Jun 4, 2015 at 9:54 AM, Srinivas Palle \<srini5884@gmail.com\> \>\>\> \>\> wrote:  
> > > > \>\>\>  
> > > > \>\>\> Sure,  
> > > > \>\>\>  
> > > > \>\>\> Here is my carbon config file..  
> > > > \>\>\>  
> > > > \>\>\> Thanks,  
> > > > \>\>\> Srini  
> > > > \>\>\>  
> > > > \>\>\> On Thursday, June 4, 2015 at 9:13:19 AM UTC+5:30, Kyle Anderson \>\>\> \>\>\> wrote:  
> > > > \>\>\>\>  
> > > > \>\>\>\> Well, "True" does look like a valid bool for python to me.  
> > > > \>\>\>\> Can you put your carbon config file in a pastebin so I can see it  
> > > > \>\>\>\> without email formatting?  
> > > > \>\>\>\>  
> > > > \>\>\>\> On Wed, Jun 3, 2015 at 11:45 AM, Srinivas Palle \<srin...@gmail.com\> \>\>\> \>\>\>\> wrote:  
> > > > \>\>\>\> \> Hi Kyle,  
> > > > \>\>\>\> \>  
> > > > \>\>\>\> \> My current sensu - graphite set up is working fine as expected  
> > > > \>\>\>\> \> with  
> > > > \>\>\>\> \> below  
> > > > \>\>\>\> \> exceptions, I ams till unable to send data through AMQP whenever I  
> > > > \>\>\>\> \> send data  
> > > > \>\>\>\> \> through AMQP carbon-cache gets crashed. Also please advice if  
> > > > \>\>\>\> \> below  
> > > > \>\>\>\> \> output  
> > > > \>\>\>\> \> is good to go with?  
> > > > \>\>\>\> \>  
> > > > \>\>\>\> \> root@ip-192-168-30-160:/var/log/carbon# tail -f listener.log |  
> > > > \>\>\>\> \> grep -i  
> > > > \>\>\>\> \> "192.168.30.135"  
> > > > \>\>\>\> \>  
> > > > \>\>\>\> \> 03/06/2015 18:29:33 :: MetricLineReceiver connection with  
> > > > \>\>\>\> \> 192.168.30.135:47814 established  
> > > > \>\>\>\> \>  
> > > > \>\>\>\> \> 03/06/2015 18:29:33 :: MetricLineReceiver connection with  
> > > > \>\>\>\> \> 192.168.30.135:47814 closed cleanly  
> > > > \>\>\>\> \>  
> > > > \>\>\>\> \> 03/06/2015 18:39:44 :: MetricLineReceiver connection with  
> > > > \>\>\>\> \> 192.168.30.135:47813 lost: Connection to the other side was lost  
> > > > \>\>\>\> \> in a  
> > > > \>\>\>\> \> non-clean fashion: Connection lost.  
> > > > \>\>\>\> \>  
> > > > \>\>\>\> \>  
> > > > \>\>\>\> \>  
> > > > \>\>\>\> \> AMQP error:  
> > > > \>\>\>\> \>  
> > > > \>\>\>\> \>  
> > > > \>\>\>\> \> root@ip-192-168-30-160:~# service carbon-cache restart  
> > > > \>\>\>\> \>  
> > > > \>\>\>\> \> \* Restarting Graphite backend daemon carbon-cache  
> > > > \>\>\>\> \> Traceback (most recent call last):  
> > > > \>\>\>\> \>  
> > > > \>\>\>\> \> File "/usr/bin/carbon-cache", line 32, in \<module\>  
> > > > \>\>\>\> \>  
> > > > \>\>\>\> \> run\_twistd\_plugin(\_\_file\_\_)  
> > > > \>\>\>\> \>  
> > > > \>\>\>\> \> File "/usr/lib/python2.7/dist-packages/carbon/util.py", line 90,  
> > > > \>\>\>\> \> in  
> > > > \>\>\>\> \> run\_twistd\_plugin  
> > > > \>\>\>\> \>  
> > > > \>\>\>\> \> config.parseOptions(twistd\_options)  
> > > > \>\>\>\> \>  
> > > > \>\>\>\> \> File  
> > > > \>\>\>\> \> "/usr/lib/python2.7/dist-packages/twisted/application/app.py",  
> > > > \>\>\>\> \> line  
> > > > \>\>\>\> \> 604, in parseOptions  
> > > > \>\>\>\> \>  
> > > > \>\>\>\> \> usage.Options.parseOptions(self, options)  
> > > > \>\>\>\> \>  
> > > > \>\>\>\> \> File "/usr/lib/python2.7/dist-packages/twisted/python/usage.py",  
> > > > \>\>\>\> \> line 266,  
> > > > \>\>\>\> \> in parseOptions  
> > > > \>\>\>\> \>  
> > > > \>\>\>\> \> self.subOptions.parseOptions(rest)  
> > > > \>\>\>\> \>  
> > > > \>\>\>\> \> File "/usr/lib/python2.7/dist-packages/twisted/python/usage.py",  
> > > > \>\>\>\> \> line 276,  
> > > > \>\>\>\> \> in parseOptions  
> > > > \>\>\>\> \>  
> > > > \>\>\>\> \> self.postOptions()  
> > > > \>\>\>\> \>  
> > > > \>\>\>\> \> File "/usr/lib/python2.7/dist-packages/carbon/conf.py", line  
> > > > \>\>\>\> \> 197, in  
> > > > \>\>\>\> \> postOptions  
> > > > \>\>\>\> \>  
> > > > \>\>\>\> \> program\_settings = read\_config(program, self)  
> > > > \>\>\>\> \>  
> > > > \>\>\>\> \> File "/usr/lib/python2.7/dist-packages/carbon/conf.py", line  
> > > > \>\>\>\> \> 526, in  
> > > > \>\>\>\> \> read\_config  
> > > > \>\>\>\> \>  
> > > > \>\>\>\> \> settings.readFrom(config, section)  
> > > > \>\>\>\> \>  
> > > > \>\>\>\> \> File "/usr/lib/python2.7/dist-packages/carbon/conf.py", line  
> > > > \>\>\>\> \> 146, in  
> > > > \>\>\>\> \> readFrom  
> > > > \>\>\>\> \>  
> > > > \>\>\>\> \> value = parser.getboolean(section, key)  
> > > > \>\>\>\> \>  
> > > > \>\>\>\> \> File "/usr/lib/python2.7/ConfigParser.py", line 370, in  
> > > > \>\>\>\> \> getboolean  
> > > > \>\>\>\> \>  
> > > > \>\>\>\> \> raise ValueError, 'Not a boolean: %s' % v  
> > > > \>\>\>\> \>  
> > > > \>\>\>\> \> ValueError: Not a boolean: True  
> > > > \>\>\>\> \>  
> > > > \>\>\>\> \> ENABLE\_AMQP = True  
> > > > \>\>\>\> \>  
> > > > \>\>\>\> \> AMQP\_HOST = 192.168.30.135  
> > > > \>\>\>\> \>  
> > > > \>\>\>\> \> AMQP\_PORT = 5672  
> > > > \>\>\>\> \>  
> > > > \>\>\>\> \> AMQP\_VHOST = /sensu  
> > > > \>\>\>\> \>  
> > > > \>\>\>\> \> AMQP\_USER = sensu  
> > > > \>\>\>\> \>  
> > > > \>\>\>\> \> AMQP\_PASSWORD = sensu123  
> > > > \>\>\>\> \>  
> > > > \>\>\>\> \> AMQP\_EXCHANGE = metrics  
> > > > \>\>\>\> \>  
> > > > \>\>\>\> \> AMQP\_METRIC\_NAME\_IN\_BODY = True  
> > > > \>\>\>\> \>  
> > > > \>\>\>\> \> Thanks,Srini  
> > > > \>\>\>\> \>  
> > > > \>\>\>\> \>  
> > > > \>\>\>\> \> On Saturday, February 28, 2015 at 4:58:56 AM UTC+5:30, \>\>\> \>\>\>\> \> max2su...@gmail.com \>\>\> \>\>\>\> \> wrote:  
> > > > \>\>\>\> \>\>  
> > > > \>\>\>\> \>\> Hi,  
> > > > \>\>\>\> \>\> We are facing a problem of not getting any check  
> > > > \>\>\>\> \>\> "metrics"  
> > > > \>\>\>\> \>\> response from the client while following the tutorial at link  
> > > > \>\>\>\> \>\> Adding  
> > > > \>\>\>\> \>\> a  
> > > > \>\>\>\> \>\> Metric.  
> > > > \>\>\>\> \>\>  
> > > > \>\>\>\> \>\> Following are the outputs :-  
> > > > \>\>\>\> \>\>  
> > > > \>\>\>\> \>\> Server \> tail -f /var/log/sensu/sensu-server.log  
> > > > \>\>\>\> \>\>  
> > > > \>\>\>\> \>\>  
> > > > \>\>\>\> \>\>  
> > > > \>\>\>\> \>\>  
> > > > \>\>\>\> \>\> {"timestamp":"2015-02-27T18:23:59.010129-0500","level":"error","message":"unknown  
> > > > \>\>\>\> \>\> handler","handler\_name":"default"}  
> > > > \>\>\>\> \>\>  
> > > > \>\>\>\> \>\>  
> > > > \>\>\>\> \>\>  
> > > > \>\>\>\> \>\> {"timestamp":"2015-02-27T18:24:06.362472-0500","level":"info","message":"determining  
> > > > \>\>\>\> \>\> stale clients"}  
> > > > \>\>\>\> \>\>  
> > > > \>\>\>\> \>\>  
> > > > \>\>\>\> \>\>  
> > > > \>\>\>\> \>\> {"timestamp":"2015-02-27T18:24:06.384124-0500","level":"error","message":"unknown  
> > > > \>\>\>\> \>\> handler","handler\_name":"default"}  
> > > > \>\>\>\> \>\>  
> > > > \>\>\>\> \>\>  
> > > > \>\>\>\> \>\>  
> > > > \>\>\>\> \>\> {"timestamp":"2015-02-27T18:24:06.386882-0500","level":"error","message":"unknown  
> > > > \>\>\>\> \>\> handler","handler\_name":"default"}  
> > > > \>\>\>\> \>\>  
> > > > \>\>\>\> \>\>  
> > > > \>\>\>\> \>\>  
> > > > \>\>\>\> \>\> {"timestamp":"2015-02-27T18:24:06.389126-0500","level":"error","message":"unknown  
> > > > \>\>\>\> \>\> handler","handler\_name":"default"}  
> > > > \>\>\>\> \>\>  
> > > > \>\>\>\> \>\>  
> > > > \>\>\>\> \>\>  
> > > > \>\>\>\> \>\> {"timestamp":"2015-02-27T18:24:08.426386-0500","level":"info","message":"publishing  
> > > > \>\>\>\> \>\> check  
> > > > \>\>\>\> \>\>  
> > > > \>\>\>\> \>\>  
> > > > \>\>\>\> \>\> request","payload":{"name":"load\_metrics","issued":1425079448,"command":"load-metrics.rb"},"subscribers":["production"]}  
> > > > \>\>\>\> \>\>  
> > > > \>\>\>\> \>\>  
> > > > \>\>\>\> \>\> Client \> tail -f /var/log/sensu/sensu-client.log  
> > > > \>\>\>\> \>\>  
> > > > \>\>\>\> \>\>  
> > > > \>\>\>\> \>\>  
> > > > \>\>\>\> \>\>  
> > > > \>\>\>\> \>\> {"timestamp":"2015-02-27T18:25:37.674068-0500","level":"info","message":"publishing  
> > > > \>\>\>\> \>\> check  
> > > > \>\>\>\> \>\>  
> > > > \>\>\>\> \>\>  
> > > > \>\>\>\> \>\> result","payload":{"client":"sensu-client.25.max2","check":{"name":"load\_metrics","issued":1425079538,"command":"load-metrics.rb","executed":1425079537,"duration":0.172,"output":"Dev.load\_avg.one  
> > > > \>\>\>\> \>\> 0.13 1425079537\nDev.load\_avg.five 0.12  
> > > > \>\>\>\> \>\> 1425079537\nDev.load\_avg.fifteen  
> > > > \>\>\>\> \>\> 0.22 1425079537\n\n","status":0}}}  
> > > > \>\>\>\> \>\>  
> > > > \>\>\>\> \>\>  
> > > > \>\>\>\> \>\> What are the configs that we are missing ?  
> > > > \>\>\>\> \>\>  
> > > > \>\>\>\> \>\> Thanks:-  
> > > > \>\>\>\> \>\>  
> > > > \>\>\>\> \>  
> > > > \>\>  
> > > > \>\>  
> > > > \>

---

<div class="post-metadata">

**Author:** ![Srinivas\_Palle](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@Srinivas\_Palle](https://discourse.sensu.io/u/Srinivas_Palle)\
**Post date:** [June 5, 2015, 2:52pm UTC](https://discourse.sensu.io/t/sensu-client-not-sending-metrics-data-to-the-server/379/26 "2015-06-05T14:52:06Z")

</div>

My apologies I ensure to reply all henceforth.

> **···**
>
> On Fri, Jun 5, 2015 at 8:05 PM, Kyle Anderson [kyle@xkyle.com](mailto:kyle@xkyle.com) wrote:
> 
> > Again, please email the entire group and not me personally. It allow
> > 
> > others to help if they know.
> > 
> > I will no longer reply-back to your personal emails.
> > 
> > The error that sensu has:
> > 
> > {“timestamp”:“2015-06-04T10:53:51.272595+0000”,“level”:“fatal”,“message”:"unknown
> > 
> > handler type",“object”:{“type”:“amqp”,“exchange”:{“type”:“topic”,“name”:“metrics”,“durable”:“true”},“mutator”:“only\_check\_output”,“name”:“graphite”}}
> > 
> > Comes from the mutator section of the handler config:
> > 
> > [http://pastebin.com/7WAEALy3](http://pastebin.com/7WAEALy3)
> > 
> > Here are the docs on how to define mutators:
> > 
> > [https://sensuapp.org/docs/latest/mutators](https://sensuapp.org/docs/latest/mutators)
> > 
> > It has to be in its own block, it cannot be in the “Handlers” section,
> > 
> > and cannot be in the graphite section.
> > 
> > I also recommend using configuration management (chef/puppet) as they
> > 
> > will prevent you from creating malformed json.
> > 
> > On Fri, Jun 5, 2015 at 6:31 AM, Srinivas Palle [srini5884@gmail.com](mailto:srini5884@gmail.com) wrote:
> > 
> > > I am trying to data from sensu to graphite through AMQP handler.
> > 
> > > 
> > 
> > > Thanks,
> > 
> > > Srinivas
> > 
> > > 
> > 
> > > 
> > 
> > > 
> > 
> > > On Fri, Jun 5, 2015 at 6:10 PM, Srinivas Palle [srini5884@gmail.com](mailto:srini5884@gmail.com) wrote:
> > 
> > > >
> > 
> > > > Here is my config file:
> > 
> > > >
> > 
> > > > AMQP handler configuration:
> > 
> > > >
> > 
> > > > [http://pastebin.com/7WAEALy3](http://pastebin.com/7WAEALy3) :
> > 
> > > >
> > 
> > > > Basic sensu config file:
> > 
> > > >
> > 
> > > > [http://pastebin.com/EkedqsLW](http://pastebin.com/EkedqsLW)
> > 
> > > >
> > 
> > > > Thanks,
> > 
> > > > Srinivas
> > 
> > > >
> > 
> > > >
> > 
> > > >
> > 
> > > > On Fri, Jun 5, 2015 at 10:08 AM, Kyle Anderson [kyle@xkyle.com](mailto:kyle@xkyle.com) wrote:
> > 
> > > > >
> > 
> > > > > Again, please use a pastebin to share configuration data like this:
> > 
> > > > > [http://pastebin.com/](http://pastebin.com/)
> > 
> > > > > It is impossible to be sure about what your configuration is with
> > 
> > > > > email formatting.
> > 
> > > > >
> > 
> > > > > On Thu, Jun 4, 2015 at 7:08 AM, Srinivas Palle [srini5884@gmail.com](mailto:srini5884@gmail.com)
> > 
> > > > > wrote:
> > 
> > > > > > Below is the sensu config file I have on sensu server"
> > 
> > > > > >
> > 
> > > > > > root@ip-192-168-30-135:/etc/sensu# vi config.json
> > 
> > > > > >
> > 
> > > > > >
> > 
> > > > > > },
> > 
> > > > > >
> > 
> > > > > > “api”: {
> > 
> > > > > >
> > 
> > > > > > ```
> > > > > > "host": "localhost",
> > > > > > 
> > > > > > ```
> > 
> > > > > >
> > 
> > > > > > ```
> > > > > > "port": 4567
> > > > > > 
> > > > > > ```
> > 
> > > > > >
> > 
> > > > > > },
> > 
> > > > > >
> > 
> > > > > > “dashboard”: {
> > 
> > > > > >
> > 
> > > > > > ```
> > > > > > "host": "localhost",
> > > > > > 
> > > > > > ```
> > 
> > > > > >
> > 
> > > > > > ```
> > > > > > "port": 8080,
> > > > > > 
> > > > > > ```
> > 
> > > > > >
> > 
> > > > > > ```
> > > > > > "user": "admin",
> > > > > > 
> > > > > > ```
> > 
> > > > > >
> > 
> > > > > > ```
> > > > > > "password": "secret"
> > > > > > 
> > > > > > ```
> > 
> > > > > >
> > 
> > > > > > },
> > 
> > > > > >
> > 
> > > > > > “handlers”: {
> > 
> > > > > >
> > 
> > > > > > ```
> > > > > > "graphite": {
> > > > > > 
> > > > > > ```
> > 
> > > > > >
> > 
> > > > > > ```
> > > > > > "type": "amqp",
> > > > > > 
> > > > > > ```
> > 
> > > > > >
> > 
> > > > > > ```
> > > > > > "exchange": {
> > > > > > 
> > > > > > ```
> > 
> > > > > >
> > 
> > > > > > ```
> > > > > > "type": "topic",
> > > > > > 
> > > > > > ```
> > 
> > > > > >
> > 
> > > > > > ```
> > > > > > "name": "metrics",
> > > > > > 
> > > > > > ```
> > 
> > > > > >
> > 
> > > > > > ```
> > > > > > "durable": "true"
> > > > > > 
> > > > > > ```
> > 
> > > > > >
> > 
> > > > > > ```
> > > > > > },
> > > > > > 
> > > > > > ```
> > 
> > > > > >
> > 
> > > > > > ```
> > > > > > "mutator": "only_check_output"
> > > > > > 
> > > > > > ```
> > 
> > > > > >
> > 
> > > > > > }
> > 
> > > > > >
> > 
> > > > > > }
> > 
> > > > > >
> > 
> > > > > > }
> > 
> > > > > >
> > 
> > > > > >
> > 
> > > > > > On Thu, Jun 4, 2015 at 7:27 PM, Srinivas Palle [srini5884@gmail.com](mailto:srini5884@gmail.com)
> > 
> > > > > > wrote:
> > 
> > > > > > >
> > 
> > > > > > > I Just resolved boolean true value issues, but still am unable to
> > 
> > > > > > > start
> > 
> > > > > > > sensu-server after having below handler in sensu server. can you
> > 
> > > > > > > please
> > 
> > > > > > > explain me if I need to have any handler in plugins to support amqp?
> > 
> > > > > > >
> > 
> > > > > > > {
> > 
> > > > > > >
> > 
> > > > > > > “handlers”: {
> > 
> > > > > > >
> > 
> > > > > > > ```
> > > > > > > "graphite": {
> > > > > > > 
> > > > > > > ```
> > 
> > > > > > >
> > 
> > > > > > > ```
> > > > > > > "type": "amqp",
> > > > > > > 
> > > > > > > ```
> > 
> > > > > > >
> > 
> > > > > > > ```
> > > > > > > "exchange": {
> > > > > > > 
> > > > > > > ```
> > 
> > > > > > >
> > 
> > > > > > > ```
> > > > > > > "type": "topic",
> > > > > > > 
> > > > > > > ```
> > 
> > > > > > >
> > 
> > > > > > > ```
> > > > > > > "name": "metrics",
> > > > > > > 
> > > > > > > ```
> > 
> > > > > > >
> > 
> > > > > > > ```
> > > > > > > "durable": "true"
> > > > > > > 
> > > > > > > ```
> > 
> > > > > > >
> > 
> > > > > > > ```
> > > > > > > },
> > > > > > > 
> > > > > > > ```
> > 
> > > > > > >
> > 
> > > > > > > ```
> > > > > > > "mutator": "only_check_output"
> > > > > > > 
> > > > > > > ```
> > 
> > > > > > >
> > 
> > > > > > > ```
> > > > > > > }
> > > > > > > 
> > > > > > > ```
> > 
> > > > > > >
> > 
> > > > > > > }
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > > Below are the errors we are receiving:
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > > {“timestamp”:“2015-06-04T10:03:36.567577+0000”,“level”:“warn”,“message”:"config
> > 
> > > > > > > file applied
> > 
> > > > > > >
> > 
> > > > > > > changes",“file”:“/etc/sensu/conf.d/handler\_graphite.json”,“changes”:{“handlers”:{“graphite”:[null,{“host”:“192.168.30.160”,“port”:“2003”,“type”:“amqp”,“exchange”:{“type”:“topic”,“name”:“metrics”,“durable”:“true”},“mutator”:“only\_check\_output”}]}}}
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > > {“timestamp”:“2015-06-04T10:03:36.568654+0000”,“level”:“fatal”,“message”:"unknown
> > 
> > > > > > > handler
> > 
> > > > > > >
> > 
> > > > > > > type",“object”:{“host”:“192.168.30.160”,“port”:“2003”,“type”:“amqp”,“exchange”:{“type”:“topic”,“name”:“metrics”,“durable”:“true”},“mutator”:“only\_check\_output”,“name”:“graphite”}}
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > > {“timestamp”:“2015-06-04T10:04:18.008631+0000”,“level”:“warn”,“message”:"config
> > 
> > > > > > > file applied
> > 
> > > > > > >
> > 
> > > > > > > changes",“file”:“/etc/sensu/conf.d/check-disk-fail.json”,“changes”:{“checks”:{“diskfail\_check”:[null,{“type”:“amqp”,“command”:“/etc/sensu/plugins/sensu-community-plugins/plugins/system/check-disk-fail.rb”,“interval”:10,“handlers”:[“graphite”],“subscribers”:[“ALL”]}]}}}
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > > {“timestamp”:“2015-06-04T10:04:18.009642+0000”,“level”:“warn”,“message”:"config
> > 
> > > > > > > file applied
> > 
> > > > > > >
> > 
> > > > > > > changes",“file”:“/etc/sensu/conf.d/handler\_graphite.json”,“changes”:{“handlers”:{“graphite”:[null,{“type”:“amqp”,“exchange”:{“type”:“topic”,“name”:“metrics”,“durable”:“true”},“mutator”:“only\_check\_output”}]}}}
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > > {“timestamp”:“2015-06-04T10:04:18.010737+0000”,“level”:“fatal”,“message”:"unknown
> > 
> > > > > > > handler
> > 
> > > > > > >
> > 
> > > > > > > type",“object”:{“type”:“amqp”,“exchange”:{“type”:“topic”,“name”:“metrics”,“durable”:“true”},“mutator”:“only\_check\_output”,“name”:“graphite”}}
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > > {“timestamp”:“2015-06-04T10:53:51.270568+0000”,“level”:“warn”,“message”:"config
> > 
> > > > > > > file applied
> > 
> > > > > > >
> > 
> > > > > > > changes",“file”:“/etc/sensu/conf.d/check-disk-fail.json”,“changes”:{“checks”:{“diskfail\_check”:[null,{“type”:“amqp”,“command”:“/etc/sensu/plugins/sensu-community-plugins/plugins/system/check-disk-fail.rb”,“interval”:10,“handlers”:[“graphite”],“subscribers”:[“ALL”]}]}}}
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > > {“timestamp”:“2015-06-04T10:53:51.271562+0000”,“level”:“warn”,“message”:"config
> > 
> > > > > > > file applied
> > 
> > > > > > >
> > 
> > > > > > > changes",“file”:“/etc/sensu/conf.d/handler\_graphite.json”,“changes”:{“handlers”:{“graphite”:[null,{“type”:“amqp”,“exchange”:{“type”:“topic”,“name”:“metrics”,“durable”:“true”},“mutator”:“only\_check\_output”}]}}}
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > > {“timestamp”:“2015-06-04T10:53:51.272595+0000”,“level”:“fatal”,“message”:"unknown
> > 
> > > > > > > handler
> > 
> > > > > > >
> > 
> > > > > > > type",“object”:{“type”:“amqp”,“exchange”:{“type”:“topic”,“name”:“metrics”,“durable”:“true”},“mutator”:“only\_check\_output”,“name”:“graphite”}}
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > > Thanks,
> > 
> > > > > > >
> > 
> > > > > > > Srinivas
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > > On Thu, Jun 4, 2015 at 9:54 AM, Srinivas Palle [srini5884@gmail.com](mailto:srini5884@gmail.com)
> > 
> > > > > > > wrote:
> > 
> > > > > > > >
> > 
> > > > > > > > Sure,
> > 
> > > > > > > >
> > 
> > > > > > > > Here is my carbon config file…
> > 
> > > > > > > >
> > 
> > > > > > > > Thanks,
> > 
> > > > > > > > Srini
> > 
> > > > > > > >
> > 
> > > > > > > > On Thursday, June 4, 2015 at 9:13:19 AM UTC+5:30, Kyle Anderson
> > 
> > > > > > > > wrote:
> > 
> > > > > > > > >
> > 
> > > > > > > > > Well, “True” does look like a valid bool for python to me.
> > 
> > > > > > > > > Can you put your carbon config file in a pastebin so I can see it
> > 
> > > > > > > > > without email formatting?
> > 
> > > > > > > > >
> > 
> > > > > > > > > On Wed, Jun 3, 2015 at 11:45 AM, Srinivas Palle [srin...@gmail.com](mailto:srin...@gmail.com)
> > 
> > > > > > > > > wrote:
> > 
> > > > > > > > > > Hi Kyle,
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > My current sensu - graphite set up is working fine as expected
> > 
> > > > > > > > > > with
> > 
> > > > > > > > > > below
> > 
> > > > > > > > > > exceptions, I ams till unable to send data through AMQP whenever I
> > 
> > > > > > > > > > send data
> > 
> > > > > > > > > > through AMQP carbon-cache gets crashed. Also please advice if
> > 
> > > > > > > > > > below
> > 
> > > > > > > > > > output
> > 
> > > > > > > > > > is good to go with?
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > root@ip-192-168-30-160:/var/log/carbon# tail -f listener.log |
> > 
> > > > > > > > > > grep -i
> > 
> > > > > > > > > > “192.168.30.135”
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > 03/06/2015 18:29:33 :: MetricLineReceiver connection with
> > 
> > > > > > > > > > [192.168.30.135:47814](http://192.168.30.135:47814) established
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > 03/06/2015 18:29:33 :: MetricLineReceiver connection with
> > 
> > > > > > > > > > [192.168.30.135:47814](http://192.168.30.135:47814) closed cleanly
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > 03/06/2015 18:39:44 :: MetricLineReceiver connection with
> > 
> > > > > > > > > > [192.168.30.135:47813](http://192.168.30.135:47813) lost: Connection to the other side was lost
> > 
> > > > > > > > > > in a
> > 
> > > > > > > > > > non-clean fashion: Connection lost.
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > AMQP error:
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > root@ip-192-168-30-160:~# service carbon-cache restart
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > - Restarting Graphite backend daemon carbon-cache
> > 
> > > > > > > > > > Traceback (most recent call last):
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > File “/usr/bin/carbon-cache”, line 32, in
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > ```
> > > > > > > > > > run_twistd_plugin( __file__ )
> > > > > > > > > > 
> > > > > > > > > > ```
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > File “/usr/lib/python2.7/dist-packages/carbon/util.py”, line 90,
> > 
> > > > > > > > > > in
> > 
> > > > > > > > > > run\_twistd\_plugin
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > ```
> > > > > > > > > > config.parseOptions(twistd_options)
> > > > > > > > > > 
> > > > > > > > > > ```
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > File
> > 
> > > > > > > > > > “/usr/lib/python2.7/dist-packages/twisted/application/app.py”,
> > 
> > > > > > > > > > line
> > 
> > > > > > > > > > 604, in parseOptions
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > ```
> > > > > > > > > > usage.Options.parseOptions(self, options)
> > > > > > > > > > 
> > > > > > > > > > ```
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > File “/usr/lib/python2.7/dist-packages/twisted/python/usage.py”,
> > 
> > > > > > > > > > line 266,
> > 
> > > > > > > > > > in parseOptions
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > ```
> > > > > > > > > > self.subOptions.parseOptions(rest)
> > > > > > > > > > 
> > > > > > > > > > ```
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > File “/usr/lib/python2.7/dist-packages/twisted/python/usage.py”,
> > 
> > > > > > > > > > line 276,
> > 
> > > > > > > > > > in parseOptions
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > ```
> > > > > > > > > > self.postOptions()
> > > > > > > > > > 
> > > > > > > > > > ```
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > File “/usr/lib/python2.7/dist-packages/carbon/conf.py”, line
> > 
> > > > > > > > > > 197, in
> > 
> > > > > > > > > > postOptions
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > ```
> > > > > > > > > > program_settings = read_config(program, self)
> > > > > > > > > > 
> > > > > > > > > > ```
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > File “/usr/lib/python2.7/dist-packages/carbon/conf.py”, line
> > 
> > > > > > > > > > 526, in
> > 
> > > > > > > > > > read\_config
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > ```
> > > > > > > > > > settings.readFrom(config, section)
> > > > > > > > > > 
> > > > > > > > > > ```
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > File “/usr/lib/python2.7/dist-packages/carbon/conf.py”, line
> > 
> > > > > > > > > > 146, in
> > 
> > > > > > > > > > readFrom
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > ```
> > > > > > > > > > value = parser.getboolean(section, key)
> > > > > > > > > > 
> > > > > > > > > > ```
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > File “/usr/lib/python2.7/ConfigParser.py”, line 370, in
> > 
> > > > > > > > > > getboolean
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > ```
> > > > > > > > > > raise ValueError, 'Not a boolean: %s' % v
> > > > > > > > > > 
> > > > > > > > > > ```
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > ValueError: Not a boolean: True
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > ENABLE\_AMQP = True
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > AMQP\_HOST = 192.168.30.135
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > AMQP\_PORT = 5672
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > AMQP\_VHOST = /sensu
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > AMQP\_USER = sensu
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > AMQP\_PASSWORD = sensu123
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > AMQP\_EXCHANGE = metrics
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > AMQP\_METRIC\_NAME\_IN\_BODY = True
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > ```
> > > > > > > > > > Thanks,Srini
> > > > > > > > > > 
> > > > > > > > > > ```
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > On Saturday, February 28, 2015 at 4:58:56 AM UTC+5:30,
> > 
> > > > > > > > > > [max2su...@gmail.com](mailto:max2su...@gmail.com)
> > 
> > > > > > > > > > wrote:
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > > Hi,
> > 
> > > > > > > > > > > ```
> > > > > > > > > > > We are facing a problem of not getting any check
> > > > > > > > > > > 
> > > > > > > > > > > ```
> > 
> > > > > > > > > > > “metrics”
> > 
> > > > > > > > > > > response from the client while following the tutorial at link
> > 
> > > > > > > > > > > Adding
> > 
> > > > > > > > > > > a
> > 
> > > > > > > > > > > Metric.
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > > Following are the outputs :-
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > > Server \> tail -f /var/log/sensu/sensu-server.log
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > > {“timestamp”:“2015-02-27T18:23:59.010129-0500”,“level”:“error”,“message”:"unknown
> > 
> > > > > > > > > > > handler",“handler\_name”:“default”}
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > > {“timestamp”:“2015-02-27T18:24:06.362472-0500”,“level”:“info”,“message”:"determining
> > 
> > > > > > > > > > > stale clients"}
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > > {“timestamp”:“2015-02-27T18:24:06.384124-0500”,“level”:“error”,“message”:"unknown
> > 
> > > > > > > > > > > handler",“handler\_name”:“default”}
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > > {“timestamp”:“2015-02-27T18:24:06.386882-0500”,“level”:“error”,“message”:"unknown
> > 
> > > > > > > > > > > handler",“handler\_name”:“default”}
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > > {“timestamp”:“2015-02-27T18:24:06.389126-0500”,“level”:“error”,“message”:"unknown
> > 
> > > > > > > > > > > handler",“handler\_name”:“default”}
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > > {“timestamp”:“2015-02-27T18:24:08.426386-0500”,“level”:“info”,“message”:"publishing
> > 
> > > > > > > > > > > check
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > > request",“payload”:{“name”:“load\_metrics”,“issued”:1425079448,“command”:“load-metrics.rb”},“subscribers”:[“production”]}
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > > Client \> tail -f /var/log/sensu/sensu-client.log
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > > {“timestamp”:“2015-02-27T18:25:37.674068-0500”,“level”:“info”,“message”:"publishing
> > 
> > > > > > > > > > > check
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > > result",“payload”:{“client”:“sensu-client.25.max2”,“check”:{“name”:“load\_metrics”,“issued”:1425079538,“command”:“load-metrics.rb”,“executed”:1425079537,“duration”:0.172,“output”:"Dev.load\_avg.one
> > 
> > > > > > > > > > > 0.13 1425079537\nDev.load\_avg.five 0.12
> > 
> > > > > > > > > > > 1425079537\nDev.load\_avg.fifteen
> > 
> > > > > > > > > > > 0.22 1425079537\n\n",“status”:0}}}
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > > What are the configs that we are missing ?
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > > Thanks:-
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > >
> > 
> > > >
> > 
> > > >
> > 
> > >

---

<div class="post-metadata">

**Author:** ![Srinivas\_Palle](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@Srinivas\_Palle](https://discourse.sensu.io/u/Srinivas_Palle)\
**Post date:** [June 5, 2015, 2:57pm UTC](https://discourse.sensu.io/t/sensu-client-not-sending-metrics-data-to-the-server/379/27 "2015-06-05T14:57:17Z")

</div>

I missed having mutated.rb plugin in sensu server, can this be an issue here?

> **···**
>
> On Fri, Jun 5, 2015 at 8:22 PM, Srinivas Palle [srini5884@gmail.com](mailto:srini5884@gmail.com) wrote:
> 
> > My apologies I ensure to reply all henceforth.
> 
> On Fri, Jun 5, 2015 at 8:05 PM, Kyle Anderson [kyle@xkyle.com](mailto:kyle@xkyle.com) wrote:
> 
> > Again, please email the entire group and not me personally. It allow
> > 
> > others to help if they know.
> > 
> > I will no longer reply-back to your personal emails.
> > 
> > The error that sensu has:
> > 
> > {“timestamp”:“2015-06-04T10:53:51.272595+0000”,“level”:“fatal”,“message”:"unknown
> > 
> > handler type",“object”:{“type”:“amqp”,“exchange”:{“type”:“topic”,“name”:“metrics”,“durable”:“true”},“mutator”:“only\_check\_output”,“name”:“graphite”}}
> > 
> > Comes from the mutator section of the handler config:
> > 
> > [http://pastebin.com/7WAEALy3](http://pastebin.com/7WAEALy3)
> > 
> > Here are the docs on how to define mutators:
> > 
> > [https://sensuapp.org/docs/latest/mutators](https://sensuapp.org/docs/latest/mutators)
> > 
> > It has to be in its own block, it cannot be in the “Handlers” section,
> > 
> > and cannot be in the graphite section.
> > 
> > I also recommend using configuration management (chef/puppet) as they
> > 
> > will prevent you from creating malformed json.
> > 
> > On Fri, Jun 5, 2015 at 6:31 AM, Srinivas Palle [srini5884@gmail.com](mailto:srini5884@gmail.com) wrote:
> > 
> > > I am trying to data from sensu to graphite through AMQP handler.
> > 
> > > 
> > 
> > > Thanks,
> > 
> > > Srinivas
> > 
> > > 
> > 
> > > 
> > 
> > > 
> > 
> > > On Fri, Jun 5, 2015 at 6:10 PM, Srinivas Palle [srini5884@gmail.com](mailto:srini5884@gmail.com) wrote:
> > 
> > > >
> > 
> > > > Here is my config file:
> > 
> > > >
> > 
> > > > AMQP handler configuration:
> > 
> > > >
> > 
> > > > [http://pastebin.com/7WAEALy3](http://pastebin.com/7WAEALy3) :
> > 
> > > >
> > 
> > > > Basic sensu config file:
> > 
> > > >
> > 
> > > > [http://pastebin.com/EkedqsLW](http://pastebin.com/EkedqsLW)
> > 
> > > >
> > 
> > > > Thanks,
> > 
> > > > Srinivas
> > 
> > > >
> > 
> > > >
> > 
> > > >
> > 
> > > > On Fri, Jun 5, 2015 at 10:08 AM, Kyle Anderson [kyle@xkyle.com](mailto:kyle@xkyle.com) wrote:
> > 
> > > > >
> > 
> > > > > Again, please use a pastebin to share configuration data like this:
> > 
> > > > > [http://pastebin.com/](http://pastebin.com/)
> > 
> > > > > It is impossible to be sure about what your configuration is with
> > 
> > > > > email formatting.
> > 
> > > > >
> > 
> > > > > On Thu, Jun 4, 2015 at 7:08 AM, Srinivas Palle [srini5884@gmail.com](mailto:srini5884@gmail.com)
> > 
> > > > > wrote:
> > 
> > > > > > Below is the sensu config file I have on sensu server"
> > 
> > > > > >
> > 
> > > > > > root@ip-192-168-30-135:/etc/sensu# vi config.json
> > 
> > > > > >
> > 
> > > > > >
> > 
> > > > > > },
> > 
> > > > > >
> > 
> > > > > > “api”: {
> > 
> > > > > >
> > 
> > > > > > ```
> > > > > > "host": "localhost",
> > > > > > 
> > > > > > ```
> > 
> > > > > >
> > 
> > > > > > ```
> > > > > > "port": 4567
> > > > > > 
> > > > > > ```
> > 
> > > > > >
> > 
> > > > > > },
> > 
> > > > > >
> > 
> > > > > > “dashboard”: {
> > 
> > > > > >
> > 
> > > > > > ```
> > > > > > "host": "localhost",
> > > > > > 
> > > > > > ```
> > 
> > > > > >
> > 
> > > > > > ```
> > > > > > "port": 8080,
> > > > > > 
> > > > > > ```
> > 
> > > > > >
> > 
> > > > > > ```
> > > > > > "user": "admin",
> > > > > > 
> > > > > > ```
> > 
> > > > > >
> > 
> > > > > > ```
> > > > > > "password": "secret"
> > > > > > 
> > > > > > ```
> > 
> > > > > >
> > 
> > > > > > },
> > 
> > > > > >
> > 
> > > > > > “handlers”: {
> > 
> > > > > >
> > 
> > > > > > ```
> > > > > > "graphite": {
> > > > > > 
> > > > > > ```
> > 
> > > > > >
> > 
> > > > > > ```
> > > > > > "type": "amqp",
> > > > > > 
> > > > > > ```
> > 
> > > > > >
> > 
> > > > > > ```
> > > > > > "exchange": {
> > > > > > 
> > > > > > ```
> > 
> > > > > >
> > 
> > > > > > ```
> > > > > > "type": "topic",
> > > > > > 
> > > > > > ```
> > 
> > > > > >
> > 
> > > > > > ```
> > > > > > "name": "metrics",
> > > > > > 
> > > > > > ```
> > 
> > > > > >
> > 
> > > > > > ```
> > > > > > "durable": "true"
> > > > > > 
> > > > > > ```
> > 
> > > > > >
> > 
> > > > > > ```
> > > > > > },
> > > > > > 
> > > > > > ```
> > 
> > > > > >
> > 
> > > > > > ```
> > > > > > "mutator": "only_check_output"
> > > > > > 
> > > > > > ```
> > 
> > > > > >
> > 
> > > > > > }
> > 
> > > > > >
> > 
> > > > > > }
> > 
> > > > > >
> > 
> > > > > > }
> > 
> > > > > >
> > 
> > > > > >
> > 
> > > > > > On Thu, Jun 4, 2015 at 7:27 PM, Srinivas Palle [srini5884@gmail.com](mailto:srini5884@gmail.com)
> > 
> > > > > > wrote:
> > 
> > > > > > >
> > 
> > > > > > > I Just resolved boolean true value issues, but still am unable to
> > 
> > > > > > > start
> > 
> > > > > > > sensu-server after having below handler in sensu server. can you
> > 
> > > > > > > please
> > 
> > > > > > > explain me if I need to have any handler in plugins to support amqp?
> > 
> > > > > > >
> > 
> > > > > > > {
> > 
> > > > > > >
> > 
> > > > > > > “handlers”: {
> > 
> > > > > > >
> > 
> > > > > > > ```
> > > > > > > "graphite": {
> > > > > > > 
> > > > > > > ```
> > 
> > > > > > >
> > 
> > > > > > > ```
> > > > > > > "type": "amqp",
> > > > > > > 
> > > > > > > ```
> > 
> > > > > > >
> > 
> > > > > > > ```
> > > > > > > "exchange": {
> > > > > > > 
> > > > > > > ```
> > 
> > > > > > >
> > 
> > > > > > > ```
> > > > > > > "type": "topic",
> > > > > > > 
> > > > > > > ```
> > 
> > > > > > >
> > 
> > > > > > > ```
> > > > > > > "name": "metrics",
> > > > > > > 
> > > > > > > ```
> > 
> > > > > > >
> > 
> > > > > > > ```
> > > > > > > "durable": "true"
> > > > > > > 
> > > > > > > ```
> > 
> > > > > > >
> > 
> > > > > > > ```
> > > > > > > },
> > > > > > > 
> > > > > > > ```
> > 
> > > > > > >
> > 
> > > > > > > ```
> > > > > > > "mutator": "only_check_output"
> > > > > > > 
> > > > > > > ```
> > 
> > > > > > >
> > 
> > > > > > > ```
> > > > > > > }
> > > > > > > 
> > > > > > > ```
> > 
> > > > > > >
> > 
> > > > > > > }
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > > Below are the errors we are receiving:
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > > {“timestamp”:“2015-06-04T10:03:36.567577+0000”,“level”:“warn”,“message”:"config
> > 
> > > > > > > file applied
> > 
> > > > > > >
> > 
> > > > > > > changes",“file”:“/etc/sensu/conf.d/handler\_graphite.json”,“changes”:{“handlers”:{“graphite”:[null,{“host”:“192.168.30.160”,“port”:“2003”,“type”:“amqp”,“exchange”:{“type”:“topic”,“name”:“metrics”,“durable”:“true”},“mutator”:“only\_check\_output”}]}}}
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > > {“timestamp”:“2015-06-04T10:03:36.568654+0000”,“level”:“fatal”,“message”:"unknown
> > 
> > > > > > > handler
> > 
> > > > > > >
> > 
> > > > > > > type",“object”:{“host”:“192.168.30.160”,“port”:“2003”,“type”:“amqp”,“exchange”:{“type”:“topic”,“name”:“metrics”,“durable”:“true”},“mutator”:“only\_check\_output”,“name”:“graphite”}}
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > > {“timestamp”:“2015-06-04T10:04:18.008631+0000”,“level”:“warn”,“message”:"config
> > 
> > > > > > > file applied
> > 
> > > > > > >
> > 
> > > > > > > changes",“file”:“/etc/sensu/conf.d/check-disk-fail.json”,“changes”:{“checks”:{“diskfail\_check”:[null,{“type”:“amqp”,“command”:“/etc/sensu/plugins/sensu-community-plugins/plugins/system/check-disk-fail.rb”,“interval”:10,“handlers”:[“graphite”],“subscribers”:[“ALL”]}]}}}
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > > {“timestamp”:“2015-06-04T10:04:18.009642+0000”,“level”:“warn”,“message”:"config
> > 
> > > > > > > file applied
> > 
> > > > > > >
> > 
> > > > > > > changes",“file”:“/etc/sensu/conf.d/handler\_graphite.json”,“changes”:{“handlers”:{“graphite”:[null,{“type”:“amqp”,“exchange”:{“type”:“topic”,“name”:“metrics”,“durable”:“true”},“mutator”:“only\_check\_output”}]}}}
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > > {“timestamp”:“2015-06-04T10:04:18.010737+0000”,“level”:“fatal”,“message”:"unknown
> > 
> > > > > > > handler
> > 
> > > > > > >
> > 
> > > > > > > type",“object”:{“type”:“amqp”,“exchange”:{“type”:“topic”,“name”:“metrics”,“durable”:“true”},“mutator”:“only\_check\_output”,“name”:“graphite”}}
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > > {“timestamp”:“2015-06-04T10:53:51.270568+0000”,“level”:“warn”,“message”:"config
> > 
> > > > > > > file applied
> > 
> > > > > > >
> > 
> > > > > > > changes",“file”:“/etc/sensu/conf.d/check-disk-fail.json”,“changes”:{“checks”:{“diskfail\_check”:[null,{“type”:“amqp”,“command”:“/etc/sensu/plugins/sensu-community-plugins/plugins/system/check-disk-fail.rb”,“interval”:10,“handlers”:[“graphite”],“subscribers”:[“ALL”]}]}}}
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > > {“timestamp”:“2015-06-04T10:53:51.271562+0000”,“level”:“warn”,“message”:"config
> > 
> > > > > > > file applied
> > 
> > > > > > >
> > 
> > > > > > > changes",“file”:“/etc/sensu/conf.d/handler\_graphite.json”,“changes”:{“handlers”:{“graphite”:[null,{“type”:“amqp”,“exchange”:{“type”:“topic”,“name”:“metrics”,“durable”:“true”},“mutator”:“only\_check\_output”}]}}}
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > > {“timestamp”:“2015-06-04T10:53:51.272595+0000”,“level”:“fatal”,“message”:"unknown
> > 
> > > > > > > handler
> > 
> > > > > > >
> > 
> > > > > > > type",“object”:{“type”:“amqp”,“exchange”:{“type”:“topic”,“name”:“metrics”,“durable”:“true”},“mutator”:“only\_check\_output”,“name”:“graphite”}}
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > > Thanks,
> > 
> > > > > > >
> > 
> > > > > > > Srinivas
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > > On Thu, Jun 4, 2015 at 9:54 AM, Srinivas Palle [srini5884@gmail.com](mailto:srini5884@gmail.com)
> > 
> > > > > > > wrote:
> > 
> > > > > > > >
> > 
> > > > > > > > Sure,
> > 
> > > > > > > >
> > 
> > > > > > > > Here is my carbon config file…
> > 
> > > > > > > >
> > 
> > > > > > > > Thanks,
> > 
> > > > > > > > Srini
> > 
> > > > > > > >
> > 
> > > > > > > > On Thursday, June 4, 2015 at 9:13:19 AM UTC+5:30, Kyle Anderson
> > 
> > > > > > > > wrote:
> > 
> > > > > > > > >
> > 
> > > > > > > > > Well, “True” does look like a valid bool for python to me.
> > 
> > > > > > > > > Can you put your carbon config file in a pastebin so I can see it
> > 
> > > > > > > > > without email formatting?
> > 
> > > > > > > > >
> > 
> > > > > > > > > On Wed, Jun 3, 2015 at 11:45 AM, Srinivas Palle [srin...@gmail.com](mailto:srin...@gmail.com)
> > 
> > > > > > > > > wrote:
> > 
> > > > > > > > > > Hi Kyle,
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > My current sensu - graphite set up is working fine as expected
> > 
> > > > > > > > > > with
> > 
> > > > > > > > > > below
> > 
> > > > > > > > > > exceptions, I ams till unable to send data through AMQP whenever I
> > 
> > > > > > > > > > send data
> > 
> > > > > > > > > > through AMQP carbon-cache gets crashed. Also please advice if
> > 
> > > > > > > > > > below
> > 
> > > > > > > > > > output
> > 
> > > > > > > > > > is good to go with?
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > root@ip-192-168-30-160:/var/log/carbon# tail -f listener.log |
> > 
> > > > > > > > > > grep -i
> > 
> > > > > > > > > > “192.168.30.135”
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > 03/06/2015 18:29:33 :: MetricLineReceiver connection with
> > 
> > > > > > > > > > [192.168.30.135:47814](http://192.168.30.135:47814) established
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > 03/06/2015 18:29:33 :: MetricLineReceiver connection with
> > 
> > > > > > > > > > [192.168.30.135:47814](http://192.168.30.135:47814) closed cleanly
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > 03/06/2015 18:39:44 :: MetricLineReceiver connection with
> > 
> > > > > > > > > > [192.168.30.135:47813](http://192.168.30.135:47813) lost: Connection to the other side was lost
> > 
> > > > > > > > > > in a
> > 
> > > > > > > > > > non-clean fashion: Connection lost.
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > AMQP error:
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > root@ip-192-168-30-160:~# service carbon-cache restart
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > - Restarting Graphite backend daemon carbon-cache
> > 
> > > > > > > > > > Traceback (most recent call last):
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > File “/usr/bin/carbon-cache”, line 32, in
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > ```
> > > > > > > > > > run_twistd_plugin( __file__ )
> > > > > > > > > > 
> > > > > > > > > > ```
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > File “/usr/lib/python2.7/dist-packages/carbon/util.py”, line 90,
> > 
> > > > > > > > > > in
> > 
> > > > > > > > > > run\_twistd\_plugin
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > ```
> > > > > > > > > > config.parseOptions(twistd_options)
> > > > > > > > > > 
> > > > > > > > > > ```
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > File
> > 
> > > > > > > > > > “/usr/lib/python2.7/dist-packages/twisted/application/app.py”,
> > 
> > > > > > > > > > line
> > 
> > > > > > > > > > 604, in parseOptions
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > ```
> > > > > > > > > > usage.Options.parseOptions(self, options)
> > > > > > > > > > 
> > > > > > > > > > ```
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > File “/usr/lib/python2.7/dist-packages/twisted/python/usage.py”,
> > 
> > > > > > > > > > line 266,
> > 
> > > > > > > > > > in parseOptions
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > ```
> > > > > > > > > > self.subOptions.parseOptions(rest)
> > > > > > > > > > 
> > > > > > > > > > ```
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > File “/usr/lib/python2.7/dist-packages/twisted/python/usage.py”,
> > 
> > > > > > > > > > line 276,
> > 
> > > > > > > > > > in parseOptions
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > ```
> > > > > > > > > > self.postOptions()
> > > > > > > > > > 
> > > > > > > > > > ```
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > File “/usr/lib/python2.7/dist-packages/carbon/conf.py”, line
> > 
> > > > > > > > > > 197, in
> > 
> > > > > > > > > > postOptions
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > ```
> > > > > > > > > > program_settings = read_config(program, self)
> > > > > > > > > > 
> > > > > > > > > > ```
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > File “/usr/lib/python2.7/dist-packages/carbon/conf.py”, line
> > 
> > > > > > > > > > 526, in
> > 
> > > > > > > > > > read\_config
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > ```
> > > > > > > > > > settings.readFrom(config, section)
> > > > > > > > > > 
> > > > > > > > > > ```
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > File “/usr/lib/python2.7/dist-packages/carbon/conf.py”, line
> > 
> > > > > > > > > > 146, in
> > 
> > > > > > > > > > readFrom
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > ```
> > > > > > > > > > value = parser.getboolean(section, key)
> > > > > > > > > > 
> > > > > > > > > > ```
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > File “/usr/lib/python2.7/ConfigParser.py”, line 370, in
> > 
> > > > > > > > > > getboolean
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > ```
> > > > > > > > > > raise ValueError, 'Not a boolean: %s' % v
> > > > > > > > > > 
> > > > > > > > > > ```
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > ValueError: Not a boolean: True
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > ENABLE\_AMQP = True
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > AMQP\_HOST = 192.168.30.135
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > AMQP\_PORT = 5672
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > AMQP\_VHOST = /sensu
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > AMQP\_USER = sensu
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > AMQP\_PASSWORD = sensu123
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > AMQP\_EXCHANGE = metrics
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > AMQP\_METRIC\_NAME\_IN\_BODY = True
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > ```
> > > > > > > > > > Thanks,Srini
> > > > > > > > > > 
> > > > > > > > > > ```
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > On Saturday, February 28, 2015 at 4:58:56 AM UTC+5:30,
> > 
> > > > > > > > > > [max2su...@gmail.com](mailto:max2su...@gmail.com)
> > 
> > > > > > > > > > wrote:
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > > Hi,
> > 
> > > > > > > > > > > ```
> > > > > > > > > > > We are facing a problem of not getting any check
> > > > > > > > > > > 
> > > > > > > > > > > ```
> > 
> > > > > > > > > > > “metrics”
> > 
> > > > > > > > > > > response from the client while following the tutorial at link
> > 
> > > > > > > > > > > Adding
> > 
> > > > > > > > > > > a
> > 
> > > > > > > > > > > Metric.
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > > Following are the outputs :-
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > > Server \> tail -f /var/log/sensu/sensu-server.log
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > > {“timestamp”:“2015-02-27T18:23:59.010129-0500”,“level”:“error”,“message”:"unknown
> > 
> > > > > > > > > > > handler",“handler\_name”:“default”}
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > > {“timestamp”:“2015-02-27T18:24:06.362472-0500”,“level”:“info”,“message”:"determining
> > 
> > > > > > > > > > > stale clients"}
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > > {“timestamp”:“2015-02-27T18:24:06.384124-0500”,“level”:“error”,“message”:"unknown
> > 
> > > > > > > > > > > handler",“handler\_name”:“default”}
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > > {“timestamp”:“2015-02-27T18:24:06.386882-0500”,“level”:“error”,“message”:"unknown
> > 
> > > > > > > > > > > handler",“handler\_name”:“default”}
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > > {“timestamp”:“2015-02-27T18:24:06.389126-0500”,“level”:“error”,“message”:"unknown
> > 
> > > > > > > > > > > handler",“handler\_name”:“default”}
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > > {“timestamp”:“2015-02-27T18:24:08.426386-0500”,“level”:“info”,“message”:"publishing
> > 
> > > > > > > > > > > check
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > > request",“payload”:{“name”:“load\_metrics”,“issued”:1425079448,“command”:“load-metrics.rb”},“subscribers”:[“production”]}
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > > Client \> tail -f /var/log/sensu/sensu-client.log
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > > {“timestamp”:“2015-02-27T18:25:37.674068-0500”,“level”:“info”,“message”:"publishing
> > 
> > > > > > > > > > > check
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > > result",“payload”:{“client”:“sensu-client.25.max2”,“check”:{“name”:“load\_metrics”,“issued”:1425079538,“command”:“load-metrics.rb”,“executed”:1425079537,“duration”:0.172,“output”:"Dev.load\_avg.one
> > 
> > > > > > > > > > > 0.13 1425079537\nDev.load\_avg.five 0.12
> > 
> > > > > > > > > > > 1425079537\nDev.load\_avg.fifteen
> > 
> > > > > > > > > > > 0.22 1425079537\n\n",“status”:0}}}
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > > What are the configs that we are missing ?
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > > Thanks:-
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > >
> > 
> > > >
> > 
> > > >
> > 
> > >

---

<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:** [June 5, 2015, 2:59pm UTC](https://discourse.sensu.io/t/sensu-client-not-sending-metrics-data-to-the-server/379/28 "2015-06-05T14:59:27Z")

</div>

Yes, but the config file is also an issue, and is what the last log is  
trying to say.  
missing mutator.rb would probably be your next error, but it would be  
a more obvious "file not found" or something.

> **···**
>
> On Fri, Jun 5, 2015 at 7:57 AM, Srinivas Palle \<srini5884@gmail.com\> wrote:
> 
> > I missed having mutated.rb plugin in sensu server, can this be an issue  
> > here?
> > 
> > On Fri, Jun 5, 2015 at 8:22 PM, Srinivas Palle \<srini5884@gmail.com\> wrote:
> > 
> > > My apologies I ensure to reply all henceforth.
> > > 
> > > On Fri, Jun 5, 2015 at 8:05 PM, Kyle Anderson \<kyle@xkyle.com\> wrote:
> > > 
> > > > Again, please email the entire group and not me personally. It allow  
> > > > others to help if they know.  
> > > > I will no longer reply-back to your personal emails.
> > > > 
> > > > The error that sensu has:
> > > > 
> > > > {"timestamp":"2015-06-04T10:53:51.272595+0000","level":"fatal","message":"unknown  
> > > > handler  
> > > > type","object":{"type":"amqp","exchange":{"type":"topic","name":"metrics","durable":"true"},"mutator":"only\_check\_output","name":"graphite"}}
> > > > 
> > > > Comes from the mutator section of the handler config:  
> > > > [{ "handlers": { "graphite": { "type": "amqp", "exchange": - Pastebin.com](http://pastebin.com/7WAEALy3)
> > > > 
> > > > Here are the docs on how to define mutators:  
> > > > [https://sensuapp.org/docs/latest/mutators](https://sensuapp.org/docs/latest/mutators)
> > > > 
> > > > It has to be in its own block, it cannot be in the "Handlers" section,  
> > > > and cannot be in the graphite section.
> > > > 
> > > > I also recommend using configuration management (chef/puppet) as they  
> > > > will prevent you from creating malformed json.
> > > > 
> > > > On Fri, Jun 5, 2015 at 6:31 AM, Srinivas Palle \<srini5884@gmail.com\> \>\>\> wrote:  
> > > > \> I am trying to data from sensu to graphite through AMQP handler.  
> > > > \>  
> > > > \> Thanks,  
> > > > \> Srinivas  
> > > > \>  
> > > > \>  
> > > > \>  
> > > > \> On Fri, Jun 5, 2015 at 6:10 PM, Srinivas Palle \<srini5884@gmail.com\> \>\>\> \> wrote:  
> > > > \>\>  
> > > > \>\> Here is my config file:  
> > > > \>\>  
> > > > \>\> AMQP handler configuration:  
> > > > \>\>  
> > > > \>\> [{ "handlers": { "graphite": { "type": "amqp", "exchange": - Pastebin.com](http://pastebin.com/7WAEALy3) :  
> > > > \>\>  
> > > > \>\> Basic sensu config file:  
> > > > \>\>  
> > > > \>\> [{ "rabbitmq": { "ssl": { "private\_key\_file": "/etc/sensu/ssl/clie - Pastebin.com](http://pastebin.com/EkedqsLW)  
> > > > \>\>  
> > > > \>\> Thanks,  
> > > > \>\> Srinivas  
> > > > \>\>  
> > > > \>\>  
> > > > \>\>  
> > > > \>\> On Fri, Jun 5, 2015 at 10:08 AM, Kyle Anderson \<kyle@xkyle.com\> wrote:  
> > > > \>\>\>  
> > > > \>\>\> Again, please use a pastebin to share configuration data like this:  
> > > > \>\>\> [http://pastebin.com/](http://pastebin.com/)  
> > > > \>\>\> It is impossible to be sure about what your configuration is with  
> > > > \>\>\> email formatting.  
> > > > \>\>\>  
> > > > \>\>\> On Thu, Jun 4, 2015 at 7:08 AM, Srinivas Palle \<srini5884@gmail.com\> \>\>\> \>\>\> wrote:  
> > > > \>\>\> \> Below is the sensu config file I have on sensu server"  
> > > > \>\>\> \>  
> > > > \>\>\> \> root@ip-192-168-30-135:/etc/sensu# vi config.json  
> > > > \>\>\> \>  
> > > > \>\>\> \>  
> > > > \>\>\> \> },  
> > > > \>\>\> \>  
> > > > \>\>\> \> "api": {  
> > > > \>\>\> \>  
> > > > \>\>\> \> "host": "localhost",  
> > > > \>\>\> \>  
> > > > \>\>\> \> "port": 4567  
> > > > \>\>\> \>  
> > > > \>\>\> \> },  
> > > > \>\>\> \>  
> > > > \>\>\> \> "dashboard": {  
> > > > \>\>\> \>  
> > > > \>\>\> \> "host": "localhost",  
> > > > \>\>\> \>  
> > > > \>\>\> \> "port": 8080,  
> > > > \>\>\> \>  
> > > > \>\>\> \> "user": "admin",  
> > > > \>\>\> \>  
> > > > \>\>\> \> "password": "secret"  
> > > > \>\>\> \>  
> > > > \>\>\> \> },  
> > > > \>\>\> \>  
> > > > \>\>\> \> "handlers": {  
> > > > \>\>\> \>  
> > > > \>\>\> \> "graphite": {  
> > > > \>\>\> \>  
> > > > \>\>\> \> "type": "amqp",  
> > > > \>\>\> \>  
> > > > \>\>\> \> "exchange": {  
> > > > \>\>\> \>  
> > > > \>\>\> \> "type": "topic",  
> > > > \>\>\> \>  
> > > > \>\>\> \> "name": "metrics",  
> > > > \>\>\> \>  
> > > > \>\>\> \> "durable": "true"  
> > > > \>\>\> \>  
> > > > \>\>\> \> },  
> > > > \>\>\> \>  
> > > > \>\>\> \> "mutator": "only\_check\_output"  
> > > > \>\>\> \>  
> > > > \>\>\> \> }  
> > > > \>\>\> \>  
> > > > \>\>\> \> }  
> > > > \>\>\> \>  
> > > > \>\>\> \> }  
> > > > \>\>\> \>  
> > > > \>\>\> \>  
> > > > \>\>\> \> On Thu, Jun 4, 2015 at 7:27 PM, Srinivas Palle \>\>\> \>\>\> \> \<srini5884@gmail.com\> \>\>\> \>\>\> \> wrote:  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\> I Just resolved boolean true value issues, but still am unable to  
> > > > \>\>\> \>\> start  
> > > > \>\>\> \>\> sensu-server after having below handler in sensu server. can you  
> > > > \>\>\> \>\> please  
> > > > \>\>\> \>\> explain me if I need to have any handler in plugins to support  
> > > > \>\>\> \>\> amqp?  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\> {  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\> "handlers": {  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\> "graphite": {  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\> "type": "amqp",  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\> "exchange": {  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\> "type": "topic",  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\> "name": "metrics",  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\> "durable": "true"  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\> },  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\> "mutator": "only\_check\_output"  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\> }  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\> }  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\> Below are the errors we are receiving:  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\> {"timestamp":"2015-06-04T10:03:36.567577+0000","level":"warn","message":"config  
> > > > \>\>\> \>\> file applied  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\> changes","file":"/etc/sensu/conf.d/handler\_graphite.json","changes":{"handlers":{"graphite":[null,{"host":"192.168.30.160","port":"2003","type":"amqp","exchange":{"type":"topic","name":"metrics","durable":"true"},"mutator":"only\_check\_output"}]}}}  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\> {"timestamp":"2015-06-04T10:03:36.568654+0000","level":"fatal","message":"unknown  
> > > > \>\>\> \>\> handler  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\> type","object":{"host":"192.168.30.160","port":"2003","type":"amqp","exchange":{"type":"topic","name":"metrics","durable":"true"},"mutator":"only\_check\_output","name":"graphite"}}  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\> {"timestamp":"2015-06-04T10:04:18.008631+0000","level":"warn","message":"config  
> > > > \>\>\> \>\> file applied  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\> changes","file":"/etc/sensu/conf.d/check-disk-fail.json","changes":{"checks":{"diskfail\_check":[null,{"type":"amqp","command":"/etc/sensu/plugins/sensu-community-plugins/plugins/system/check-disk-fail.rb","interval":10,"handlers":["graphite"],"subscribers":["ALL"]}]}}}  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\> {"timestamp":"2015-06-04T10:04:18.009642+0000","level":"warn","message":"config  
> > > > \>\>\> \>\> file applied  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\> changes","file":"/etc/sensu/conf.d/handler\_graphite.json","changes":{"handlers":{"graphite":[null,{"type":"amqp","exchange":{"type":"topic","name":"metrics","durable":"true"},"mutator":"only\_check\_output"}]}}}  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\> {"timestamp":"2015-06-04T10:04:18.010737+0000","level":"fatal","message":"unknown  
> > > > \>\>\> \>\> handler  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\> type","object":{"type":"amqp","exchange":{"type":"topic","name":"metrics","durable":"true"},"mutator":"only\_check\_output","name":"graphite"}}  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\> {"timestamp":"2015-06-04T10:53:51.270568+0000","level":"warn","message":"config  
> > > > \>\>\> \>\> file applied  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\> changes","file":"/etc/sensu/conf.d/check-disk-fail.json","changes":{"checks":{"diskfail\_check":[null,{"type":"amqp","command":"/etc/sensu/plugins/sensu-community-plugins/plugins/system/check-disk-fail.rb","interval":10,"handlers":["graphite"],"subscribers":["ALL"]}]}}}  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\> {"timestamp":"2015-06-04T10:53:51.271562+0000","level":"warn","message":"config  
> > > > \>\>\> \>\> file applied  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\> changes","file":"/etc/sensu/conf.d/handler\_graphite.json","changes":{"handlers":{"graphite":[null,{"type":"amqp","exchange":{"type":"topic","name":"metrics","durable":"true"},"mutator":"only\_check\_output"}]}}}  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\> {"timestamp":"2015-06-04T10:53:51.272595+0000","level":"fatal","message":"unknown  
> > > > \>\>\> \>\> handler  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\> type","object":{"type":"amqp","exchange":{"type":"topic","name":"metrics","durable":"true"},"mutator":"only\_check\_output","name":"graphite"}}  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\> Thanks,  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\> Srinivas  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\> On Thu, Jun 4, 2015 at 9:54 AM, Srinivas Palle \>\>\> \>\>\> \>\> \<srini5884@gmail.com\> \>\>\> \>\>\> \>\> wrote:  
> > > > \>\>\> \>\>\>  
> > > > \>\>\> \>\>\> Sure,  
> > > > \>\>\> \>\>\>  
> > > > \>\>\> \>\>\> Here is my carbon config file..  
> > > > \>\>\> \>\>\>  
> > > > \>\>\> \>\>\> Thanks,  
> > > > \>\>\> \>\>\> Srini  
> > > > \>\>\> \>\>\>  
> > > > \>\>\> \>\>\> On Thursday, June 4, 2015 at 9:13:19 AM UTC+5:30, Kyle Anderson \>\>\> \>\>\> \>\>\> wrote:  
> > > > \>\>\> \>\>\>\>  
> > > > \>\>\> \>\>\>\> Well, "True" does look like a valid bool for python to me.  
> > > > \>\>\> \>\>\>\> Can you put your carbon config file in a pastebin so I can see  
> > > > \>\>\> \>\>\>\> it  
> > > > \>\>\> \>\>\>\> without email formatting?  
> > > > \>\>\> \>\>\>\>  
> > > > \>\>\> \>\>\>\> On Wed, Jun 3, 2015 at 11:45 AM, Srinivas Palle \>\>\> \>\>\> \>\>\>\> \<srin...@gmail.com\> \>\>\> \>\>\> \>\>\>\> wrote:  
> > > > \>\>\> \>\>\>\> \> Hi Kyle,  
> > > > \>\>\> \>\>\>\> \>  
> > > > \>\>\> \>\>\>\> \> My current sensu - graphite set up is working fine as expected  
> > > > \>\>\> \>\>\>\> \> with  
> > > > \>\>\> \>\>\>\> \> below  
> > > > \>\>\> \>\>\>\> \> exceptions, I ams till unable to send data through AMQP  
> > > > \>\>\> \>\>\>\> \> whenever I  
> > > > \>\>\> \>\>\>\> \> send data  
> > > > \>\>\> \>\>\>\> \> through AMQP carbon-cache gets crashed. Also please advice if  
> > > > \>\>\> \>\>\>\> \> below  
> > > > \>\>\> \>\>\>\> \> output  
> > > > \>\>\> \>\>\>\> \> is good to go with?  
> > > > \>\>\> \>\>\>\> \>  
> > > > \>\>\> \>\>\>\> \> root@ip-192-168-30-160:/var/log/carbon# tail -f listener.log |  
> > > > \>\>\> \>\>\>\> \> grep -i  
> > > > \>\>\> \>\>\>\> \> "192.168.30.135"  
> > > > \>\>\> \>\>\>\> \>  
> > > > \>\>\> \>\>\>\> \> 03/06/2015 18:29:33 :: MetricLineReceiver connection with  
> > > > \>\>\> \>\>\>\> \> 192.168.30.135:47814 established  
> > > > \>\>\> \>\>\>\> \>  
> > > > \>\>\> \>\>\>\> \> 03/06/2015 18:29:33 :: MetricLineReceiver connection with  
> > > > \>\>\> \>\>\>\> \> 192.168.30.135:47814 closed cleanly  
> > > > \>\>\> \>\>\>\> \>  
> > > > \>\>\> \>\>\>\> \> 03/06/2015 18:39:44 :: MetricLineReceiver connection with  
> > > > \>\>\> \>\>\>\> \> 192.168.30.135:47813 lost: Connection to the other side was  
> > > > \>\>\> \>\>\>\> \> lost  
> > > > \>\>\> \>\>\>\> \> in a  
> > > > \>\>\> \>\>\>\> \> non-clean fashion: Connection lost.  
> > > > \>\>\> \>\>\>\> \>  
> > > > \>\>\> \>\>\>\> \>  
> > > > \>\>\> \>\>\>\> \>  
> > > > \>\>\> \>\>\>\> \> AMQP error:  
> > > > \>\>\> \>\>\>\> \>  
> > > > \>\>\> \>\>\>\> \>  
> > > > \>\>\> \>\>\>\> \> root@ip-192-168-30-160:~# service carbon-cache restart  
> > > > \>\>\> \>\>\>\> \>  
> > > > \>\>\> \>\>\>\> \> \* Restarting Graphite backend daemon carbon-cache  
> > > > \>\>\> \>\>\>\> \> Traceback (most recent call last):  
> > > > \>\>\> \>\>\>\> \>  
> > > > \>\>\> \>\>\>\> \> File "/usr/bin/carbon-cache", line 32, in \<module\>  
> > > > \>\>\> \>\>\>\> \>  
> > > > \>\>\> \>\>\>\> \> run\_twistd\_plugin(\_\_file\_\_)  
> > > > \>\>\> \>\>\>\> \>  
> > > > \>\>\> \>\>\>\> \> File "/usr/lib/python2.7/dist-packages/carbon/util.py", line  
> > > > \>\>\> \>\>\>\> \> 90,  
> > > > \>\>\> \>\>\>\> \> in  
> > > > \>\>\> \>\>\>\> \> run\_twistd\_plugin  
> > > > \>\>\> \>\>\>\> \>  
> > > > \>\>\> \>\>\>\> \> config.parseOptions(twistd\_options)  
> > > > \>\>\> \>\>\>\> \>  
> > > > \>\>\> \>\>\>\> \> File  
> > > > \>\>\> \>\>\>\> \> "/usr/lib/python2.7/dist-packages/twisted/application/app.py",  
> > > > \>\>\> \>\>\>\> \> line  
> > > > \>\>\> \>\>\>\> \> 604, in parseOptions  
> > > > \>\>\> \>\>\>\> \>  
> > > > \>\>\> \>\>\>\> \> usage.Options.parseOptions(self, options)  
> > > > \>\>\> \>\>\>\> \>  
> > > > \>\>\> \>\>\>\> \> File  
> > > > \>\>\> \>\>\>\> \> "/usr/lib/python2.7/dist-packages/twisted/python/usage.py",  
> > > > \>\>\> \>\>\>\> \> line 266,  
> > > > \>\>\> \>\>\>\> \> in parseOptions  
> > > > \>\>\> \>\>\>\> \>  
> > > > \>\>\> \>\>\>\> \> self.subOptions.parseOptions(rest)  
> > > > \>\>\> \>\>\>\> \>  
> > > > \>\>\> \>\>\>\> \> File  
> > > > \>\>\> \>\>\>\> \> "/usr/lib/python2.7/dist-packages/twisted/python/usage.py",  
> > > > \>\>\> \>\>\>\> \> line 276,  
> > > > \>\>\> \>\>\>\> \> in parseOptions  
> > > > \>\>\> \>\>\>\> \>  
> > > > \>\>\> \>\>\>\> \> self.postOptions()  
> > > > \>\>\> \>\>\>\> \>  
> > > > \>\>\> \>\>\>\> \> File "/usr/lib/python2.7/dist-packages/carbon/conf.py", line  
> > > > \>\>\> \>\>\>\> \> 197, in  
> > > > \>\>\> \>\>\>\> \> postOptions  
> > > > \>\>\> \>\>\>\> \>  
> > > > \>\>\> \>\>\>\> \> program\_settings = read\_config(program, self)  
> > > > \>\>\> \>\>\>\> \>  
> > > > \>\>\> \>\>\>\> \> File "/usr/lib/python2.7/dist-packages/carbon/conf.py", line  
> > > > \>\>\> \>\>\>\> \> 526, in  
> > > > \>\>\> \>\>\>\> \> read\_config  
> > > > \>\>\> \>\>\>\> \>  
> > > > \>\>\> \>\>\>\> \> settings.readFrom(config, section)  
> > > > \>\>\> \>\>\>\> \>  
> > > > \>\>\> \>\>\>\> \> File "/usr/lib/python2.7/dist-packages/carbon/conf.py", line  
> > > > \>\>\> \>\>\>\> \> 146, in  
> > > > \>\>\> \>\>\>\> \> readFrom  
> > > > \>\>\> \>\>\>\> \>  
> > > > \>\>\> \>\>\>\> \> value = parser.getboolean(section, key)  
> > > > \>\>\> \>\>\>\> \>  
> > > > \>\>\> \>\>\>\> \> File "/usr/lib/python2.7/ConfigParser.py", line 370, in  
> > > > \>\>\> \>\>\>\> \> getboolean  
> > > > \>\>\> \>\>\>\> \>  
> > > > \>\>\> \>\>\>\> \> raise ValueError, 'Not a boolean: %s' % v  
> > > > \>\>\> \>\>\>\> \>  
> > > > \>\>\> \>\>\>\> \> ValueError: Not a boolean: True  
> > > > \>\>\> \>\>\>\> \>  
> > > > \>\>\> \>\>\>\> \> ENABLE\_AMQP = True  
> > > > \>\>\> \>\>\>\> \>  
> > > > \>\>\> \>\>\>\> \> AMQP\_HOST = 192.168.30.135  
> > > > \>\>\> \>\>\>\> \>  
> > > > \>\>\> \>\>\>\> \> AMQP\_PORT = 5672  
> > > > \>\>\> \>\>\>\> \>  
> > > > \>\>\> \>\>\>\> \> AMQP\_VHOST = /sensu  
> > > > \>\>\> \>\>\>\> \>  
> > > > \>\>\> \>\>\>\> \> AMQP\_USER = sensu  
> > > > \>\>\> \>\>\>\> \>  
> > > > \>\>\> \>\>\>\> \> AMQP\_PASSWORD = sensu123  
> > > > \>\>\> \>\>\>\> \>  
> > > > \>\>\> \>\>\>\> \> AMQP\_EXCHANGE = metrics  
> > > > \>\>\> \>\>\>\> \>  
> > > > \>\>\> \>\>\>\> \> AMQP\_METRIC\_NAME\_IN\_BODY = True  
> > > > \>\>\> \>\>\>\> \>  
> > > > \>\>\> \>\>\>\> \> Thanks,Srini  
> > > > \>\>\> \>\>\>\> \>  
> > > > \>\>\> \>\>\>\> \>  
> > > > \>\>\> \>\>\>\> \> On Saturday, February 28, 2015 at 4:58:56 AM UTC+5:30, \>\>\> \>\>\> \>\>\>\> \> max2su...@gmail.com \>\>\> \>\>\> \>\>\>\> \> wrote:  
> > > > \>\>\> \>\>\>\> \>\>  
> > > > \>\>\> \>\>\>\> \>\> Hi,  
> > > > \>\>\> \>\>\>\> \>\> We are facing a problem of not getting any check  
> > > > \>\>\> \>\>\>\> \>\> "metrics"  
> > > > \>\>\> \>\>\>\> \>\> response from the client while following the tutorial at link  
> > > > \>\>\> \>\>\>\> \>\> Adding  
> > > > \>\>\> \>\>\>\> \>\> a  
> > > > \>\>\> \>\>\>\> \>\> Metric.  
> > > > \>\>\> \>\>\>\> \>\>  
> > > > \>\>\> \>\>\>\> \>\> Following are the outputs :-  
> > > > \>\>\> \>\>\>\> \>\>  
> > > > \>\>\> \>\>\>\> \>\> Server \> tail -f /var/log/sensu/sensu-server.log  
> > > > \>\>\> \>\>\>\> \>\>  
> > > > \>\>\> \>\>\>\> \>\>  
> > > > \>\>\> \>\>\>\> \>\>  
> > > > \>\>\> \>\>\>\> \>\>  
> > > > \>\>\> \>\>\>\> \>\>  
> > > > \>\>\> \>\>\>\> \>\> {"timestamp":"2015-02-27T18:23:59.010129-0500","level":"error","message":"unknown  
> > > > \>\>\> \>\>\>\> \>\> handler","handler\_name":"default"}  
> > > > \>\>\> \>\>\>\> \>\>  
> > > > \>\>\> \>\>\>\> \>\>  
> > > > \>\>\> \>\>\>\> \>\>  
> > > > \>\>\> \>\>\>\> \>\>  
> > > > \>\>\> \>\>\>\> \>\> {"timestamp":"2015-02-27T18:24:06.362472-0500","level":"info","message":"determining  
> > > > \>\>\> \>\>\>\> \>\> stale clients"}  
> > > > \>\>\> \>\>\>\> \>\>  
> > > > \>\>\> \>\>\>\> \>\>  
> > > > \>\>\> \>\>\>\> \>\>  
> > > > \>\>\> \>\>\>\> \>\>  
> > > > \>\>\> \>\>\>\> \>\> {"timestamp":"2015-02-27T18:24:06.384124-0500","level":"error","message":"unknown  
> > > > \>\>\> \>\>\>\> \>\> handler","handler\_name":"default"}  
> > > > \>\>\> \>\>\>\> \>\>  
> > > > \>\>\> \>\>\>\> \>\>  
> > > > \>\>\> \>\>\>\> \>\>  
> > > > \>\>\> \>\>\>\> \>\>  
> > > > \>\>\> \>\>\>\> \>\> {"timestamp":"2015-02-27T18:24:06.386882-0500","level":"error","message":"unknown  
> > > > \>\>\> \>\>\>\> \>\> handler","handler\_name":"default"}  
> > > > \>\>\> \>\>\>\> \>\>  
> > > > \>\>\> \>\>\>\> \>\>  
> > > > \>\>\> \>\>\>\> \>\>  
> > > > \>\>\> \>\>\>\> \>\>  
> > > > \>\>\> \>\>\>\> \>\> {"timestamp":"2015-02-27T18:24:06.389126-0500","level":"error","message":"unknown  
> > > > \>\>\> \>\>\>\> \>\> handler","handler\_name":"default"}  
> > > > \>\>\> \>\>\>\> \>\>  
> > > > \>\>\> \>\>\>\> \>\>  
> > > > \>\>\> \>\>\>\> \>\>  
> > > > \>\>\> \>\>\>\> \>\>  
> > > > \>\>\> \>\>\>\> \>\> {"timestamp":"2015-02-27T18:24:08.426386-0500","level":"info","message":"publishing  
> > > > \>\>\> \>\>\>\> \>\> check  
> > > > \>\>\> \>\>\>\> \>\>  
> > > > \>\>\> \>\>\>\> \>\>  
> > > > \>\>\> \>\>\>\> \>\>  
> > > > \>\>\> \>\>\>\> \>\> request","payload":{"name":"load\_metrics","issued":1425079448,"command":"load-metrics.rb"},"subscribers":["production"]}  
> > > > \>\>\> \>\>\>\> \>\>  
> > > > \>\>\> \>\>\>\> \>\>  
> > > > \>\>\> \>\>\>\> \>\> Client \> tail -f /var/log/sensu/sensu-client.log  
> > > > \>\>\> \>\>\>\> \>\>  
> > > > \>\>\> \>\>\>\> \>\>  
> > > > \>\>\> \>\>\>\> \>\>  
> > > > \>\>\> \>\>\>\> \>\>  
> > > > \>\>\> \>\>\>\> \>\>  
> > > > \>\>\> \>\>\>\> \>\> {"timestamp":"2015-02-27T18:25:37.674068-0500","level":"info","message":"publishing  
> > > > \>\>\> \>\>\>\> \>\> check  
> > > > \>\>\> \>\>\>\> \>\>  
> > > > \>\>\> \>\>\>\> \>\>  
> > > > \>\>\> \>\>\>\> \>\>  
> > > > \>\>\> \>\>\>\> \>\> result","payload":{"client":"sensu-client.25.max2","check":{"name":"load\_metrics","issued":1425079538,"command":"load-metrics.rb","executed":1425079537,"duration":0.172,"output":"Dev.load\_avg.one  
> > > > \>\>\> \>\>\>\> \>\> 0.13 1425079537\nDev.load\_avg.five 0.12  
> > > > \>\>\> \>\>\>\> \>\> 1425079537\nDev.load\_avg.fifteen  
> > > > \>\>\> \>\>\>\> \>\> 0.22 1425079537\n\n","status":0}}}  
> > > > \>\>\> \>\>\>\> \>\>  
> > > > \>\>\> \>\>\>\> \>\>  
> > > > \>\>\> \>\>\>\> \>\> What are the configs that we are missing ?  
> > > > \>\>\> \>\>\>\> \>\>  
> > > > \>\>\> \>\>\>\> \>\> Thanks:-  
> > > > \>\>\> \>\>\>\> \>\>  
> > > > \>\>\> \>\>\>\> \>  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>\>  
> > > > \>\>\> \>  
> > > > \>\>  
> > > > \>\>  
> > > > \>

---

<div class="post-metadata">

**Author:** ![Srinivas\_Palle](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@Srinivas\_Palle](https://discourse.sensu.io/u/Srinivas_Palle)\
**Post date:** [June 5, 2015, 3:02pm UTC](https://discourse.sensu.io/t/sensu-client-not-sending-metrics-data-to-the-server/379/29 "2015-06-05T15:02:19Z")

</div>

It shows same error as below, am really confused how to set handler config properly now, I just used doc [http://www.joemiller.me/2012/02/02/sensu-and-graphite/](http://www.joemiller.me/2012/02/02/sensu-and-graphite/) to configure amqp handler.

Can you please help me from where I can download mutated.rb plugin?

{“timestamp”:“2015-06-05T14:55:40.452325+0000”,“level”:“fatal”,“message”:“unknown handler type”,“object”:{“type”:“amqp”,“exchange”:{“type”:“topic”,“name”:“metrics”,“durable”:“true”},“mutator”:“only\_check\_output”,“name”:“graphite”}}

{“timestamp”:“2015-06-05T14:55:40.452387+0000”,“level”:“fatal”,“message”:“SENSU NOT RUNNING!”}

> **···**
>
> On Fri, Jun 5, 2015 at 8:29 PM, Kyle Anderson [kyle@xkyle.com](mailto:kyle@xkyle.com) wrote:
> 
> > Yes, but the config file is also an issue, and is what the last log is
> > 
> > trying to say.
> > 
> > missing mutator.rb would probably be your next error, but it would be
> > 
> > a more obvious “file not found” or something.
> > 
> > On Fri, Jun 5, 2015 at 7:57 AM, Srinivas Palle [srini5884@gmail.com](mailto:srini5884@gmail.com) wrote:
> > 
> > > I missed having mutated.rb plugin in sensu server, can this be an issue
> > 
> > > here?
> > 
> > > 
> > 
> > > On Fri, Jun 5, 2015 at 8:22 PM, Srinivas Palle [srini5884@gmail.com](mailto:srini5884@gmail.com) wrote:
> > 
> > > >
> > 
> > > > My apologies I ensure to reply all henceforth.
> > 
> > > >
> > 
> > > > On Fri, Jun 5, 2015 at 8:05 PM, Kyle Anderson [kyle@xkyle.com](mailto:kyle@xkyle.com) wrote:
> > 
> > > > >
> > 
> > > > > Again, please email the entire group and not me personally. It allow
> > 
> > > > > others to help if they know.
> > 
> > > > > I will no longer reply-back to your personal emails.
> > 
> > > > >
> > 
> > > > > The error that sensu has:
> > 
> > > > >
> > 
> > > > > {“timestamp”:“2015-06-04T10:53:51.272595+0000”,“level”:“fatal”,“message”:"unknown
> > 
> > > > > handler
> > 
> > > > > type",“object”:{“type”:“amqp”,“exchange”:{“type”:“topic”,“name”:“metrics”,“durable”:“true”},“mutator”:“only\_check\_output”,“name”:“graphite”}}
> > 
> > > > >
> > 
> > > > > Comes from the mutator section of the handler config:
> > 
> > > > > [http://pastebin.com/7WAEALy3](http://pastebin.com/7WAEALy3)
> > 
> > > > >
> > 
> > > > > Here are the docs on how to define mutators:
> > 
> > > > > [https://sensuapp.org/docs/latest/mutators](https://sensuapp.org/docs/latest/mutators)
> > 
> > > > >
> > 
> > > > > It has to be in its own block, it cannot be in the “Handlers” section,
> > 
> > > > > and cannot be in the graphite section.
> > 
> > > > >
> > 
> > > > > I also recommend using configuration management (chef/puppet) as they
> > 
> > > > > will prevent you from creating malformed json.
> > 
> > > > >
> > 
> > > > > On Fri, Jun 5, 2015 at 6:31 AM, Srinivas Palle [srini5884@gmail.com](mailto:srini5884@gmail.com)
> > 
> > > > > wrote:
> > 
> > > > > > I am trying to data from sensu to graphite through AMQP handler.
> > 
> > > > > >
> > 
> > > > > > Thanks,
> > 
> > > > > > Srinivas
> > 
> > > > > >
> > 
> > > > > >
> > 
> > > > > >
> > 
> > > > > > On Fri, Jun 5, 2015 at 6:10 PM, Srinivas Palle [srini5884@gmail.com](mailto:srini5884@gmail.com)
> > 
> > > > > > wrote:
> > 
> > > > > > >
> > 
> > > > > > > Here is my config file:
> > 
> > > > > > >
> > 
> > > > > > > AMQP handler configuration:
> > 
> > > > > > >
> > 
> > > > > > > [http://pastebin.com/7WAEALy3](http://pastebin.com/7WAEALy3) :
> > 
> > > > > > >
> > 
> > > > > > > Basic sensu config file:
> > 
> > > > > > >
> > 
> > > > > > > [http://pastebin.com/EkedqsLW](http://pastebin.com/EkedqsLW)
> > 
> > > > > > >
> > 
> > > > > > > Thanks,
> > 
> > > > > > > Srinivas
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > > On Fri, Jun 5, 2015 at 10:08 AM, Kyle Anderson [kyle@xkyle.com](mailto:kyle@xkyle.com) wrote:
> > 
> > > > > > > >
> > 
> > > > > > > > Again, please use a pastebin to share configuration data like this:
> > 
> > > > > > > > [http://pastebin.com/](http://pastebin.com/)
> > 
> > > > > > > > It is impossible to be sure about what your configuration is with
> > 
> > > > > > > > email formatting.
> > 
> > > > > > > >
> > 
> > > > > > > > On Thu, Jun 4, 2015 at 7:08 AM, Srinivas Palle [srini5884@gmail.com](mailto:srini5884@gmail.com)
> > 
> > > > > > > > wrote:
> > 
> > > > > > > > > Below is the sensu config file I have on sensu server"
> > 
> > > > > > > > >
> > 
> > > > > > > > > root@ip-192-168-30-135:/etc/sensu# vi config.json
> > 
> > > > > > > > >
> > 
> > > > > > > > >
> > 
> > > > > > > > > },
> > 
> > > > > > > > >
> > 
> > > > > > > > > “api”: {
> > 
> > > > > > > > >
> > 
> > > > > > > > > ```
> > > > > > > > > "host": "localhost",
> > > > > > > > > 
> > > > > > > > > ```
> > 
> > > > > > > > >
> > 
> > > > > > > > > ```
> > > > > > > > > "port": 4567
> > > > > > > > > 
> > > > > > > > > ```
> > 
> > > > > > > > >
> > 
> > > > > > > > > },
> > 
> > > > > > > > >
> > 
> > > > > > > > > “dashboard”: {
> > 
> > > > > > > > >
> > 
> > > > > > > > > ```
> > > > > > > > > "host": "localhost",
> > > > > > > > > 
> > > > > > > > > ```
> > 
> > > > > > > > >
> > 
> > > > > > > > > ```
> > > > > > > > > "port": 8080,
> > > > > > > > > 
> > > > > > > > > ```
> > 
> > > > > > > > >
> > 
> > > > > > > > > ```
> > > > > > > > > "user": "admin",
> > > > > > > > > 
> > > > > > > > > ```
> > 
> > > > > > > > >
> > 
> > > > > > > > > ```
> > > > > > > > > "password": "secret"
> > > > > > > > > 
> > > > > > > > > ```
> > 
> > > > > > > > >
> > 
> > > > > > > > > },
> > 
> > > > > > > > >
> > 
> > > > > > > > > “handlers”: {
> > 
> > > > > > > > >
> > 
> > > > > > > > > ```
> > > > > > > > > "graphite": {
> > > > > > > > > 
> > > > > > > > > ```
> > 
> > > > > > > > >
> > 
> > > > > > > > > ```
> > > > > > > > > "type": "amqp",
> > > > > > > > > 
> > > > > > > > > ```
> > 
> > > > > > > > >
> > 
> > > > > > > > > ```
> > > > > > > > > "exchange": {
> > > > > > > > > 
> > > > > > > > > ```
> > 
> > > > > > > > >
> > 
> > > > > > > > > ```
> > > > > > > > > "type": "topic",
> > > > > > > > > 
> > > > > > > > > ```
> > 
> > > > > > > > >
> > 
> > > > > > > > > ```
> > > > > > > > > "name": "metrics",
> > > > > > > > > 
> > > > > > > > > ```
> > 
> > > > > > > > >
> > 
> > > > > > > > > ```
> > > > > > > > > "durable": "true"
> > > > > > > > > 
> > > > > > > > > ```
> > 
> > > > > > > > >
> > 
> > > > > > > > > ```
> > > > > > > > > },
> > > > > > > > > 
> > > > > > > > > ```
> > 
> > > > > > > > >
> > 
> > > > > > > > > ```
> > > > > > > > > "mutator": "only_check_output"
> > > > > > > > > 
> > > > > > > > > ```
> > 
> > > > > > > > >
> > 
> > > > > > > > > }
> > 
> > > > > > > > >
> > 
> > > > > > > > > }
> > 
> > > > > > > > >
> > 
> > > > > > > > > }
> > 
> > > > > > > > >
> > 
> > > > > > > > >
> > 
> > > > > > > > > On Thu, Jun 4, 2015 at 7:27 PM, Srinivas Palle
> > 
> > > > > > > > > [srini5884@gmail.com](mailto:srini5884@gmail.com)
> > 
> > > > > > > > > wrote:
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > I Just resolved boolean true value issues, but still am unable to
> > 
> > > > > > > > > > start
> > 
> > > > > > > > > > sensu-server after having below handler in sensu server. can you
> > 
> > > > > > > > > > please
> > 
> > > > > > > > > > explain me if I need to have any handler in plugins to support
> > 
> > > > > > > > > > amqp?
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > {
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > “handlers”: {
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > ```
> > > > > > > > > > "graphite": {
> > > > > > > > > > 
> > > > > > > > > > ```
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > ```
> > > > > > > > > > "type": "amqp",
> > > > > > > > > > 
> > > > > > > > > > ```
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > ```
> > > > > > > > > > "exchange": {
> > > > > > > > > > 
> > > > > > > > > > ```
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > ```
> > > > > > > > > > "type": "topic",
> > > > > > > > > > 
> > > > > > > > > > ```
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > ```
> > > > > > > > > > "name": "metrics",
> > > > > > > > > > 
> > > > > > > > > > ```
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > ```
> > > > > > > > > > "durable": "true"
> > > > > > > > > > 
> > > > > > > > > > ```
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > ```
> > > > > > > > > > },
> > > > > > > > > > 
> > > > > > > > > > ```
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > ```
> > > > > > > > > > "mutator": "only_check_output"
> > > > > > > > > > 
> > > > > > > > > > ```
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > ```
> > > > > > > > > > }
> > > > > > > > > > 
> > > > > > > > > > ```
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > }
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > Below are the errors we are receiving:
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > {“timestamp”:“2015-06-04T10:03:36.567577+0000”,“level”:“warn”,“message”:"config
> > 
> > > > > > > > > > file applied
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > changes",“file”:“/etc/sensu/conf.d/handler\_graphite.json”,“changes”:{“handlers”:{“graphite”:[null,{“host”:“192.168.30.160”,“port”:“2003”,“type”:“amqp”,“exchange”:{“type”:“topic”,“name”:“metrics”,“durable”:“true”},“mutator”:“only\_check\_output”}]}}}
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > {“timestamp”:“2015-06-04T10:03:36.568654+0000”,“level”:“fatal”,“message”:"unknown
> > 
> > > > > > > > > > handler
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > type",“object”:{“host”:“192.168.30.160”,“port”:“2003”,“type”:“amqp”,“exchange”:{“type”:“topic”,“name”:“metrics”,“durable”:“true”},“mutator”:“only\_check\_output”,“name”:“graphite”}}
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > {“timestamp”:“2015-06-04T10:04:18.008631+0000”,“level”:“warn”,“message”:"config
> > 
> > > > > > > > > > file applied
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > changes",“file”:“/etc/sensu/conf.d/check-disk-fail.json”,“changes”:{“checks”:{“diskfail\_check”:[null,{“type”:“amqp”,“command”:“/etc/sensu/plugins/sensu-community-plugins/plugins/system/check-disk-fail.rb”,“interval”:10,“handlers”:[“graphite”],“subscribers”:[“ALL”]}]}}}
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > {“timestamp”:“2015-06-04T10:04:18.009642+0000”,“level”:“warn”,“message”:"config
> > 
> > > > > > > > > > file applied
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > changes",“file”:“/etc/sensu/conf.d/handler\_graphite.json”,“changes”:{“handlers”:{“graphite”:[null,{“type”:“amqp”,“exchange”:{“type”:“topic”,“name”:“metrics”,“durable”:“true”},“mutator”:“only\_check\_output”}]}}}
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > {“timestamp”:“2015-06-04T10:04:18.010737+0000”,“level”:“fatal”,“message”:"unknown
> > 
> > > > > > > > > > handler
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > type",“object”:{“type”:“amqp”,“exchange”:{“type”:“topic”,“name”:“metrics”,“durable”:“true”},“mutator”:“only\_check\_output”,“name”:“graphite”}}
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > {“timestamp”:“2015-06-04T10:53:51.270568+0000”,“level”:“warn”,“message”:"config
> > 
> > > > > > > > > > file applied
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > changes",“file”:“/etc/sensu/conf.d/check-disk-fail.json”,“changes”:{“checks”:{“diskfail\_check”:[null,{“type”:“amqp”,“command”:“/etc/sensu/plugins/sensu-community-plugins/plugins/system/check-disk-fail.rb”,“interval”:10,“handlers”:[“graphite”],“subscribers”:[“ALL”]}]}}}
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > {“timestamp”:“2015-06-04T10:53:51.271562+0000”,“level”:“warn”,“message”:"config
> > 
> > > > > > > > > > file applied
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > changes",“file”:“/etc/sensu/conf.d/handler\_graphite.json”,“changes”:{“handlers”:{“graphite”:[null,{“type”:“amqp”,“exchange”:{“type”:“topic”,“name”:“metrics”,“durable”:“true”},“mutator”:“only\_check\_output”}]}}}
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > {“timestamp”:“2015-06-04T10:53:51.272595+0000”,“level”:“fatal”,“message”:"unknown
> > 
> > > > > > > > > > handler
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > type",“object”:{“type”:“amqp”,“exchange”:{“type”:“topic”,“name”:“metrics”,“durable”:“true”},“mutator”:“only\_check\_output”,“name”:“graphite”}}
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > Thanks,
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > Srinivas
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > On Thu, Jun 4, 2015 at 9:54 AM, Srinivas Palle
> > 
> > > > > > > > > > [srini5884@gmail.com](mailto:srini5884@gmail.com)
> > 
> > > > > > > > > > wrote:
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > > Sure,
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > > Here is my carbon config file…
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > > Thanks,
> > 
> > > > > > > > > > > Srini
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > > On Thursday, June 4, 2015 at 9:13:19 AM UTC+5:30, Kyle Anderson
> > 
> > > > > > > > > > > wrote:
> > 
> > > > > > > > > > > >
> > 
> > > > > > > > > > > > Well, “True” does look like a valid bool for python to me.
> > 
> > > > > > > > > > > > Can you put your carbon config file in a pastebin so I can see
> > 
> > > > > > > > > > > > it
> > 
> > > > > > > > > > > > without email formatting?
> > 
> > > > > > > > > > > >
> > 
> > > > > > > > > > > > On Wed, Jun 3, 2015 at 11:45 AM, Srinivas Palle
> > 
> > > > > > > > > > > > [srin...@gmail.com](mailto:srin...@gmail.com)
> > 
> > > > > > > > > > > > wrote:
> > 
> > > > > > > > > > > > > Hi Kyle,
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > My current sensu - graphite set up is working fine as expected
> > 
> > > > > > > > > > > > > with
> > 
> > > > > > > > > > > > > below
> > 
> > > > > > > > > > > > > exceptions, I ams till unable to send data through AMQP
> > 
> > > > > > > > > > > > > whenever I
> > 
> > > > > > > > > > > > > send data
> > 
> > > > > > > > > > > > > through AMQP carbon-cache gets crashed. Also please advice if
> > 
> > > > > > > > > > > > > below
> > 
> > > > > > > > > > > > > output
> > 
> > > > > > > > > > > > > is good to go with?
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > root@ip-192-168-30-160:/var/log/carbon# tail -f listener.log |
> > 
> > > > > > > > > > > > > grep -i
> > 
> > > > > > > > > > > > > “192.168.30.135”
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > 03/06/2015 18:29:33 :: MetricLineReceiver connection with
> > 
> > > > > > > > > > > > > [192.168.30.135:47814](http://192.168.30.135:47814) established
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > 03/06/2015 18:29:33 :: MetricLineReceiver connection with
> > 
> > > > > > > > > > > > > [192.168.30.135:47814](http://192.168.30.135:47814) closed cleanly
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > 03/06/2015 18:39:44 :: MetricLineReceiver connection with
> > 
> > > > > > > > > > > > > [192.168.30.135:47813](http://192.168.30.135:47813) lost: Connection to the other side was
> > 
> > > > > > > > > > > > > lost
> > 
> > > > > > > > > > > > > in a
> > 
> > > > > > > > > > > > > non-clean fashion: Connection lost.
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > AMQP error:
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > root@ip-192-168-30-160:~# service carbon-cache restart
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > - Restarting Graphite backend daemon carbon-cache
> > 
> > > > > > > > > > > > > Traceback (most recent call last):
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > File “/usr/bin/carbon-cache”, line 32, in
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > ```
> > > > > > > > > > > > > run_twistd_plugin( __file__ )
> > > > > > > > > > > > > 
> > > > > > > > > > > > > ```
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > File “/usr/lib/python2.7/dist-packages/carbon/util.py”, line
> > 
> > > > > > > > > > > > > 90,
> > 
> > > > > > > > > > > > > in
> > 
> > > > > > > > > > > > > run\_twistd\_plugin
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > ```
> > > > > > > > > > > > > config.parseOptions(twistd_options)
> > > > > > > > > > > > > 
> > > > > > > > > > > > > ```
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > File
> > 
> > > > > > > > > > > > > “/usr/lib/python2.7/dist-packages/twisted/application/app.py”,
> > 
> > > > > > > > > > > > > line
> > 
> > > > > > > > > > > > > 604, in parseOptions
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > ```
> > > > > > > > > > > > > usage.Options.parseOptions(self, options)
> > > > > > > > > > > > > 
> > > > > > > > > > > > > ```
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > File
> > 
> > > > > > > > > > > > > “/usr/lib/python2.7/dist-packages/twisted/python/usage.py”,
> > 
> > > > > > > > > > > > > line 266,
> > 
> > > > > > > > > > > > > in parseOptions
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > ```
> > > > > > > > > > > > > self.subOptions.parseOptions(rest)
> > > > > > > > > > > > > 
> > > > > > > > > > > > > ```
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > File
> > 
> > > > > > > > > > > > > “/usr/lib/python2.7/dist-packages/twisted/python/usage.py”,
> > 
> > > > > > > > > > > > > line 276,
> > 
> > > > > > > > > > > > > in parseOptions
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > ```
> > > > > > > > > > > > > self.postOptions()
> > > > > > > > > > > > > 
> > > > > > > > > > > > > ```
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > File “/usr/lib/python2.7/dist-packages/carbon/conf.py”, line
> > 
> > > > > > > > > > > > > 197, in
> > 
> > > > > > > > > > > > > postOptions
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > ```
> > > > > > > > > > > > > program_settings = read_config(program, self)
> > > > > > > > > > > > > 
> > > > > > > > > > > > > ```
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > File “/usr/lib/python2.7/dist-packages/carbon/conf.py”, line
> > 
> > > > > > > > > > > > > 526, in
> > 
> > > > > > > > > > > > > read\_config
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > ```
> > > > > > > > > > > > > settings.readFrom(config, section)
> > > > > > > > > > > > > 
> > > > > > > > > > > > > ```
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > File “/usr/lib/python2.7/dist-packages/carbon/conf.py”, line
> > 
> > > > > > > > > > > > > 146, in
> > 
> > > > > > > > > > > > > readFrom
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > ```
> > > > > > > > > > > > > value = parser.getboolean(section, key)
> > > > > > > > > > > > > 
> > > > > > > > > > > > > ```
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > File “/usr/lib/python2.7/ConfigParser.py”, line 370, in
> > 
> > > > > > > > > > > > > getboolean
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > ```
> > > > > > > > > > > > > raise ValueError, 'Not a boolean: %s' % v
> > > > > > > > > > > > > 
> > > > > > > > > > > > > ```
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > ValueError: Not a boolean: True
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > ENABLE\_AMQP = True
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > AMQP\_HOST = 192.168.30.135
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > AMQP\_PORT = 5672
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > AMQP\_VHOST = /sensu
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > AMQP\_USER = sensu
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > AMQP\_PASSWORD = sensu123
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > AMQP\_EXCHANGE = metrics
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > AMQP\_METRIC\_NAME\_IN\_BODY = True
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > ```
> > > > > > > > > > > > > Thanks,Srini
> > > > > > > > > > > > > 
> > > > > > > > > > > > > ```
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > On Saturday, February 28, 2015 at 4:58:56 AM UTC+5:30,
> > 
> > > > > > > > > > > > > [max2su...@gmail.com](mailto:max2su...@gmail.com)
> > 
> > > > > > > > > > > > > wrote:
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > > Hi,
> > 
> > > > > > > > > > > > > > ```
> > > > > > > > > > > > > > We are facing a problem of not getting any check
> > > > > > > > > > > > > > 
> > > > > > > > > > > > > > ```
> > 
> > > > > > > > > > > > > > “metrics”
> > 
> > > > > > > > > > > > > > response from the client while following the tutorial at link
> > 
> > > > > > > > > > > > > > Adding
> > 
> > > > > > > > > > > > > > a
> > 
> > > > > > > > > > > > > > Metric.
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > > Following are the outputs :-
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > > Server \> tail -f /var/log/sensu/sensu-server.log
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > > {“timestamp”:“2015-02-27T18:23:59.010129-0500”,“level”:“error”,“message”:"unknown
> > 
> > > > > > > > > > > > > > handler",“handler\_name”:“default”}
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > > {“timestamp”:“2015-02-27T18:24:06.362472-0500”,“level”:“info”,“message”:"determining
> > 
> > > > > > > > > > > > > > stale clients"}
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > > {“timestamp”:“2015-02-27T18:24:06.384124-0500”,“level”:“error”,“message”:"unknown
> > 
> > > > > > > > > > > > > > handler",“handler\_name”:“default”}
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > > {“timestamp”:“2015-02-27T18:24:06.386882-0500”,“level”:“error”,“message”:"unknown
> > 
> > > > > > > > > > > > > > handler",“handler\_name”:“default”}
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > > {“timestamp”:“2015-02-27T18:24:06.389126-0500”,“level”:“error”,“message”:"unknown
> > 
> > > > > > > > > > > > > > handler",“handler\_name”:“default”}
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > > {“timestamp”:“2015-02-27T18:24:08.426386-0500”,“level”:“info”,“message”:"publishing
> > 
> > > > > > > > > > > > > > check
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > > request",“payload”:{“name”:“load\_metrics”,“issued”:1425079448,“command”:“load-metrics.rb”},“subscribers”:[“production”]}
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > > Client \> tail -f /var/log/sensu/sensu-client.log
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > > {“timestamp”:“2015-02-27T18:25:37.674068-0500”,“level”:“info”,“message”:"publishing
> > 
> > > > > > > > > > > > > > check
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > > result",“payload”:{“client”:“sensu-client.25.max2”,“check”:{“name”:“load\_metrics”,“issued”:1425079538,“command”:“load-metrics.rb”,“executed”:1425079537,“duration”:0.172,“output”:"Dev.load\_avg.one
> > 
> > > > > > > > > > > > > > 0.13 1425079537\nDev.load\_avg.five 0.12
> > 
> > > > > > > > > > > > > > 1425079537\nDev.load\_avg.fifteen
> > 
> > > > > > > > > > > > > > 0.22 1425079537\n\n",“status”:0}}}
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > > What are the configs that we are missing ?
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > > Thanks:-
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > >
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > >
> > 
> > > >
> > 
> > > >
> > 
> > >

---

<div class="post-metadata">

**Author:** ![Srinivas\_Palle](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@Srinivas\_Palle](https://discourse.sensu.io/u/Srinivas_Palle)\
**Post date:** [June 5, 2015, 3:06pm UTC](https://discourse.sensu.io/t/sensu-client-not-sending-metrics-data-to-the-server/379/30 "2015-06-05T15:06:52Z")

</div>

Now I removed mutators in handler config file but still I get error as unknown handler:

> **···**
>
> On Fri, Jun 5, 2015 at 8:32 PM, Srinivas Palle [srini5884@gmail.com](mailto:srini5884@gmail.com) wrote:
> 
> > It shows same error as below, am really confused how to set handler config properly now, I just used doc [http://www.joemiller.me/2012/02/02/sensu-and-graphite/](http://www.joemiller.me/2012/02/02/sensu-and-graphite/) to configure amqp handler.
> 
> > Can you please help me from where I can download mutated.rb plugin?
> 
> > 
> 
> > {“timestamp”:“2015-06-05T14:55:40.452325+0000”,“level”:“fatal”,“message”:“unknown handler type”,“object”:{“type”:“amqp”,“exchange”:{“type”:“topic”,“name”:“metrics”,“durable”:“true”},“mutator”:“only\_check\_output”,“name”:“graphite”}}
> 
> > {“timestamp”:“2015-06-05T14:55:40.452387+0000”,“level”:“fatal”,“message”:“SENSU NOT RUNNING!”}
> 
> On Fri, Jun 5, 2015 at 8:29 PM, Kyle Anderson [kyle@xkyle.com](mailto:kyle@xkyle.com) wrote:
> 
> > Yes, but the config file is also an issue, and is what the last log is
> > 
> > trying to say.
> > 
> > missing mutator.rb would probably be your next error, but it would be
> > 
> > a more obvious “file not found” or something.
> > 
> > On Fri, Jun 5, 2015 at 7:57 AM, Srinivas Palle [srini5884@gmail.com](mailto:srini5884@gmail.com) wrote:
> > 
> > > I missed having mutated.rb plugin in sensu server, can this be an issue
> > 
> > > here?
> > 
> > > 
> > 
> > > On Fri, Jun 5, 2015 at 8:22 PM, Srinivas Palle [srini5884@gmail.com](mailto:srini5884@gmail.com) wrote:
> > 
> > > >
> > 
> > > > My apologies I ensure to reply all henceforth.
> > 
> > > >
> > 
> > > > On Fri, Jun 5, 2015 at 8:05 PM, Kyle Anderson [kyle@xkyle.com](mailto:kyle@xkyle.com) wrote:
> > 
> > > > >
> > 
> > > > > Again, please email the entire group and not me personally. It allow
> > 
> > > > > others to help if they know.
> > 
> > > > > I will no longer reply-back to your personal emails.
> > 
> > > > >
> > 
> > > > > The error that sensu has:
> > 
> > > > >
> > 
> > > > > {“timestamp”:“2015-06-04T10:53:51.272595+0000”,“level”:“fatal”,“message”:"unknown
> > 
> > > > > handler
> > 
> > > > > type",“object”:{“type”:“amqp”,“exchange”:{“type”:“topic”,“name”:“metrics”,“durable”:“true”},“mutator”:“only\_check\_output”,“name”:“graphite”}}
> > 
> > > > >
> > 
> > > > > Comes from the mutator section of the handler config:
> > 
> > > > > [http://pastebin.com/7WAEALy3](http://pastebin.com/7WAEALy3)
> > 
> > > > >
> > 
> > > > > Here are the docs on how to define mutators:
> > 
> > > > > [https://sensuapp.org/docs/latest/mutators](https://sensuapp.org/docs/latest/mutators)
> > 
> > > > >
> > 
> > > > > It has to be in its own block, it cannot be in the “Handlers” section,
> > 
> > > > > and cannot be in the graphite section.
> > 
> > > > >
> > 
> > > > > I also recommend using configuration management (chef/puppet) as they
> > 
> > > > > will prevent you from creating malformed json.
> > 
> > > > >
> > 
> > > > > On Fri, Jun 5, 2015 at 6:31 AM, Srinivas Palle [srini5884@gmail.com](mailto:srini5884@gmail.com)
> > 
> > > > > wrote:
> > 
> > > > > > I am trying to data from sensu to graphite through AMQP handler.
> > 
> > > > > >
> > 
> > > > > > Thanks,
> > 
> > > > > > Srinivas
> > 
> > > > > >
> > 
> > > > > >
> > 
> > > > > >
> > 
> > > > > > On Fri, Jun 5, 2015 at 6:10 PM, Srinivas Palle [srini5884@gmail.com](mailto:srini5884@gmail.com)
> > 
> > > > > > wrote:
> > 
> > > > > > >
> > 
> > > > > > > Here is my config file:
> > 
> > > > > > >
> > 
> > > > > > > AMQP handler configuration:
> > 
> > > > > > >
> > 
> > > > > > > [http://pastebin.com/7WAEALy3](http://pastebin.com/7WAEALy3) :
> > 
> > > > > > >
> > 
> > > > > > > Basic sensu config file:
> > 
> > > > > > >
> > 
> > > > > > > [http://pastebin.com/EkedqsLW](http://pastebin.com/EkedqsLW)
> > 
> > > > > > >
> > 
> > > > > > > Thanks,
> > 
> > > > > > > Srinivas
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > > > On Fri, Jun 5, 2015 at 10:08 AM, Kyle Anderson [kyle@xkyle.com](mailto:kyle@xkyle.com) wrote:
> > 
> > > > > > > >
> > 
> > > > > > > > Again, please use a pastebin to share configuration data like this:
> > 
> > > > > > > > [http://pastebin.com/](http://pastebin.com/)
> > 
> > > > > > > > It is impossible to be sure about what your configuration is with
> > 
> > > > > > > > email formatting.
> > 
> > > > > > > >
> > 
> > > > > > > > On Thu, Jun 4, 2015 at 7:08 AM, Srinivas Palle [srini5884@gmail.com](mailto:srini5884@gmail.com)
> > 
> > > > > > > > wrote:
> > 
> > > > > > > > > Below is the sensu config file I have on sensu server"
> > 
> > > > > > > > >
> > 
> > > > > > > > > root@ip-192-168-30-135:/etc/sensu# vi config.json
> > 
> > > > > > > > >
> > 
> > > > > > > > >
> > 
> > > > > > > > > },
> > 
> > > > > > > > >
> > 
> > > > > > > > > “api”: {
> > 
> > > > > > > > >
> > 
> > > > > > > > > ```
> > > > > > > > > "host": "localhost",
> > > > > > > > > 
> > > > > > > > > ```
> > 
> > > > > > > > >
> > 
> > > > > > > > > ```
> > > > > > > > > "port": 4567
> > > > > > > > > 
> > > > > > > > > ```
> > 
> > > > > > > > >
> > 
> > > > > > > > > },
> > 
> > > > > > > > >
> > 
> > > > > > > > > “dashboard”: {
> > 
> > > > > > > > >
> > 
> > > > > > > > > ```
> > > > > > > > > "host": "localhost",
> > > > > > > > > 
> > > > > > > > > ```
> > 
> > > > > > > > >
> > 
> > > > > > > > > ```
> > > > > > > > > "port": 8080,
> > > > > > > > > 
> > > > > > > > > ```
> > 
> > > > > > > > >
> > 
> > > > > > > > > ```
> > > > > > > > > "user": "admin",
> > > > > > > > > 
> > > > > > > > > ```
> > 
> > > > > > > > >
> > 
> > > > > > > > > ```
> > > > > > > > > "password": "secret"
> > > > > > > > > 
> > > > > > > > > ```
> > 
> > > > > > > > >
> > 
> > > > > > > > > },
> > 
> > > > > > > > >
> > 
> > > > > > > > > “handlers”: {
> > 
> > > > > > > > >
> > 
> > > > > > > > > ```
> > > > > > > > > "graphite": {
> > > > > > > > > 
> > > > > > > > > ```
> > 
> > > > > > > > >
> > 
> > > > > > > > > ```
> > > > > > > > > "type": "amqp",
> > > > > > > > > 
> > > > > > > > > ```
> > 
> > > > > > > > >
> > 
> > > > > > > > > ```
> > > > > > > > > "exchange": {
> > > > > > > > > 
> > > > > > > > > ```
> > 
> > > > > > > > >
> > 
> > > > > > > > > ```
> > > > > > > > > "type": "topic",
> > > > > > > > > 
> > > > > > > > > ```
> > 
> > > > > > > > >
> > 
> > > > > > > > > ```
> > > > > > > > > "name": "metrics",
> > > > > > > > > 
> > > > > > > > > ```
> > 
> > > > > > > > >
> > 
> > > > > > > > > ```
> > > > > > > > > "durable": "true"
> > > > > > > > > 
> > > > > > > > > ```
> > 
> > > > > > > > >
> > 
> > > > > > > > > ```
> > > > > > > > > },
> > > > > > > > > 
> > > > > > > > > ```
> > 
> > > > > > > > >
> > 
> > > > > > > > > ```
> > > > > > > > > "mutator": "only_check_output"
> > > > > > > > > 
> > > > > > > > > ```
> > 
> > > > > > > > >
> > 
> > > > > > > > > }
> > 
> > > > > > > > >
> > 
> > > > > > > > > }
> > 
> > > > > > > > >
> > 
> > > > > > > > > }
> > 
> > > > > > > > >
> > 
> > > > > > > > >
> > 
> > > > > > > > > On Thu, Jun 4, 2015 at 7:27 PM, Srinivas Palle
> > 
> > > > > > > > > [srini5884@gmail.com](mailto:srini5884@gmail.com)
> > 
> > > > > > > > > wrote:
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > I Just resolved boolean true value issues, but still am unable to
> > 
> > > > > > > > > > start
> > 
> > > > > > > > > > sensu-server after having below handler in sensu server. can you
> > 
> > > > > > > > > > please
> > 
> > > > > > > > > > explain me if I need to have any handler in plugins to support
> > 
> > > > > > > > > > amqp?
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > {
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > “handlers”: {
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > ```
> > > > > > > > > > "graphite": {
> > > > > > > > > > 
> > > > > > > > > > ```
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > ```
> > > > > > > > > > "type": "amqp",
> > > > > > > > > > 
> > > > > > > > > > ```
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > ```
> > > > > > > > > > "exchange": {
> > > > > > > > > > 
> > > > > > > > > > ```
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > ```
> > > > > > > > > > "type": "topic",
> > > > > > > > > > 
> > > > > > > > > > ```
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > ```
> > > > > > > > > > "name": "metrics",
> > > > > > > > > > 
> > > > > > > > > > ```
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > ```
> > > > > > > > > > "durable": "true"
> > > > > > > > > > 
> > > > > > > > > > ```
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > ```
> > > > > > > > > > },
> > > > > > > > > > 
> > > > > > > > > > ```
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > ```
> > > > > > > > > > "mutator": "only_check_output"
> > > > > > > > > > 
> > > > > > > > > > ```
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > ```
> > > > > > > > > > }
> > > > > > > > > > 
> > > > > > > > > > ```
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > }
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > Below are the errors we are receiving:
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > {“timestamp”:“2015-06-04T10:03:36.567577+0000”,“level”:“warn”,“message”:"config
> > 
> > > > > > > > > > file applied
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > changes",“file”:“/etc/sensu/conf.d/handler\_graphite.json”,“changes”:{“handlers”:{“graphite”:[null,{“host”:“192.168.30.160”,“port”:“2003”,“type”:“amqp”,“exchange”:{“type”:“topic”,“name”:“metrics”,“durable”:“true”},“mutator”:“only\_check\_output”}]}}}
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > {“timestamp”:“2015-06-04T10:03:36.568654+0000”,“level”:“fatal”,“message”:"unknown
> > 
> > > > > > > > > > handler
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > type",“object”:{“host”:“192.168.30.160”,“port”:“2003”,“type”:“amqp”,“exchange”:{“type”:“topic”,“name”:“metrics”,“durable”:“true”},“mutator”:“only\_check\_output”,“name”:“graphite”}}
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > {“timestamp”:“2015-06-04T10:04:18.008631+0000”,“level”:“warn”,“message”:"config
> > 
> > > > > > > > > > file applied
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > changes",“file”:“/etc/sensu/conf.d/check-disk-fail.json”,“changes”:{“checks”:{“diskfail\_check”:[null,{“type”:“amqp”,“command”:“/etc/sensu/plugins/sensu-community-plugins/plugins/system/check-disk-fail.rb”,“interval”:10,“handlers”:[“graphite”],“subscribers”:[“ALL”]}]}}}
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > {“timestamp”:“2015-06-04T10:04:18.009642+0000”,“level”:“warn”,“message”:"config
> > 
> > > > > > > > > > file applied
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > changes",“file”:“/etc/sensu/conf.d/handler\_graphite.json”,“changes”:{“handlers”:{“graphite”:[null,{“type”:“amqp”,“exchange”:{“type”:“topic”,“name”:“metrics”,“durable”:“true”},“mutator”:“only\_check\_output”}]}}}
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > {“timestamp”:“2015-06-04T10:04:18.010737+0000”,“level”:“fatal”,“message”:"unknown
> > 
> > > > > > > > > > handler
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > type",“object”:{“type”:“amqp”,“exchange”:{“type”:“topic”,“name”:“metrics”,“durable”:“true”},“mutator”:“only\_check\_output”,“name”:“graphite”}}
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > {“timestamp”:“2015-06-04T10:53:51.270568+0000”,“level”:“warn”,“message”:"config
> > 
> > > > > > > > > > file applied
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > changes",“file”:“/etc/sensu/conf.d/check-disk-fail.json”,“changes”:{“checks”:{“diskfail\_check”:[null,{“type”:“amqp”,“command”:“/etc/sensu/plugins/sensu-community-plugins/plugins/system/check-disk-fail.rb”,“interval”:10,“handlers”:[“graphite”],“subscribers”:[“ALL”]}]}}}
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > {“timestamp”:“2015-06-04T10:53:51.271562+0000”,“level”:“warn”,“message”:"config
> > 
> > > > > > > > > > file applied
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > changes",“file”:“/etc/sensu/conf.d/handler\_graphite.json”,“changes”:{“handlers”:{“graphite”:[null,{“type”:“amqp”,“exchange”:{“type”:“topic”,“name”:“metrics”,“durable”:“true”},“mutator”:“only\_check\_output”}]}}}
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > {“timestamp”:“2015-06-04T10:53:51.272595+0000”,“level”:“fatal”,“message”:"unknown
> > 
> > > > > > > > > > handler
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > type",“object”:{“type”:“amqp”,“exchange”:{“type”:“topic”,“name”:“metrics”,“durable”:“true”},“mutator”:“only\_check\_output”,“name”:“graphite”}}
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > Thanks,
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > Srinivas
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > > On Thu, Jun 4, 2015 at 9:54 AM, Srinivas Palle
> > 
> > > > > > > > > > [srini5884@gmail.com](mailto:srini5884@gmail.com)
> > 
> > > > > > > > > > wrote:
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > > Sure,
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > > Here is my carbon config file…
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > > Thanks,
> > 
> > > > > > > > > > > Srini
> > 
> > > > > > > > > > >
> > 
> > > > > > > > > > > On Thursday, June 4, 2015 at 9:13:19 AM UTC+5:30, Kyle Anderson
> > 
> > > > > > > > > > > wrote:
> > 
> > > > > > > > > > > >
> > 
> > > > > > > > > > > > Well, “True” does look like a valid bool for python to me.
> > 
> > > > > > > > > > > > Can you put your carbon config file in a pastebin so I can see
> > 
> > > > > > > > > > > > it
> > 
> > > > > > > > > > > > without email formatting?
> > 
> > > > > > > > > > > >
> > 
> > > > > > > > > > > > On Wed, Jun 3, 2015 at 11:45 AM, Srinivas Palle
> > 
> > > > > > > > > > > > [srin...@gmail.com](mailto:srin...@gmail.com)
> > 
> > > > > > > > > > > > wrote:
> > 
> > > > > > > > > > > > > Hi Kyle,
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > My current sensu - graphite set up is working fine as expected
> > 
> > > > > > > > > > > > > with
> > 
> > > > > > > > > > > > > below
> > 
> > > > > > > > > > > > > exceptions, I ams till unable to send data through AMQP
> > 
> > > > > > > > > > > > > whenever I
> > 
> > > > > > > > > > > > > send data
> > 
> > > > > > > > > > > > > through AMQP carbon-cache gets crashed. Also please advice if
> > 
> > > > > > > > > > > > > below
> > 
> > > > > > > > > > > > > output
> > 
> > > > > > > > > > > > > is good to go with?
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > root@ip-192-168-30-160:/var/log/carbon# tail -f listener.log |
> > 
> > > > > > > > > > > > > grep -i
> > 
> > > > > > > > > > > > > “192.168.30.135”
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > 03/06/2015 18:29:33 :: MetricLineReceiver connection with
> > 
> > > > > > > > > > > > > [192.168.30.135:47814](http://192.168.30.135:47814) established
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > 03/06/2015 18:29:33 :: MetricLineReceiver connection with
> > 
> > > > > > > > > > > > > [192.168.30.135:47814](http://192.168.30.135:47814) closed cleanly
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > 03/06/2015 18:39:44 :: MetricLineReceiver connection with
> > 
> > > > > > > > > > > > > [192.168.30.135:47813](http://192.168.30.135:47813) lost: Connection to the other side was
> > 
> > > > > > > > > > > > > lost
> > 
> > > > > > > > > > > > > in a
> > 
> > > > > > > > > > > > > non-clean fashion: Connection lost.
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > AMQP error:
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > root@ip-192-168-30-160:~# service carbon-cache restart
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > - Restarting Graphite backend daemon carbon-cache
> > 
> > > > > > > > > > > > > Traceback (most recent call last):
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > File “/usr/bin/carbon-cache”, line 32, in
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > ```
> > > > > > > > > > > > > run_twistd_plugin( __file__ )
> > > > > > > > > > > > > 
> > > > > > > > > > > > > ```
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > File “/usr/lib/python2.7/dist-packages/carbon/util.py”, line
> > 
> > > > > > > > > > > > > 90,
> > 
> > > > > > > > > > > > > in
> > 
> > > > > > > > > > > > > run\_twistd\_plugin
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > ```
> > > > > > > > > > > > > config.parseOptions(twistd_options)
> > > > > > > > > > > > > 
> > > > > > > > > > > > > ```
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > File
> > 
> > > > > > > > > > > > > “/usr/lib/python2.7/dist-packages/twisted/application/app.py”,
> > 
> > > > > > > > > > > > > line
> > 
> > > > > > > > > > > > > 604, in parseOptions
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > ```
> > > > > > > > > > > > > usage.Options.parseOptions(self, options)
> > > > > > > > > > > > > 
> > > > > > > > > > > > > ```
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > File
> > 
> > > > > > > > > > > > > “/usr/lib/python2.7/dist-packages/twisted/python/usage.py”,
> > 
> > > > > > > > > > > > > line 266,
> > 
> > > > > > > > > > > > > in parseOptions
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > ```
> > > > > > > > > > > > > self.subOptions.parseOptions(rest)
> > > > > > > > > > > > > 
> > > > > > > > > > > > > ```
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > File
> > 
> > > > > > > > > > > > > “/usr/lib/python2.7/dist-packages/twisted/python/usage.py”,
> > 
> > > > > > > > > > > > > line 276,
> > 
> > > > > > > > > > > > > in parseOptions
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > ```
> > > > > > > > > > > > > self.postOptions()
> > > > > > > > > > > > > 
> > > > > > > > > > > > > ```
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > File “/usr/lib/python2.7/dist-packages/carbon/conf.py”, line
> > 
> > > > > > > > > > > > > 197, in
> > 
> > > > > > > > > > > > > postOptions
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > ```
> > > > > > > > > > > > > program_settings = read_config(program, self)
> > > > > > > > > > > > > 
> > > > > > > > > > > > > ```
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > File “/usr/lib/python2.7/dist-packages/carbon/conf.py”, line
> > 
> > > > > > > > > > > > > 526, in
> > 
> > > > > > > > > > > > > read\_config
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > ```
> > > > > > > > > > > > > settings.readFrom(config, section)
> > > > > > > > > > > > > 
> > > > > > > > > > > > > ```
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > File “/usr/lib/python2.7/dist-packages/carbon/conf.py”, line
> > 
> > > > > > > > > > > > > 146, in
> > 
> > > > > > > > > > > > > readFrom
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > ```
> > > > > > > > > > > > > value = parser.getboolean(section, key)
> > > > > > > > > > > > > 
> > > > > > > > > > > > > ```
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > File “/usr/lib/python2.7/ConfigParser.py”, line 370, in
> > 
> > > > > > > > > > > > > getboolean
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > ```
> > > > > > > > > > > > > raise ValueError, 'Not a boolean: %s' % v
> > > > > > > > > > > > > 
> > > > > > > > > > > > > ```
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > ValueError: Not a boolean: True
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > ENABLE\_AMQP = True
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > AMQP\_HOST = 192.168.30.135
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > AMQP\_PORT = 5672
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > AMQP\_VHOST = /sensu
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > AMQP\_USER = sensu
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > AMQP\_PASSWORD = sensu123
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > AMQP\_EXCHANGE = metrics
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > AMQP\_METRIC\_NAME\_IN\_BODY = True
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > ```
> > > > > > > > > > > > > Thanks,Srini
> > > > > > > > > > > > > 
> > > > > > > > > > > > > ```
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > On Saturday, February 28, 2015 at 4:58:56 AM UTC+5:30,
> > 
> > > > > > > > > > > > > [max2su...@gmail.com](mailto:max2su...@gmail.com)
> > 
> > > > > > > > > > > > > wrote:
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > > Hi,
> > 
> > > > > > > > > > > > > > ```
> > > > > > > > > > > > > > We are facing a problem of not getting any check
> > > > > > > > > > > > > > 
> > > > > > > > > > > > > > ```
> > 
> > > > > > > > > > > > > > “metrics”
> > 
> > > > > > > > > > > > > > response from the client while following the tutorial at link
> > 
> > > > > > > > > > > > > > Adding
> > 
> > > > > > > > > > > > > > a
> > 
> > > > > > > > > > > > > > Metric.
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > > Following are the outputs :-
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > > Server \> tail -f /var/log/sensu/sensu-server.log
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > > {“timestamp”:“2015-02-27T18:23:59.010129-0500”,“level”:“error”,“message”:"unknown
> > 
> > > > > > > > > > > > > > handler",“handler\_name”:“default”}
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > > {“timestamp”:“2015-02-27T18:24:06.362472-0500”,“level”:“info”,“message”:"determining
> > 
> > > > > > > > > > > > > > stale clients"}
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > > {“timestamp”:“2015-02-27T18:24:06.384124-0500”,“level”:“error”,“message”:"unknown
> > 
> > > > > > > > > > > > > > handler",“handler\_name”:“default”}
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > > {“timestamp”:“2015-02-27T18:24:06.386882-0500”,“level”:“error”,“message”:"unknown
> > 
> > > > > > > > > > > > > > handler",“handler\_name”:“default”}
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > > {“timestamp”:“2015-02-27T18:24:06.389126-0500”,“level”:“error”,“message”:"unknown
> > 
> > > > > > > > > > > > > > handler",“handler\_name”:“default”}
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > > {“timestamp”:“2015-02-27T18:24:08.426386-0500”,“level”:“info”,“message”:"publishing
> > 
> > > > > > > > > > > > > > check
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > > request",“payload”:{“name”:“load\_metrics”,“issued”:1425079448,“command”:“load-metrics.rb”},“subscribers”:[“production”]}
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > > Client \> tail -f /var/log/sensu/sensu-client.log
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > > {“timestamp”:“2015-02-27T18:25:37.674068-0500”,“level”:“info”,“message”:"publishing
> > 
> > > > > > > > > > > > > > check
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > > result",“payload”:{“client”:“sensu-client.25.max2”,“check”:{“name”:“load\_metrics”,“issued”:1425079538,“command”:“load-metrics.rb”,“executed”:1425079537,“duration”:0.172,“output”:"Dev.load\_avg.one
> > 
> > > > > > > > > > > > > > 0.13 1425079537\nDev.load\_avg.five 0.12
> > 
> > > > > > > > > > > > > > 1425079537\nDev.load\_avg.fifteen
> > 
> > > > > > > > > > > > > > 0.22 1425079537\n\n",“status”:0}}}
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > > What are the configs that we are missing ?
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > > > Thanks:-
> > 
> > > > > > > > > > > > > >
> > 
> > > > > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > > >
> > 
> > > > > > > > >
> > 
> > > > > > >
> > 
> > > > > > >
> > 
> > > > > >
> > 
> > > >
> > 
> > > >
> > 
> > >

---

<div class="post-metadata">

**Author:** ![Srinivas\_Palle](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@Srinivas\_Palle](https://discourse.sensu.io/u/Srinivas_Palle)\
**Post date:** [June 8, 2015, 3:49pm UTC](https://discourse.sensu.io/t/sensu-client-not-sending-metrics-data-to-the-server/379/31 "2015-06-08T15:49:27Z")

</div>

Any update please?

Do sensu opensource supports sending data to graphite through AMQP? I am just waiting to have handler and mutator which supports handler to post data through AMQP.

Can someone please share if you have those details?

Thanks,

Srini

> **···**
>
> On Thu, Jun 4, 2015 at 9:13 AM, Kyle Anderson [kyle@xkyle.com](mailto:kyle@xkyle.com) wrote:
> 
> > Well, “True” does look like a valid bool for python to me.
> > 
> > Can you put your carbon config file in a pastebin so I can see it
> > 
> > without email formatting?
> > 
> > On Wed, Jun 3, 2015 at 11:45 AM, Srinivas Palle [srini5884@gmail.com](mailto:srini5884@gmail.com) wrote:
> > 
> > > Hi Kyle,
> > 
> > > 
> > 
> > > My current sensu - graphite set up is working fine as expected with below
> > 
> > > exceptions, I ams till unable to send data through AMQP whenever I send data
> > 
> > > through AMQP carbon-cache gets crashed. Also please advice if below output
> > 
> > > is good to go with?
> > 
> > > 
> > 
> > > root@ip-192-168-30-160:/var/log/carbon# tail -f listener.log | grep -i
> > 
> > > “192.168.30.135”
> > 
> > > 
> > 
> > > 03/06/2015 18:29:33 :: MetricLineReceiver connection with
> > 
> > > [192.168.30.135:47814](http://192.168.30.135:47814) established
> > 
> > > 
> > 
> > > 03/06/2015 18:29:33 :: MetricLineReceiver connection with
> > 
> > > [192.168.30.135:47814](http://192.168.30.135:47814) closed cleanly
> > 
> > > 
> > 
> > > 03/06/2015 18:39:44 :: MetricLineReceiver connection with
> > 
> > > [192.168.30.135:47813](http://192.168.30.135:47813) lost: Connection to the other side was lost in a
> > 
> > > non-clean fashion: Connection lost.
> > 
> > > 
> > 
> > > 
> > 
> > > 
> > 
> > > AMQP error:
> > 
> > > 
> > 
> > > 
> > 
> > > root@ip-192-168-30-160:~# service carbon-cache restart
> > 
> > > 
> > 
> > > - Restarting Graphite backend daemon carbon-cache
> > 
> > > Traceback (most recent call last):
> > 
> > > 
> > 
> > > File “/usr/bin/carbon-cache”, line 32, in
> > 
> > > 
> > 
> > > ```
> > > run_twistd_plugin( __file__ )
> > > 
> > > ```
> > 
> > > 
> > 
> > > File “/usr/lib/python2.7/dist-packages/carbon/util.py”, line 90, in
> > 
> > > run\_twistd\_plugin
> > 
> > > 
> > 
> > > ```
> > > config.parseOptions(twistd_options)
> > > 
> > > ```
> > 
> > > 
> > 
> > > File “/usr/lib/python2.7/dist-packages/twisted/application/app.py”, line
> > 
> > > 604, in parseOptions
> > 
> > > 
> > 
> > > ```
> > > usage.Options.parseOptions(self, options)
> > > 
> > > ```
> > 
> > > 
> > 
> > > File “/usr/lib/python2.7/dist-packages/twisted/python/usage.py”, line 266,
> > 
> > > in parseOptions
> > 
> > > 
> > 
> > > ```
> > > self.subOptions.parseOptions(rest)
> > > 
> > > ```
> > 
> > > 
> > 
> > > File “/usr/lib/python2.7/dist-packages/twisted/python/usage.py”, line 276,
> > 
> > > in parseOptions
> > 
> > > 
> > 
> > > ```
> > > self.postOptions()
> > > 
> > > ```
> > 
> > > 
> > 
> > > File “/usr/lib/python2.7/dist-packages/carbon/conf.py”, line 197, in
> > 
> > > postOptions
> > 
> > > 
> > 
> > > ```
> > > program_settings = read_config(program, self)
> > > 
> > > ```
> > 
> > > 
> > 
> > > File “/usr/lib/python2.7/dist-packages/carbon/conf.py”, line 526, in
> > 
> > > read\_config
> > 
> > > 
> > 
> > > ```
> > > settings.readFrom(config, section)
> > > 
> > > ```
> > 
> > > 
> > 
> > > File “/usr/lib/python2.7/dist-packages/carbon/conf.py”, line 146, in
> > 
> > > readFrom
> > 
> > > 
> > 
> > > ```
> > > value = parser.getboolean(section, key)
> > > 
> > > ```
> > 
> > > 
> > 
> > > File “/usr/lib/python2.7/ConfigParser.py”, line 370, in getboolean
> > 
> > > 
> > 
> > > ```
> > > raise ValueError, 'Not a boolean: %s' % v
> > > 
> > > ```
> > 
> > > 
> > 
> > > ValueError: Not a boolean: True
> > 
> > > 
> > 
> > > ENABLE\_AMQP = True
> > 
> > > 
> > 
> > > AMQP\_HOST = 192.168.30.135
> > 
> > > 
> > 
> > > AMQP\_PORT = 5672
> > 
> > > 
> > 
> > > AMQP\_VHOST = /sensu
> > 
> > > 
> > 
> > > AMQP\_USER = sensu
> > 
> > > 
> > 
> > > AMQP\_PASSWORD = sensu123
> > 
> > > 
> > 
> > > AMQP\_EXCHANGE = metrics
> > 
> > > 
> > 
> > > AMQP\_METRIC\_NAME\_IN\_BODY = True
> > 
> > > 
> > 
> > > ```
> > > Thanks,Srini
> > > 
> > > ```
> > 
> > > 
> > 
> > > 
> > 
> > > On Saturday, February 28, 2015 at 4:58:56 AM UTC+5:30, [max2su...@gmail.com](mailto:max2su...@gmail.com)
> > 
> > > wrote:
> > 
> > > >
> > 
> > > > Hi,
> > 
> > > > ```
> > > > We are facing a problem of not getting any check "metrics"
> > > > 
> > > > ```
> > 
> > > > response from the client while following the tutorial at link Adding a
> > 
> > > > Metric.
> > 
> > > >
> > 
> > > > Following are the outputs :-
> > 
> > > >
> > 
> > > > Server \> tail -f /var/log/sensu/sensu-server.log
> > 
> > > >
> > 
> > > >
> > 
> > > > {“timestamp”:“2015-02-27T18:23:59.010129-0500”,“level”:“error”,“message”:"unknown
> > 
> > > > handler",“handler\_name”:“default”}
> > 
> > > >
> > 
> > > > {“timestamp”:“2015-02-27T18:24:06.362472-0500”,“level”:“info”,“message”:"determining
> > 
> > > > stale clients"}
> > 
> > > >
> > 
> > > > {“timestamp”:“2015-02-27T18:24:06.384124-0500”,“level”:“error”,“message”:"unknown
> > 
> > > > handler",“handler\_name”:“default”}
> > 
> > > >
> > 
> > > > {“timestamp”:“2015-02-27T18:24:06.386882-0500”,“level”:“error”,“message”:"unknown
> > 
> > > > handler",“handler\_name”:“default”}
> > 
> > > >
> > 
> > > > {“timestamp”:“2015-02-27T18:24:06.389126-0500”,“level”:“error”,“message”:"unknown
> > 
> > > > handler",“handler\_name”:“default”}
> > 
> > > >
> > 
> > > > {“timestamp”:“2015-02-27T18:24:08.426386-0500”,“level”:“info”,“message”:"publishing
> > 
> > > > check
> > 
> > > > request",“payload”:{“name”:“load\_metrics”,“issued”:1425079448,“command”:“load-metrics.rb”},“subscribers”:[“production”]}
> > 
> > > >
> > 
> > > >
> > 
> > > > Client \> tail -f /var/log/sensu/sensu-client.log
> > 
> > > >
> > 
> > > >
> > 
> > > > {“timestamp”:“2015-02-27T18:25:37.674068-0500”,“level”:“info”,“message”:"publishing
> > 
> > > > check
> > 
> > > > result",“payload”:{“client”:“sensu-client.25.max2”,“check”:{“name”:“load\_metrics”,“issued”:1425079538,“command”:“load-metrics.rb”,“executed”:1425079537,“duration”:0.172,“output”:"Dev.load\_avg.one
> > 
> > > > 0.13 1425079537\nDev.load\_avg.five 0.12 1425079537\nDev.load\_avg.fifteen
> > 
> > > > 0.22 1425079537\n\n",“status”:0}}}
> > 
> > > >
> > 
> > > >
> > 
> > > > What are the configs that we are missing ?
> > 
> > > >
> > 
> > > > Thanks:-
> > 
> > > >
> > 
> > >

[Previous page](https://discourse.sensu.io/t/sensu-client-not-sending-metrics-data-to-the-server/379.md?page=1)
