Page 1 of 1

List all Hosts using a specific Configuration Wizard?

Posted: Tue Jan 11, 2022 3:25 pm
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.

Re: List all Hosts using a specific Configuration Wizard?

Posted: Wed Jan 12, 2022 3:45 pm
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

Re: List all Hosts using a specific Configuration Wizard?

Posted: Thu Jan 13, 2022 9:05 am
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.

Re: List all Hosts using a specific Configuration Wizard?

Posted: Thu Jan 13, 2022 9:45 am
by pbroste
Excellent find @TBT thanks for following up and providing the details. I will go ahead and lock this.

Thanks,
Perry