Orphan hosts in hostgroup list

Bernd Arnold bernd_a at gmx.de
Wed Jul 30 22:03:14 CEST 2008


Some improvements (I think...):

The orphan hostgroups and servicegroups are created every (!) time. So the link to extinfo.cgi works, too. (I've tried the schedule downtime for all services of an orphan servicegroup, though I think it's not very useful.)
Maybe I'll find a way how to control the creation of these groups by a config value. Commands can be submitted to the orphan groups regardless of the show_orphan_... values so far.

You can modify your cgi.cfg file to show orphan groups (they aren't displayed by default). Put these two lines in your cgi configuration file:
show_orphan_hosts_hostgroup=1
show_orphan_services_servicegroup=1

The diffs should be applied to the current cvs files from the repository.

Regards
Bernd


-------- Original-Nachricht --------
> Datum: Tue, 29 Jul 2008 23:22:10 +0200
> Von: Arno Lehmann <al at its-lehmann.de>
> An: Nagios Developers List <nagios-devel at lists.sourceforge.net>
> Betreff: Re: [Nagios-devel] Orphan hosts in hostgroup list

> 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 
> > 
> 
> -- 
> Arno Lehmann
> IT-Service Lehmann
> Sandstr. 6, 49080 Osnabrück
> www.its-lehmann.de
> 

-- 
GMX Kostenlose Spiele: Einfach online spielen und Spaß haben mit Pastry Passion!
http://games.entertainment.gmx.net/de/entertainment/games/free/puzzle/6169196
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cgiutils.c.diff
Type: application/octet-stream
Size: 826 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20080730/7768a957/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: objects.c.diff
Type: application/octet-stream
Size: 2996 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20080730/7768a957/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: status.c.diff
Type: application/octet-stream
Size: 2337 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20080730/7768a957/attachment-0002.obj>
-------------- next part --------------
-------------------------------------------------------------------------
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?banner_id=100&url=/
-------------- next part --------------
_______________________________________________
Nagios-devel mailing list
Nagios-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-devel


More information about the Developers mailing list