[Nagios-users] Sub-groups of hostgroups
Is it possible to do a sub-group of a hostgroup? For example, right now I have the following hostgroups: linux-servers unix-servers mac-servers network-devices I'm going to be adding windows-servers as a hostgroup, but within this group I want to further subgroup both for readability and notifications. For example, I'd like subgroups of: directory-servers exchange-servers file-servers as sub-groups of the parent windows-servers hostgroup. Is this possible? If so, anyone have a working config/example they can share? -- A. Davis Email: ncc...@gmail.com There is no limit to what a man can accomplish if he doesn't care who gets the credit. - Ronald Reagan -- ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Sub-groups of hostgroups
On Mar 10, 2009, at 12:04 PM, Andrew Davis wrote: Is it possible to do a sub-group of a hostgroup? For example, right now I have the following hostgroups: linux-servers unix-servers mac-servers network-devices I'm going to be adding windows-servers as a hostgroup, but within this group I want to further subgroup both for readability and notifications. For example, I'd like subgroups of: directory-servers exchange-servers file-servers as sub-groups of the parent windows-servers hostgroup. Is this possible? If so, anyone have a working config/example they can share? http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#hostgroup hostgroup_members: This optional directive can be used to include hosts from other sub host groups in this host group. Specify a comma- delimited list of short names of other host groups whose members should be included in this group. Hosts can also be members of multiple hostgroups by specifying them on the members line of the hostgroup definitions or comma separated in the hostgroups parameter of the host definition. -- Marc -- ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Sub-groups of hostgroups
Andrew Davis wrote: Is it possible to do a sub-group of a hostgroup? As far as I know, hostgroups are all at the same level, but hosts can be members of more than one hostgroup. I set my host definitions up like this: define host { use prod_windows_server host_name servername alias serveralias address w.x.y.z hostgroups +FTP Servers,Web Servers } My prod_windows_server host template sets a hostgroup of windows_servers. In the host definition here, the + adds the additional host groups to the host. Without the +, the host definition's hostgroup setting would replace windows_servers. Then, in my services.cfg, I assign services to hostgroups: define service { use standard_service nameWeb_Service hostgroup_name Web Servers service_description Service: Web check_command check_nt_service!W3SVC } You don't have to assign services to a hostgroup, but it's convenient for me to do so. -- Chris Beattie Nothing in this message is intended to make or accept and offer or to form a contract, except that an attachment that is an image of a contract bearing the signature of an officer of our company may be or become a contract. This message (including any attachments) is intended only for the use of the individual or entity to whom it is addressed. It may contain information that is non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law or may constitute as attorney work product. If you are not the intended recipient, we hereby notify you that any use, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this message in error, please notify us immediately by telephone and delete this message immediately. Thank you. -- ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null