graphite plain text output from sensu

Asked by kumar

Hi ,

I need to send plain-text to graphite from sensu.
I have sensu-plugin for cpu check(https://github.com/sensu-plugins/sensu-plugins-cpu-checks/blob/master/bin/check-cpu.rb) and the output is plaintext as below

"CheckCPU TOTAL OK: total=0.0 user=0.0 nice=0.0 system=0.0 idle=100.0 iowait=0.0 irq=0.0 softirq=0.0 steal=0.0 guest=0.0" which can be seen in Uchiwa.

Now I need to push above output to graphite in plain text format,so it can be viewed in graph .Created json file as below in sensu server:

{
  "checks": {
    "CpuPlain": {
      "command": " /usr/bin/env /etc/sensu/plugins/check-cpu.rb",
     "handlers": ["graphite"],
    "output_format": "graphite_plaintext",
     "interval": 30,
      "subscribers": [
        "default"
      ]
    }
  }
}

Issue is :
1. how to provide tree structure in graphite with the above json file
2. how to parse the output to graphite in plaintext

Request to help me out.
Thanks in advance

Question information

Language:
English Edit question
Status:
Expired
For:
Graphite Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
kumar (dvrkittu) said :
#2

HI,

Please help me .

Revision history for this message
Denis Zhdanov (deniszhdanov) said :
#3

Hi Kumar,

Unfortunately it's not Graphite problem, it's Sensu one.

Revision history for this message
Launchpad Janitor (janitor) said :
#4

This question was expired because it remained in the 'Open' state without activity for the last 15 days.