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
3Code: Select all
% echo "
3
1
2
11
13
12
" | sort -g
1
2
3
11
12
13