Page 1 of 1

Re: [Nagios-devel] Orphan hosts in hostgroup list

Posted: Tue Jul 29, 2008 1:22 pm
by Guest
Hi,

29.07.2008 21:47, Bernd Arnold wrote:
> Hi,
>
> as the number of hosts grow, I sometimes would like to see which hosts are not added to any hostgroup.

Good idea.

> I've written a patch for status.c where an additional hostgroup called "Orphan Hosts" is created and filled automatically. The configuration files remain untouched.
>
> I kept things very simple, so this is what doesn't work:
> - link to extinfo.cgi

That's a disadvantage, though not critical IMO.

> (permission warning, since the hostgroup is only added in status.c)
> - a check if there is already a hostgroup named "orphans"

Minor problem, too.

> - show the additional hostgroup only when I need it (the hostgroup is always displayed)

Do you intend to improve this?

> The patch was created with "diff -U 3 cgi/status.c.orig cgi/status.c". The function create_orphan_hosts_hostgroup() is called where I thought it is best to be called (after fetching the authentication information).
>
> Maybe someone likes this feature... Comments are welcome.

Sure... please do something similar for the service groups ;-)

Arno

> Regards
> Bernd
>
>
>
> ------------------------------------------------------------------------
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php? ... =100&url=/
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Nagios-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/lis ... gios-devel

--
Arno Lehmann
IT-Service Lehmann
Sandstr. 6, 49080 Osnabrück
www.its-lehmann.de





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]