NagiosEnterprises / ndoutils

NDOUtils - Database Output for Nagios Core
GNU General Public License v2.0
48 stars 19 forks source link

Increase output column length #54

Closed tatref closed 5 years ago

tatref commented 5 years ago

From the nagios source code, the plugin output may take up to 8192 bytes: https://github.com/NagiosEnterprises/nagioscore/blob/a7346f7d630813536ff42f7daa8ad2afd24139f4/include/nagios.h#L280

However, the outputcolumn inthe servicestatustable is only 255 bytes: https://github.com/NagiosEnterprises/ndoutils/blob/c115d3dea3b1040c67d287671486a82a6af55ced/db/mysql.sql#L1199

The same issue exists for the hostsatustable

Is it possible to bump the size to match the nagios values?

hedenface commented 5 years ago

These are set pretty conservatively for a reason - specifically because output is defined as the first line of output. The long_output should have the full body (after the first line). See: http://nagios-plugins.org/doc/guidelines.html#AEN33

All that being said, if you're running into some actual limitation, I'd look over a report - but in the meantime, just updating your own installation to meet these requirements would work best.