How to print multilines in Nagios

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
miguelwilliams
Posts: 2
Joined: Tue Oct 21, 2025 4:27 am

How to print multilines in Nagios

Post by miguelwilliams »

Hello,
I have created a script that produces multiline output, but in Nagios, it's only displaying a single line. Does anyone know how to enable multiline output in Nagios?
User avatar
lgute
Posts: 419
Joined: Mon Apr 06, 2020 2:49 pm

Re: How to print multilines in Nagios

Post by lgute »

Hi @miguelwilliams,

Thanks for reaching out. This document may help.

I believe, you need a new line (\n), between each "line".
Please let us know if you have any other questions or concerns.

-Laura
miguelwilliams
Posts: 2
Joined: Tue Oct 21, 2025 4:27 am

Re: How to print multilines in Nagios

Post by miguelwilliams »

Hi @survival race,

Thanks for reaching out. This document may help.

I believe, you need a new line (\n), between each "line".
Thanks for your suggestion. This is what I'm looking for.
Last edited by miguelwilliams on Thu Oct 30, 2025 3:38 am, edited 1 time in total.
User avatar
lgute
Posts: 419
Joined: Mon Apr 06, 2020 2:49 pm

Re: How to print multilines in Nagios

Post by lgute »

Hi @miguelwilliams,

I'm glad I could help. Please let us know if you have any other questions.
Please let us know if you have any other questions or concerns.

-Laura
Post Reply