HostGroup sorting Hosts


Is it possible to sort the hosts in a non alpha numeric order? I’m guessing it’s a global setting in nagios.cfg since I don’t see it in the hostgroup defination.

The request came from a coworker that would like to see are wireless backhaul links in a specific order for troubleshooting the links.





the answer is: yes and no
there’s no config file to do that…

if you really want to do it, you’ll gave the edit the status.c file (in your source directory), find the place where the sort is done, change it and recompile …

(there may be a better way, but I don’t know it ^^)



I looked at statusbase.c and I should be able to modify the sort routines. The trick is to allow for having it flexible on different hostgroups without messing it up.

If I figure it out I’ll post my findings.