New Feature: sorting of service- and hostnames in a domain-aware manner

Lars Volker nagios at lekv.de
Wed Apr 28 18:01:43 CEST 2004


sorry, forgot the file

there it is, made from current cvs source...


Lars Volker schrieb:

> Hi,
>
> wouldn't it be nice if nagios respectively the status.cgi would be 
> able to recognize, if two host- or servicenames are domain names, 
> which means dot-separated (like blabla.foo.bar.org.uk) and then sort 
> the list in an domain-aware kind of way?
>
> Example:
> current behaviour:
> a.x.org
> a.y.org
> b.x.org
> b.y.org
>
> desired behaviour
> a.x.org
> b.x.org
> a.y.org
> b.y.org
>
> I've written a few lines of code, implementing that feature, but i 
> edited the source directly and have never worked with patching stuff. 
> So if someone would like to explain, i'll provide a patch. Anyways the 
> code is just about 9 lines long, simple hack only, but working. There 
> also should be some kind of switch to toggle the behaviour.
>
> Thanks
> Lars
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: Oracle 10g
> Get certified on the hottest thing ever to hit the market... Oracle 
> 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
> http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
> _______________________________________________
> Nagios-devel mailing list
> Nagios-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-devel
>

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: nagios.diff
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20040428/d3d0b283/attachment.ksh>


More information about the Developers mailing list