How to Increase text characters to view the output

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jwelch
Posts: 225
Joined: Wed Sep 05, 2012 12:49 pm

Re: How to Increase text characters to view the output

Post by jwelch »

I assumed you were writing your own plugin so you controlled the format of the output. If you are using some else's plugin, you may have to modify the script to format the plugin output string correctly for multiline output. Apparently, the plugin output is passed through a shell at some point so any embedded newlines (in perl "\n") must be escaped so the output doen't get truncated before it makes it into the checkresults file. For nagios to display a summary on the main page and multiline output on the details page the 'output' portion of the service check results must be a single string with embedded linebreaks but the linebreaks have to be escaped so they survive the nagios.cmd -> checkresults translation.
Locked