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