Status.cgi with multiple hostgroups as argument

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Hjaelmen
Posts: 2
Joined: Tue Nov 01, 2011 5:41 am

Status.cgi with multiple hostgroups as argument

Post 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
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Status.cgi with multiple hostgroups as argument

Post 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]
Hjaelmen
Posts: 2
Joined: Tue Nov 01, 2011 5:41 am

Re: Status.cgi with multiple hostgroups as argument

Post 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
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Status.cgi with multiple hostgroups as argument

Post 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.
Locked