<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://kb.rvmgroup.it/index.php?action=history&amp;feed=atom&amp;title=Gestione_di_nsclient_con_Puppet</id>
	<title>Gestione di nsclient con Puppet - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://kb.rvmgroup.it/index.php?action=history&amp;feed=atom&amp;title=Gestione_di_nsclient_con_Puppet"/>
	<link rel="alternate" type="text/html" href="https://kb.rvmgroup.it/index.php?title=Gestione_di_nsclient_con_Puppet&amp;action=history"/>
	<updated>2026-05-06T12:13:16Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://kb.rvmgroup.it/index.php?title=Gestione_di_nsclient_con_Puppet&amp;diff=9257&amp;oldid=prev</id>
		<title>Gabriele.vivinetto: Created page with &quot;* Funziona con puppet &gt; 3.1  * Sul server, installare il modulo  sudo puppet module install opentable-nsclient --environment testing   sudo puppet module list --environment te...&quot;</title>
		<link rel="alternate" type="text/html" href="https://kb.rvmgroup.it/index.php?title=Gestione_di_nsclient_con_Puppet&amp;diff=9257&amp;oldid=prev"/>
		<updated>2015-03-05T14:58:58Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;* Funziona con puppet &amp;gt; 3.1  * Sul server, installare il modulo  sudo puppet module install opentable-nsclient --environment testing   sudo puppet module list --environment te...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;* Funziona con puppet &amp;gt; 3.1&lt;br /&gt;
&lt;br /&gt;
* Sul server, installare il modulo&lt;br /&gt;
 sudo puppet module install opentable-nsclient --environment testing&lt;br /&gt;
&lt;br /&gt;
 sudo puppet module list --environment testing&lt;br /&gt;
&lt;br /&gt;
* Creare la classe per la macchina windows&lt;br /&gt;
&lt;br /&gt;
 sudo mkdir -p met_nsclient/{modules,manifests,templates,files}&lt;br /&gt;
&lt;br /&gt;
 cd  met_nsclient&lt;br /&gt;
&lt;br /&gt;
 sudoedit manifests/site.pp&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
