glpi_monitoring icon indicating copy to clipboard operation
glpi_monitoring copied to clipboard

Max length for service output

Open mohierf opened this issue 11 years ago • 1 comments

The maximum length for service output is fixed to 255 character in the database (glpi_plugin_monitoring_serviceevents and glpi_plugin_monitoring_hosts) whereas maximum output in Nagios/Shinken is 512 bytes.

Checks output like hereunder (NSClient CheckMem) are not stored completely :

;OK: physical memory: 7.04G, virtual memory: 343M, paged bytes: 9.2G, page file: 9.2G|'physical memory %'=59%;75;90 'physical memory'=7.043G;8.94999;10.74;0;11.933 'virtual memory %'=0%;75;90 'virtual memory'=343.309M;6291455.906;7549747.087;0;8388607.875 'paged bytes %'=38%;75;90 'paged bytes'=9.20299G;17.898;21.478;0;23.864 'page file %'=38%;75;90 'page file'=9.20299G;17.898;21.478;0;23.864

mohierf avatar Nov 21 '13 14:11 mohierf

Ok, but should be interesting to make a patch because the table glpi_plugin_monitoring_hosts stores check output in two fields : event and output. This patch needs a fix in Monitoring AND in Shinken broker. As of it, it should be interesting to check whether a long output with line breaks is correctly stored in database.

mohierf avatar Jan 19 '14 16:01 mohierf