Graph NRPE command with graphite

I implemented a NRPE command on icinga, it works good and it gives me a ‘rasonably’ long output:

Name/Username Host Mask Port Status Description
0 iax2 peers [0 online, 0 offline, 0 unmonitored]
–END COMMAND–

I would like to extract a specific number (the 0 before iax2) and use it as value to graph on graphite.

Is there a way to accomplish this?

Thanks in advance
AB

Hi,

you could write/use a plugin wrapper script which parses the original check output and adds the performance data.

Cheers,
Michael