Page 1 of 1

Status.cgi with multiple hostgroups as argument

Posted: Tue Nov 01, 2011 5:50 am
by Hjaelmen
Hi

I have been trying to figure out if it is possible to pass anything other than hostgroup=all or hostgroup=<specific hostgroup> to the status.cgi? like: hostgroup=hostgroup1, hostgroup2, etc
Or if there is a theme, module or anything else that would emulate such behavior?

Right now i think my host groups view is very cluttered to look at, as host's are present in a number of different hostgroups.

Help of any kind will be greatly appreciated. And just telling me that is is not possible would also be greatly appreciated as that would stop me from searching in vain.

Kind regards

Martin Hoppe

Re: Status.cgi with multiple hostgroups as argument

Posted: Tue Nov 01, 2011 1:14 pm
by mguthrie
Just look at the URL's for the hostgroup links for the hostgroup status and summary pages:

[url]http://<address>/nagios/cgi-bin/status.cgi?hostgroup=TestGroup&style=overview[/url]
[url]http://<address>/nagios/cgi-bin/status.cgi?hostgroup=TestGroup&style=detail[/url]
[url]http://<address>/nagios/cgi-bin/status.cgi?hostgroup=TestGroup&style=grid[/url]

Re: Status.cgi with multiple hostgroups as argument

Posted: Wed Nov 02, 2011 3:05 am
by Hjaelmen
Hi mguthrie

Thanks for the answer.

Maybe i didn't get the question phrased right: I can get a single hostgroup to show in a link, like: http://cdrdbanagios/nagios/cgi-bin/stat ... e=overview but my question was: is it possible to get multiple hostgroups to show in a status overview like: http://cdrdbanagios/nagios/cgi-bin/stat ... group=Test, Test1, Test2&style=overview ie, getting it to show ie. my 3 Testgroups in one view instead of having to find them in the Host Groups all view or to have to check them one at a time.

Kind Regards

Martin Hoppe

Re: Status.cgi with multiple hostgroups as argument

Posted: Wed Nov 02, 2011 12:50 pm
by mguthrie
No, I don't think the status cgi will take a list. You'd probably have to define a new hostgroup with the 3 other groups as members and then view that one, but that still may not get you what you need.