You could do it the other way, and in the host definition assign it to a hostgroup, using the "hostgroups" directive, and give it a comma-separated list of groups? We did it that way so basically the host definition file is all self-contained.
Dan -----Original Message----- From: Forrest Aldrich [mailto:for...@gmail.com] Sent: Tuesday, December 07, 2010 3:41 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Problem with hostgroup members definition I have a new Nagios 3 installation where I am trying to include several hosts in a hostgroup definition (to be efficient). The error I'm getting (from the pre-flight check): Error: Could not expand members specified in hostgroup ... At first, I was referring to hosts by their "alias" which is defined in the host definition, but it appears I cannot.. Next, I thought the line was too long. There are a total of 27 hosts. I want use a hostgroup definition and bind a check-host-alive to that group -- seems pretty efficient. Is there a better way to accomplish this. I had another person double check my work and we compared it to another known-working config, where I believe aliases were being used. No special configuration was done, I just used the example configs and commented out a bunch of stuff or just defined my own objects. At the moment, I have several hosts that belong to a production group: define hostgroup{ hostgroup_name prod-servers ; The name of the hostgroup alias Production Servers ; Long name of the group members host1,host2, ... (omitted here for brevity) } We have 2 or 3 groups of servers that we want to configure for simple check-host-alive work, for some development integration with Nagios - it doesn't have to be sophisticated at the moment. The "production" group is the largest. I redacted the changes and put a FQHN (1) in there and it seemed to work. Is there a better way to associate multiple hosts with a hostgroup? Any pointers would be appreciated. ------------------------------------------------------------------------ ------ What happens now with your Lotus Notes apps - do you make another costly upgrade, or settle for being marooned without product support? Time to move off Lotus Notes and onto the cloud with Force.com, apps are easier to build, use, and manage than apps on traditional platforms. Sign up for the Lotus Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d _______________________________________________ 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 ------------------------------------------------------------------------------ What happens now with your Lotus Notes apps - do you make another costly upgrade, or settle for being marooned without product support? Time to move off Lotus Notes and onto the cloud with Force.com, apps are easier to build, use, and manage than apps on traditional platforms. Sign up for the Lotus Notes Migration Kit to learn more. http://p.sf.net/sfu/salesforce-d2d _______________________________________________ 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