[dev.icinga.com #2380] epn truncates perfdata output to 4096 bytes #896
Comments
Updated by mfriedrich on 2012-04-04 15:48:40 +00:00
|
Updated by mfriedrich on 2012-04-19 22:46:20 +00:00
what does the debuglog say, when you raise verbosity to checks? it must trigger that output parts in the code.
|
Updated by tontonitch on 2012-04-26 12:11:24 +00:00
Hi Michael, When epn is enabled (no #nagios -epn), attached is the full debug corresponding to that test check (icinga.debug). You can see that, if you look for the "Embedded Perl ran" debug line, you will see a truncated result. Br, |
Updated by mfriedrich on 2012-05-13 17:26:47 +00:00
thanks, i need to take some time and look deeper into that. put on my todo list. if it unveils a bug, it may hit the 1.7.x bugfix tree after deep testing. |
Updated by mfriedrich on 2012-07-06 16:40:04 +00:00 hm, i think this happens within the p1.pl file itsself, when the perl stdout is piped to the inner PRINT/F functions.
maybe try to modify the hardcoded values to substr, and test again. but i have no idea which other issues this may cause on embedded perl itsself.
keep in mind that p1.pl is generated by configure, out of p1.pl.in |
Updated by mfriedrich on 2012-07-31 19:20:47 +00:00
|
Updated by tontonitch on 2012-08-19 13:57:04 +00:00 Changing the hardcoded substr worked, allowing longer output / performance data.
These values should fit at least to the MAX_PLUGIN_OUTPUT_LENGTH variable (icinga.h). However, that MAX_PLUGIN_OUTPUT_LENGTH variable is often changed when using plugin generating long outputs. At least the problem is solved. Regards, |
Updated by mfriedrich on 2012-08-19 14:29:49 +00:00
i pretty much dislike those static buffers requiring re-compiling at all. a superior solution should be found in that case, also allowing embedded $language not to cut buffers. i'll leave that as a documented known bug here and close the issue, as you have it documented now, and we can keep it in mind for future icinga versions. |
This issue has been migrated from Redmine: https://dev.icinga.com/issues/2380
Created by tontonitch on 2012-02-29 16:06:47 +00:00
Assignee: tontonitch
Status: Closed (closed on 2012-08-19 14:29:49 +00:00)
Target Version: (none)
Last Update: 2012-08-19 14:29:49 +00:00 (in Redmine)
Hi,
I've discovered that epn truncates the performance data to 4094 bytes + "\n" at the end. (might be more generally the output)
So every perl plugins returning a certain amount of data are impacted and cannot be used with epn.
Workaround is of course the "# nagios: -epn" flag to add at the top of the script plugin.
Might be also interesting to have epn accepting longer output when the value of MAX_PLUGIN_OUTPUT_LENGTH (icinga.h) has been modified at the compilation time.
Br,
Yannick
Attachments
Relations:
The text was updated successfully, but these errors were encountered: