Page 1 of 1

Question about configuration wizard group memberships

Posted: Thu Jan 20, 2011 7:01 am
by Box293
I am about to write some custom wizards that we'll use internally for adding new sites and servers to our system.
In the example of servers, the wizard will ask the user which types of services they will want to monitor.
A lot of these serviecs will be common services that are assigned to a host group.
So all I want to do here in the wizard is add the host to the required hostgroup(s) if the user selected these services.
I'm not interested in the user selecting the host group during the groups selection step in the monitoring wizard, I want to make it as foolproof as possible.

How do I go about doing this in the configuration wizard?

I've noticed when I'm doing a tail -f /var/log/httpd/error_log while running through a configuration wizard some errors appear:
PHP Notice: Undefined variable: hostgroups
PHP Notice: Undefined variable: servicegroups

So I suppose I'm after how to define these variables so they are used by the configuation wizard final applying stage.

I've tried looking at monitoringwizard.php to see how it's done but it's cleverly guarded by SourceGuardian :(

Re: Question about configuration wizard group memberships

Posted: Thu Jan 20, 2011 1:37 pm
by mguthrie
Sent you a private message with some info that might help you find what you need.