Orphan hosts in hostgroup list

Bernd Arnold bernd_a at gmx.de
Tue Jul 29 21:47:10 CEST 2008


Hi,

as the number of hosts grow, I sometimes would like to see which hosts are not added to any hostgroup.

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 (permission warning, since the hostgroup is only added in status.c)
- a check if there is already a hostgroup named "orphans"
- show the additional hostgroup only when I need it (the hostgroup is always displayed)

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.

Regards
Bernd 

-- 
Psssst! Schon das coole Video vom GMX MultiMessenger gesehen?
Der Eine für Alle: http://www.gmx.net/de/go/messenger03
-------------- next part --------------
A non-text attachment was scrubbed...
Name: hostgroup_summary.PNG
Type: image/png
Size: 4475 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20080729/c657adf6/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: status.c.diff
Type: application/octet-stream
Size: 1798 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/developers/attachments/20080729/c657adf6/attachment.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