Ad Widget

Collapse

Newlines in a custom script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Russ
    Junior Member
    • Dec 2009
    • 15

    #1

    Newlines in a custom script

    I've got an item set up to display the output of a script. The script has several items (one per line), but when viewing the history, it only displays the top line.

    I've done this before on a Windows server, using VBScript, and using vbCrLf for the line breaks, and it worked on Zabbix 1.4, 1.6 and 1.8. Now I'm trying to do it on a Linux server, using bash. I've tried using "\n" and "\r\n" for the line breaks, but neither works.

    Can anyone advise on how to get this working please?

    Russ
Working...