we run icinga2 r2.10.2-1. I found that services can only return a string of max 1024 chars (including the return text + performance metrics). Everything after the 1024’s char gets ignored.
I want to return a lot of metrics from a single service and now I don’t get all of them in icinga2 and the graphs.
Hello,
I admit i’m quite sceptic about it, i can sometime get several megabytes of data output for checks without problems.
Where do you observe this limitation ? on api results or icingaweb dashboards ?
Is this a particular check ? which one ? (there may be an output limitation bound to it, it’s oftenly the case for nrpe check for example)
I cannot easily upgrade or check that on 2.12.0. If you can tell me that a higher icinga2 version has already fixed it … would be a good outcome for me.
From the metrics I can see in on the icinga website there are only displayed 41 of them, even though their count is 60. Additionally there is one wrongly captured metric. On the website there is PWSDRKPK01=7 displayed, even though the actual metric value is 72.00. However … that char ‘7’ is the 1024’s char in the whole string.
The data inside the graphite db does reflect the same issue. Remote checks are done with NRPE on our site and it is not NRPR which truncates the string.
No, multiline output as described there does not work. I do not read it from that doc, but I have to put a “|” on the start of each additional line to make the output been recognized as metric values.
However those additional chars result in less actual metrics being detected by icinga2, as the 1024’s char cuts of more metrics.
change your max payload length if your version allow you to do this (v3+)
get rid of nrpe agent and use icinga agent to executer directly the check on your sql server, there are no check output limitation (at my knowledge), thus you can execute checks that return big amount of data without problems.