Long lines in alert log cause clipping

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
tay9000
Posts: 9
Joined: Sat Oct 13, 2012 7:22 am

Long lines in alert log cause clipping

Post by tay9000 »

Hello, please see the attached screenshot. I have an HTTP probe checking a URL with a long string and this is causing the lines to do something funky and end up indenting. Is there a way to shorten the length of what is displayed in the alert log or is there another viable solution? Thanks in advance!
Attachments
nagios-ss.jpeg
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: Long lines in alert log cause clipping

Post by jsmurphy »

The indenting thing appeared in Nagios a few versions ago... I believe the point of it was to easily identify related state changes in the log files. To the best of my knowledge there is no way to turn this feature off. There is also no way that I know of for truncating the display of the log files.

Beyond aesthetics is there a reason that this is a problem?
tay9000
Posts: 9
Joined: Sat Oct 13, 2012 7:22 am

Re: Long lines in alert log cause clipping

Post by tay9000 »

I do not think this is a feature. Look what happens when I increase the width of my browser window. The problem with the long lines goes away. However, I don't like having my browser fully extended...
Attachments
nagios-ss-full.jpeg
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Long lines in alert log cause clipping

Post by slansing »

I believe what you are seeing is the browser trying to constrain the fields within to the current size of it's window. I really do not believe there is a way around this, have you tried with a different browser? Perhaps the conventions are different. One way this could be changed would be editing the css files regarding this.
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: Long lines in alert log cause clipping

Post by jsmurphy »

Well that will learn me to make assumptions. 8-)
tay9000
Posts: 9
Joined: Sat Oct 13, 2012 7:22 am

Re: Long lines in alert log cause clipping

Post by tay9000 »

slansing wrote:have you tried with a different browser?
You're right. The problem exists in Chrome but not Firefox. I submit a bug report to Chrome. Hopefully it gets fixed... if they even see it as a problem.
Locked