I found that the default value that Nagios uses just isn’t long enough for plugin output (namely check_disk). In include/objects.h I found the following line:
I believe it’s default is 334, but I raised it to 1024 in order to function with check_disk properly. A max length of 334 is pretty limited especially considering that this also include performance data. I’ve compiled and tested the changes on my test box and everything seems to be working fine.
My question is whether or not this is going to cause any problems and why was such a small limit chosen in the first place? It seems like a better option would be to have this value configurable in nagios.cfg.