List all network elements not in a Host/Service Group?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
TBT
Posts: 625
Joined: Wed May 18, 2011 1:26 pm

List all network elements not in a Host/Service Group?

Post by TBT »

Can you suggest a way to list all network elements not in a Host Group or Service Group?
Nagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: List all network elements not in a Host/Service Group?

Post by scottwilkerson »

TBT wrote:Can you suggest a way to list all network elements not in a Host Group or Service Group?
The only way I know to do this would be to grab all hosts/services through the API

Code: Select all

objects/host
objects/services
and match them against the API for the group members

Code: Select all

objects/hostgroupmembers
objects/servicegroupmembers
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
TBT
Posts: 625
Joined: Wed May 18, 2011 1:26 pm

Re: List all network elements not in a Host/Service Group?

Post by TBT »

scottwilkerson wrote:
TBT wrote:Can you suggest a way to list all network elements not in a Host Group or Service Group?
The only way I know to do this would be to grab all hosts/services through the API

Code: Select all

objects/host
objects/services
and match them against the API for the group members

Code: Select all

objects/hostgroupmembers
objects/servicegroupmembers
Ouch. Thanks.
Nagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: List all network elements not in a Host/Service Group?

Post by dwhitfield »

Would you like me to submit a feature request on your behalf? Please keep in mind that a feature request can be denied and initially there will be no date or version #.
TBT
Posts: 625
Joined: Wed May 18, 2011 1:26 pm

Re: List all network elements not in a Host/Service Group?

Post by TBT »

dwhitfield wrote:Would you like me to submit a feature request on your behalf? Please keep in mind that a feature request can be denied and initially there will be no date or version #.
I think it would be useful, so yes. Thanks.
Nagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: List all network elements not in a Host/Service Group?

Post by dwhitfield »

TBT wrote:Can you suggest a way to list all network elements not in a Host Group or Service Group?
Do you mean not in *ANY* group, or not in a specific group? I just want to make sure the feature request is actually what you want.
TBT
Posts: 625
Joined: Wed May 18, 2011 1:26 pm

Re: List all network elements not in a Host/Service Group?

Post by TBT »

dwhitfield wrote:
TBT wrote:Can you suggest a way to list all network elements not in a Host Group or Service Group?
Do you mean not in *ANY* group, or not in a specific group? I just want to make sure the feature request is actually what you want.
Currently, if a network element isn't configured for a host/service group it will not be shown on Group Summary or Overview page. A method for displaying ALL/ANY network elements not associated with a host/service group is required and allows administrators to clean-up misconfigurations.
Nagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: List all network elements not in a Host/Service Group?

Post by dwhitfield »

Thank you for the additional information. I have submitted the feature request.
Locked