Page 1 of 1

Nagios Host and Service Sort Type

Posted: Tue Feb 02, 2016 8:50 am
by DigNetwerk
Hi,

Can NagiosXI please implement sorting like the "-g" option in GNU sort? (they call it general-numeric-sort, compare according to general numerical value).

Tons of hosts and services have some sort of numeric component in them (like port numbers on switches and routers, or the routers themselves, CPU's, ...) and it's utterly frustrating the way Nagios sorts them.

Or make it configurable or provide some sort of patch?

BTW: this is called "natural order" sort in PHP http://php.net/manual/en/function.natsort.php

Normal "wrong" sort:

Code: Select all

% echo "
3
1
2
11
13
12
" | sort
1
11
12
13
2
3
General Numeric sort

Code: Select all

% echo "
3
1
2
11
13
12
" | sort -g
1
2
3
11
12
13

Re: Nagios Host and Service Sort Type

Posted: Tue Feb 02, 2016 11:11 am
by lmiltchev
This totally makes sense to me. I posted an internal feature request for adding this functionality in XI (TASK ID 7641). Thanks for the feedback!

Re: Nagios Host and Service Sort Type

Posted: Wed Feb 03, 2016 4:46 am
by DigNetwerk
Thanks!

Re: Nagios Host and Service Sort Type

Posted: Wed Feb 03, 2016 10:09 am
by hsmith
We can leave this thread open, but I do have to request that it isn't bumped until later when you want to check on the feature request. If a Nagios employee isn't the last poster on a thread, it gets added to our dashboard saying it's in need of attention.

Thanks!