adagios icon indicating copy to clipboard operation
adagios copied to clipboard

Performance Data sorting is alphabetical, not numerical

Open wasserman opened this issue 10 years ago • 1 comments

I am using Performance Data 2 on Adagios 1.5 for a Disk Usage service and tried to sort by disk space in MB. It appears that the sorting is alphabetical and not numerical since 1099MB sorts above 100 MB and 2019MB, etc. The performance data is being returned by "check_disk -w 10% -c 5%", so I'm using the defaults. I would guess that performance data is almost always numerical, so sorting should be numerical too.

I haven't upgraded to 1.6 yet, so I apologize if this behavior has changed since 1.5.

wasserman avatar Oct 21 '14 16:10 wasserman

Javascript plugin 'datatables' is messing this up because there is HTML in the column elements.

Quick googling around tells me that this is a known issue, and we can workaround this by using a different sorting plugin 'html-sorting' which will work around html tags.

palli avatar Nov 23 '14 13:11 palli