September 2018
Beginner to intermediate
214 pages
5h 53m
English
We always introduce new equipment to a certain environment. One of the tasks that is required to set up a new host properly is to link it to the monitoring system. For this use case, we are going to show how to set up a Nagios agent in a Windows host and configure it from a sample configuration file:
---- name: Setup Nagios agent on Windows hosts hosts: windows gather_facts: yes tasks: - name: Copy the MSI file for the NSClient to the windows host win_copy: src: ~/win_apps/NSCP-0.5.0.62-x64.msi dest: C:\NSCP-0.5.0.62-x64.msi - name: Install an NSClient with the appropriate arguments win_msi: path: C:\NSCP-0.5.0.62-x64.msi extra_args: ADDLOCAL=FirewallConfig,LuaScript,DotNetPluginSupport,Documentation,CheckPlugins,NRPEPlugins,NSCPlugins,NSCAPlugin,PythonScript,ExtraClientPlugin,SampleScripts ...
Read now
Unlock full access