class met_nsclient {&lt;br /&gt;
	file {&amp;#039;c:/program files/nsclient++/scripts/restart_service.cmd&amp;#039;:&lt;br /&gt;
		ensure				=&amp;gt; present,&lt;br /&gt;
		source				=&amp;gt; &amp;#039;puppet:///modules/met_nsclient/restart_service.cmd&amp;#039;,&lt;br /&gt;
		source_permissions	=&amp;gt; ignore&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
	class { &amp;#039;nsclient&amp;#039;:&lt;br /&gt;
		package_source_location	=&amp;gt; &amp;#039;http://files.nsclient.org/released&amp;#039;,&lt;br /&gt;
		package_name			=&amp;gt; &amp;#039;NSClient++ (x64)&amp;#039;,&lt;br /&gt;
		package_source			=&amp;gt; &amp;#039;NSCP-0.4.3.131-x64.msi&amp;#039;,&lt;br /&gt;
		allowed_hosts 			=&amp;gt; [ &amp;#039;192.168.1.5&amp;#039;,	],&lt;br /&gt;
		download_destination 	=&amp;gt; &amp;#039;c:/temp&amp;#039;,&lt;br /&gt;
		config_template			=&amp;gt; &amp;#039;met_nsclient/nsclient.ini.erb&amp;#039;,&lt;br /&gt;
		require					=&amp;gt; File[&amp;#039;c:/program files/nsclient++/scripts/restart_service.cmd&amp;#039;],&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Copiare i files di supporto:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cat | sudo tee files/restart_service.cmd&amp;lt;&amp;lt;&amp;#039;EOFile&amp;#039;&lt;br /&gt;
@echo off&lt;br /&gt;
REM MANAGED BY PUPPET 2015030501&lt;br /&gt;
&lt;br /&gt;
net stop %1&lt;br /&gt;
net start %1&lt;br /&gt;
@exit 0&lt;br /&gt;
&lt;br /&gt;
REM MANAGED BY PUPPET&lt;br /&gt;
EOFile&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cat | sudo tee files/restart_service.cmd&amp;lt;&amp;lt;&amp;#039;EOFile&amp;#039;&lt;br /&gt;
﻿# MANAGED BY PUPPET 2015030502&lt;br /&gt;
&lt;br /&gt;
# If you want to fill this file with all avalible options run the following command:&lt;br /&gt;
#   nscp settings --generate --add-defaults --load-all&lt;br /&gt;
# If you want to activate a module and bring in all its options use:&lt;br /&gt;
#   nscp settings --activate-module &amp;lt;MODULE NAME&amp;gt; --add-defaults&lt;br /&gt;
# For details run: nscp settings --help&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; Undocumented section&lt;br /&gt;
[/modules]&lt;br /&gt;
&lt;br /&gt;
; CheckDisk - CheckDisk can check various file and disk related things. The current version has commands to check Size of hard drives and directories.&lt;br /&gt;
CheckDisk = 1&lt;br /&gt;
&lt;br /&gt;
; Event log Checker. - Check for errors and warnings in the event log. This is only supported through NRPE so if you plan to use only NSClient this wont help you at all.&lt;br /&gt;
CheckEventLog = 1&lt;br /&gt;
&lt;br /&gt;
; Check External Scripts - A simple wrapper to run external scripts and batch files.&lt;br /&gt;
CheckExternalScripts = enabled&lt;br /&gt;
&lt;br /&gt;
; Helper function - Various helper function to extend other checks. This is also only supported through NRPE.&lt;br /&gt;
CheckHelpers = 1&lt;br /&gt;
&lt;br /&gt;
; Check NSCP - Checkes the state of the agent&lt;br /&gt;
CheckNSCP = 1&lt;br /&gt;
&lt;br /&gt;
; CheckSystem - Various system related checks, such as CPU load, process state, service state memory usage and PDH counters.&lt;br /&gt;
CheckSystem = 1&lt;br /&gt;
&lt;br /&gt;
; CheckWMI - CheckWMI can check various file and disk related things. The current version has commands to check Size of hard drives and directories.&lt;br /&gt;
CheckWMI = 1&lt;br /&gt;
&lt;br /&gt;
; NRPE server - A simple server that listens for incoming NRPE connection and handles them.&lt;br /&gt;
NRPEServer = 1&lt;br /&gt;
&lt;br /&gt;
; NSClient server - A simple server that listens for incoming NSClient (check_nt) connection and handles them. Although NRPE is the preferred method NSClient is fully supported and can be used for simplicity or for compatibility.&lt;br /&gt;
NSClientServer = 1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; Undocumented section&lt;br /&gt;
[/settings/default]&lt;br /&gt;
&lt;br /&gt;
; ALLOWED CIPHERS - A better value is: ALL:!ADH:!LOW:!EXP:!MD5:@STRENGTH&lt;br /&gt;
allowed ciphers = ADH&lt;br /&gt;
&lt;br /&gt;
; ALLOWED HOSTS - A comaseparated list of allowed hosts. You can use netmasks (/ syntax) or * to create ranges.&lt;br /&gt;
allowed hosts = metstor01&lt;br /&gt;
&lt;br /&gt;
; BIND TO ADDRESS - Allows you to bind server to a specific local address. This has to be a dotted ip address not a host name. Leaving this blank will bind to all available IP addresses.&lt;br /&gt;
bind to = &lt;br /&gt;
&lt;br /&gt;
; CACHE ALLOWED HOSTS - If hostnames should be cached, improves speed and security somewhat but wont allow you to have dynamic IPs for your nagios server.&lt;br /&gt;
cache allowed hosts = true&lt;br /&gt;
&lt;br /&gt;
; SSL CERTIFICATE - &lt;br /&gt;
certificate = &lt;br /&gt;
&lt;br /&gt;
; PASSWORD - Password used to authenticate againast server&lt;br /&gt;
password = &lt;br /&gt;
&lt;br /&gt;
; TIMEOUT - Timeout when reading packets on incoming sockets. If the data has not arrived within this time we will bail out.&lt;br /&gt;
timeout = 30&lt;br /&gt;
&lt;br /&gt;
; ENABLE SSL ENCRYPTION - This option controls if SSL should be enabled.&lt;br /&gt;
use ssl = true&lt;br /&gt;
&lt;br /&gt;
; VERIFY MODE - &lt;br /&gt;
verify mode = none&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; A list of aliases available. An alias is an internal command that has been &amp;quot;wrapped&amp;quot; (to add arguments). Be careful so you don&amp;#039;t create loops (ie check_loop=check_a, check_a=check_loop)&lt;br /&gt;
[/settings/external scripts/alias]&lt;br /&gt;
&lt;br /&gt;
; alias_cpu - Alias for alias_cpu. To configure this item add a section called: /settings/external scripts/alias/alias_cpu&lt;br /&gt;
alias_cpu = checkCPU warn=80 crit=90 time=5m time=1m time=30s&lt;br /&gt;
&lt;br /&gt;
; alias_cpu_ex - Alias for alias_cpu_ex. To configure this item add a section called: /settings/external scripts/alias/alias_cpu_ex&lt;br /&gt;
alias_cpu_ex = checkCPU warn=$ARG1$ crit=$ARG2$ time=5m time=1m time=30s&lt;br /&gt;
&lt;br /&gt;
; alias_disk - Alias for alias_disk. To configure this item add a section called: /settings/external scripts/alias/alias_disk&lt;br /&gt;
alias_disk = CheckDriveSize MinWarn=10% MinCrit=5% CheckAll FilterType=FIXED&lt;br /&gt;
&lt;br /&gt;
; alias_disk_loose - Alias for alias_disk_loose. To configure this item add a section called: /settings/external scripts/alias/alias_disk_loose&lt;br /&gt;
alias_disk_loose = CheckDriveSize MinWarn=10% MinCrit=5% CheckAll FilterType=FIXED ignore-unreadable&lt;br /&gt;
&lt;br /&gt;
; alias_event_log - Alias for alias_event_log. To configure this item add a section called: /settings/external scripts/alias/alias_event_log&lt;br /&gt;
alias_event_log = CheckEventLog file=application file=system MaxWarn=1 MaxCrit=1 &amp;quot;filter=generated gt -2d AND severity NOT IN (&amp;#039;success&amp;#039;, &amp;#039;informational&amp;#039;) AND source != &amp;#039;SideBySide&amp;#039;&amp;quot; truncate=800 unique descriptions &amp;quot;syntax=%severity%: %source%: %message% (%count%)&amp;quot;&lt;br /&gt;
&lt;br /&gt;
; alias_file_age - Alias for alias_file_age. To configure this item add a section called: /settings/external scripts/alias/alias_file_age&lt;br /&gt;
alias_file_age = checkFile2 filter=out &amp;quot;file=$ARG1$&amp;quot; filter-written=&amp;gt;1d MaxWarn=1 MaxCrit=1 &amp;quot;syntax=%filename% %write%&amp;quot;&lt;br /&gt;
&lt;br /&gt;
; alias_file_size - Alias for alias_file_size. To configure this item add a section called: /settings/external scripts/alias/alias_file_size&lt;br /&gt;
alias_file_size = CheckFiles &amp;quot;filter=size &amp;gt; $ARG2$&amp;quot; &amp;quot;path=$ARG1$&amp;quot; MaxWarn=1 MaxCrit=1 &amp;quot;syntax=%filename% %size%&amp;quot; max-dir-depth=10&lt;br /&gt;
&lt;br /&gt;
; alias_mem - Alias for alias_mem. To configure this item add a section called: /settings/external scripts/alias/alias_mem&lt;br /&gt;
alias_mem = checkMem MaxWarn=80% MaxCrit=90% ShowAll=long type=physical type=virtual type=paged type=page&lt;br /&gt;
&lt;br /&gt;
; alias_process - Alias for alias_process. To configure this item add a section called: /settings/external scripts/alias/alias_process&lt;br /&gt;
alias_process = checkProcState &amp;quot;$ARG1$=started&amp;quot;&lt;br /&gt;
&lt;br /&gt;
; alias_process_count - Alias for alias_process_count. To configure this item add a section called: /settings/external scripts/alias/alias_process_count&lt;br /&gt;
alias_process_count = checkProcState MaxWarnCount=$ARG2$ MaxCritCount=$ARG3$ &amp;quot;$ARG1$=started&amp;quot;&lt;br /&gt;
&lt;br /&gt;
; alias_process_hung - Alias for alias_process_hung. To configure this item add a section called: /settings/external scripts/alias/alias_process_hung&lt;br /&gt;
alias_process_hung = checkProcState MaxWarnCount=1 MaxCritCount=1 &amp;quot;$ARG1$=hung&amp;quot;&lt;br /&gt;
&lt;br /&gt;
; alias_process_stopped - Alias for alias_process_stopped. To configure this item add a section called: /settings/external scripts/alias/alias_process_stopped&lt;br /&gt;
alias_process_stopped = checkProcState &amp;quot;$ARG1$=stopped&amp;quot;&lt;br /&gt;
&lt;br /&gt;
; alias_sched_all - Alias for alias_sched_all. To configure this item add a section called: /settings/external scripts/alias/alias_sched_all&lt;br /&gt;
alias_sched_all = CheckTaskSched &amp;quot;filter=exit_code ne 0&amp;quot; &amp;quot;syntax=%title%: %exit_code%&amp;quot; warn=&amp;gt;0&lt;br /&gt;
&lt;br /&gt;
; alias_sched_long - Alias for alias_sched_long. To configure this item add a section called: /settings/external scripts/alias/alias_sched_long&lt;br /&gt;
alias_sched_long = CheckTaskSched &amp;quot;filter=status = &amp;#039;running&amp;#039; AND most_recent_run_time &amp;lt; -$ARG1$&amp;quot; &amp;quot;syntax=%title% (%most_recent_run_time%)&amp;quot; warn=&amp;gt;0&lt;br /&gt;
&lt;br /&gt;
; alias_sched_task - Alias for alias_sched_task. To configure this item add a section called: /settings/external scripts/alias/alias_sched_task&lt;br /&gt;
alias_sched_task = CheckTaskSched &amp;quot;filter=title eq &amp;#039;$ARG1$&amp;#039; AND exit_code ne 0&amp;quot; &amp;quot;syntax=%title% (%most_recent_run_time%)&amp;quot; warn=&amp;gt;0&lt;br /&gt;
&lt;br /&gt;
; alias_service - Alias for alias_service. To configure this item add a section called: /settings/external scripts/alias/alias_service&lt;br /&gt;
alias_service = checkServiceState CheckAll&lt;br /&gt;
&lt;br /&gt;
; alias_service_ex - Alias for alias_service_ex. To configure this item add a section called: /settings/external scripts/alias/alias_service_ex&lt;br /&gt;
alias_service_ex = checkServiceState CheckAll &amp;quot;exclude=Net Driver HPZ12&amp;quot; &amp;quot;exclude=Pml Driver HPZ12&amp;quot; exclude=stisvc&lt;br /&gt;
&lt;br /&gt;
; alias_up - Alias for alias_up. To configure this item add a section called: /settings/external scripts/alias/alias_up&lt;br /&gt;
alias_up = checkUpTime MinWarn=1d MinWarn=1h&lt;br /&gt;
&lt;br /&gt;
; alias_updates - Alias for alias_updates. To configure this item add a section called: /settings/external scripts/alias/alias_updates&lt;br /&gt;
alias_updates = check_updates -warning 0 -critical 0&lt;br /&gt;
&lt;br /&gt;
; alias_volumes - Alias for alias_volumes. To configure this item add a section called: /settings/external scripts/alias/alias_volumes&lt;br /&gt;
alias_volumes = CheckDriveSize MinWarn=10% MinCrit=5% CheckAll=volumes FilterType=FIXED&lt;br /&gt;
&lt;br /&gt;
; alias_volumes_loose - Alias for alias_volumes_loose. To configure this item add a section called: /settings/external scripts/alias/alias_volumes_loose&lt;br /&gt;
alias_volumes_loose = CheckDriveSize MinWarn=10% MinCrit=5% CheckAll=volumes FilterType=FIXED ignore-unreadable&lt;br /&gt;
&lt;br /&gt;
; default - Alias for default. To configure this item add a section called: /settings/external scripts/alias/default&lt;br /&gt;
default = &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; Files to be included in the configuration&lt;br /&gt;
[/includes]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; Section for NRPE (NRPEServer.dll) (check_nrpe) protocol options.&lt;br /&gt;
[/settings/NRPE/server]&lt;br /&gt;
&lt;br /&gt;
; COMMAND ARGUMENT PROCESSING - This option determines whether or not the we will allow clients to specify arguments to commands that are executed.&lt;br /&gt;
allow arguments = true&lt;br /&gt;
&lt;br /&gt;
; COMMAND ALLOW NASTY META CHARS - This option determines whether or not the we will allow clients to specify nasty (as in |`&amp;amp;&amp;gt;&amp;lt;&amp;#039;&amp;quot;\[]{}) characters in arguments.&lt;br /&gt;
allow nasty characters = true&lt;br /&gt;
&lt;br /&gt;
; PORT NUMBER - Port to use for NRPE.&lt;br /&gt;
port = 5666&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; Section for NSClient (NSClientServer.dll) (check_nt) protocol options.&lt;br /&gt;
[/settings/NSClient/server]&lt;br /&gt;
&lt;br /&gt;
; PERFORMANCE DATA - Send performance data back to nagios (set this to 0 to remove all performance data).&lt;br /&gt;
performance data = true&lt;br /&gt;
&lt;br /&gt;
; PORT NUMBER - Port to use for check_nt.&lt;br /&gt;
port = 12489&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; Configure crash handling properties.&lt;br /&gt;
[/settings/crash]&lt;br /&gt;
&lt;br /&gt;
; ARCHIVE CRASHREPORTS - Archive crash reports in the archive folder&lt;br /&gt;
archive = true&lt;br /&gt;
&lt;br /&gt;
; folder - The archive folder for crash dunpes.&lt;br /&gt;
archive folder = ${shared-path}/crash-dumps&lt;br /&gt;
&lt;br /&gt;
; RESTART - Submit crash reports to nsclient.org (or your configured submission server)&lt;br /&gt;
restart = true&lt;br /&gt;
&lt;br /&gt;
; RESTART SERVICE NAME - The url to submit crash reports to&lt;br /&gt;
restart target = NSClientpp&lt;br /&gt;
&lt;br /&gt;
; SUBMIT CRASHREPORTS - Submit crash reports to nsclient.org (or your configured submission server)&lt;br /&gt;
submit = false&lt;br /&gt;
&lt;br /&gt;
; SUBMISSION URL - The url to submit crash reports to&lt;br /&gt;
submit url = http://crash.nsclient.org/submit&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; Section for the EventLog Checker (CheckEventLog.dll).&lt;br /&gt;
[/settings/eventlog]&lt;br /&gt;
&lt;br /&gt;
; BUFFER_SIZE - The size of the buffer to use when getting messages this affects the speed and maximum size of messages you can recieve.&lt;br /&gt;
buffer size = 131072&lt;br /&gt;
&lt;br /&gt;
; DEBUG - Log more information when filtering (usefull to detect issues with filters) not usefull in production as it is a bit of a resource hog.&lt;br /&gt;
debug = false&lt;br /&gt;
&lt;br /&gt;
; LOOKUP NAMES - Lookup the names of eventlog files&lt;br /&gt;
lookup names = true&lt;br /&gt;
&lt;br /&gt;
; SYNTAX - Set this to use a specific syntax string for all commands (that don&amp;#039;t specify one).&lt;br /&gt;
syntax = &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; A set of options to configure the real time checks&lt;br /&gt;
[/settings/eventlog/real-time]&lt;br /&gt;
&lt;br /&gt;
; DEBUG - Log missed records (usefull to detect issues with filters) not usefull in production as it is a bit of a resource hog.&lt;br /&gt;
debug = false&lt;br /&gt;
&lt;br /&gt;
; REAL TIME CHECKING - Spawns a backgrounnd thread which detects issues and reports them back instantly.&lt;br /&gt;
enabled = false&lt;br /&gt;
&lt;br /&gt;
; LOGS TO CHECK - Comma separated list of logs to check&lt;br /&gt;
log = application,system&lt;br /&gt;
&lt;br /&gt;
; STARTUP AGE - The initial age to scan when starting NSClient++&lt;br /&gt;
startup age = 30m&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; A set of filters to use in real-time mode&lt;br /&gt;
[/settings/eventlog/real-time/filters]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; Section for external scripts configuration options (CheckExternalScripts).&lt;br /&gt;
[/settings/external scripts]&lt;br /&gt;
&lt;br /&gt;
; COMMAND ARGUMENT PROCESSING - This option determines whether or not the we will allow clients to specify arguments to commands that are executed.&lt;br /&gt;
allow arguments = true&lt;br /&gt;
&lt;br /&gt;
; COMMAND ALLOW NASTY META CHARS - This option determines whether or not the we will allow clients to specify nasty (as in |`&amp;amp;&amp;gt;&amp;lt;&amp;#039;&amp;quot;\[]{}) characters in arguments.&lt;br /&gt;
allow nasty characters = false&lt;br /&gt;
&lt;br /&gt;
; SCRIPT DIRECTORY - Load all scripts in a directory and use them as commands. Probably dangerous but useful if you have loads of scripts :)&lt;br /&gt;
script path = &lt;br /&gt;
&lt;br /&gt;
; COMMAND TIMEOUT - The maximum time in seconds that a command can execute. (if more then this execution will be aborted). NOTICE this only affects external commands not internal ones.&lt;br /&gt;
timeout = 60&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; A list of scripts available to run from the CheckExternalScripts module. Syntax is: &amp;lt;command&amp;gt;=&amp;lt;script&amp;gt; &amp;lt;arguments&amp;gt;&lt;br /&gt;
[/settings/external scripts/scripts]&lt;br /&gt;
&lt;br /&gt;
check_ntp=scripts\\check_windows_time.bat pool.ntp.org 30 60 &lt;br /&gt;
restart-service=scripts\\restart_service.cmd &amp;quot;$ARG1$&amp;quot;&lt;br /&gt;
&lt;br /&gt;
; A list of wrappped scripts (ie. using the template mechanism)&lt;br /&gt;
[/settings/external scripts/wrapped scripts]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; A list of templates for wrapped scripts&lt;br /&gt;
[/settings/external scripts/wrappings]&lt;br /&gt;
&lt;br /&gt;
; BATCH FILE WRAPPING - &lt;br /&gt;
bat = scripts\\%SCRIPT% %ARGS%&lt;br /&gt;
&lt;br /&gt;
; POWERSHELL WRAPPING - &lt;br /&gt;
ps1 = cmd /c echo scripts\\%SCRIPT% %ARGS%; exit($lastexitcode) | powershell.exe -command -&lt;br /&gt;
&lt;br /&gt;
; VISUAL BASIC WRAPPING - &lt;br /&gt;
vbs = cscript.exe //T:30 //NoLogo scripts\\lib\\wrapper.vbs %SCRIPT% %ARGS%&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; Configure log properties.&lt;br /&gt;
[/settings/log]&lt;br /&gt;
&lt;br /&gt;
; DATEMASK - The size of the buffer to use when getting messages this affects the speed and maximum size of messages you can recieve.&lt;br /&gt;
date format = %Y-%m-%d %H:%M:%S&lt;br /&gt;
&lt;br /&gt;
; FILENAME - The file to write log data to. Set this to none to disable log to file.&lt;br /&gt;
file name = ${exe-path}/nsclient.log&lt;br /&gt;
&lt;br /&gt;
; LOG LEVEL - Log level to use. Avalible levels are error,warning,info,debug,trace&lt;br /&gt;
level = info&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; Configure log file properties.&lt;br /&gt;
[/settings/log/file]&lt;br /&gt;
&lt;br /&gt;
; MAXIMUM FILE SIZE - When file size reaches this it will be truncated to 50% if set to 0 (default) truncation will be disabled&lt;br /&gt;
max size = 0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; Section for configuring the shared session.&lt;br /&gt;
[/settings/shared session]&lt;br /&gt;
&lt;br /&gt;
; LOG LEVEL - Log level to use&lt;br /&gt;
enabled = false&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; Section for system checks and system settings&lt;br /&gt;
[/settings/system/windows]&lt;br /&gt;
&lt;br /&gt;
; DEFAULT LENGTH - Used to define the default intervall for range buffer checks (ie. CPU).&lt;br /&gt;
default buffer length = 1h&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; Confiure which services has to be in which state&lt;br /&gt;
[/settings/system/windows/service mapping]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
; A list of avalible remote target systems&lt;br /&gt;
[/settings/targets]&lt;br /&gt;
&lt;br /&gt;
# MANAGED BY PUPPET&lt;br /&gt;
EOFile&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Assegnare la classe all&amp;#039;host&lt;br /&gt;
&lt;br /&gt;
 sudoedit /etc/puppet/environemnt/testing/manifests/site.pp&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
node &amp;#039;winclient.metrica.priv&amp;#039; {&lt;br /&gt;
	include met_nsclient&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Riferimenti=&lt;br /&gt;
*[https://forge.puppetlabs.com/opentable/nsclient opentable/nsclient · Puppet Forge]&lt;/div&gt;</summary>
		<author><name>Gabriele.vivinetto</name></author>
	</entry>
</feed>