Skip to content

NSClient config

Go to Automation

View in GitLab

Description

The "Configure NsClient" playbook configures the NSClient++ service on the target Windows host. It first checks if the host is excluded (host tagged with the no_nagios ManagementExcetion tag in Neon or added to the exclude array in Ansible), then retrieves information about the NSClient++ service, failing if it is absent or stopped. It synchronizes NSClient scripts and copies a PEM file. The playbook retrieves event exclusions from the DG_Nagios_Extensions database, formats them, and sets configuration parameters. It creates a configuration repository folder, copies the NSClient.ini template, and transfers it to the server. Finally, it restarts the NSClient service, closing any hanging PowerShell processes if necessary.

Credentials

  • sys_ansible_windows
  • DG_Nagios_ExtensionsUser1 (SQL user)

Input

Variable Description
target FQDN name of the server or name of the servergroup
serverdb_host Name of the SQL server
serverdb_database Name of the database with Nagios event exclusions
exclude list of server (fqdn) to exclude

Output

None

Dependencies