Nagios Host and Service Sort Type

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
DigNetwerk
Posts: 40
Joined: Fri Oct 25, 2013 7:29 am

Nagios Host and Service Sort Type

Post 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
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios Host and Service Sort Type

Post 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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
DigNetwerk
Posts: 40
Joined: Fri Oct 25, 2013 7:29 am

Re: Nagios Host and Service Sort Type

Post by DigNetwerk »

Thanks!
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Nagios Host and Service Sort Type

Post 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!
Former Nagios Employee.
me.
Locked