List all Hosts using a specific Configuration Wizard?

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 Hosts using a specific Configuration Wizard?

Post by TBT »

Looking for suggestions on the best method to determine if any Hosts are using a specific Configuration Wizard, more specifically list all Hosts (if any) added using the Windows WMI Wizard.
Nagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: List all Hosts using a specific Configuration Wizard?

Post by pbroste »

Hello @TBT

Thanks for reaching out, appears that the configs are created, and note that they "use xiwizard_windowswmi_service"

Code: Select all

grep -Eir "xiwizard_windowswmi_service" /usr/local/nagiosxi/nom/checkpoints/nagioscore/* --color=always -B 2 --exclude=*templates.cfg | less -SR
Sample config:
host_name Myhostnamehere
service_description CPU Usage
use xiwizard_windowswmi_service
check_command check_xi_service_wmiplus!'administrator'!'password123'!checkcpu!-w '80' ->
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard windowswmi
register 1
Thanks,
Perry
TBT
Posts: 625
Joined: Wed May 18, 2011 1:26 pm

Re: List all Hosts using a specific Configuration Wizard?

Post by TBT »

@pbroste

I'm not seeing any results with that. I know there are at least a few checks using WMI as there is one particular service check in CCM with a command: $USER1$/check_wmi_plus.pl -H $HOSTADDRESS$ -A $ARG1$ -m $ARG2$ $ARG3$

That being said, the following returns results I'm looking for:

Code: Select all

grep wmiplus /usr/local/nagios/etc/services/*
Thanks.
Nagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: List all Hosts using a specific Configuration Wizard?

Post by pbroste »

Excellent find @TBT thanks for following up and providing the details. I will go ahead and lock this.

Thanks,
Perry
Locked